From f508c57134a14a158e7ea4e7e5590df947d78c85 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Mon, 8 Jan 2024 12:06:23 +0100 Subject: [PATCH] Update README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- tk/overview/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tk/overview/README.md b/tk/overview/README.md index 729bba2..60a681c 100644 --- a/tk/overview/README.md +++ b/tk/overview/README.md @@ -51,10 +51,14 @@ class tkinter.ttk.Spinbox ![image_sb](image_sb.png) ```python -# %% import tkinter as tk from tkinter import ttk + +def changed() -> None: + print("Changed") + + root = tk.Tk() number_of_patches: int = 10 @@ -74,6 +78,7 @@ spinbox_number_of_patches = ttk.Spinbox( frame, values=list(f"{x:d}" for x in range(1, 301)), width=width_element, + command=changed, ) spinbox_number_of_patches.grid(row=0, column=1, sticky="w") spinbox_number_of_patches.set(number_of_patches)