Update README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2024-01-17 17:27:16 +01:00 committed by GitHub
parent 5ee748273e
commit 8b33b99e8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,26 +54,16 @@ def changed() -> None:
root = tk.Tk()
number_of_patches: int = 10
width_label: int = 20
width_element: int = 10
row_id: int = 0
column_id: int = 0
frame = ttk.LabelFrame(root, text="Button")
frame.grid(row=row_id, column=column_id, sticky="nw", pady=5)
label_number_of_patches = ttk.Label(frame, text="Button Text", width=width_label)
label_number_of_patches.grid(row=0, column=0, sticky="w")
a_button = ttk.Button(
frame,
root,
text="Don't press",
width=width_element,
command=changed,
)
a_button.grid(row=0, column=1, sticky="w")
a_button.grid(row=0, column=0, sticky="w")
root.mainloop()