Skip to content

Commit ca96ff7

Browse files
committed
new examples
1 parent a32f778 commit ca96ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tkinter/toplevel/main-1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
def open_subwindow():
88
subwindow = tk.Toplevel()
9-
subwindow.geometry("300x300")
109

1110
btn = tk.Button(subwindow, text="Close subwindow", command=subwindow.destroy)
1211
btn.pack()
1312

1413
# --- main ---
1514

1615
root = tk.Tk()
16+
root.geometry("300x300")
1717

1818
btn = tk.Button(root, text="Open subwindow", command=open_subwindow)
1919
btn.pack()

0 commit comments

Comments
 (0)