File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1414or Grid. These managers can be called with methods place, pack, grid
1515available in every Widget.
1616
17- Actions are bound to events by options (e.g. keyword argument
18- command ) or with the bind() method.
17+ Actions are bound to events by options (e.g. the command
18+ keyword argument ) or with the bind() method.
1919
2020Example (Hello, World):
2121import tkinter
2222from tkinter.constants import *
2323tk = tkinter.Tk()
2424frame = tkinter.Frame(tk, relief=RIDGE, borderwidth=2)
25- frame.pack(fill=BOTH,expand=1)
25+ frame.pack(fill=BOTH, expand=1)
2626label = tkinter.Label(frame, text="Hello, World")
2727label.pack(fill=X, expand=1)
28- button = tkinter.Button(frame,text="Exit",command=tk.destroy)
28+ button = tkinter.Button(frame, text="Exit", command=tk.destroy)
2929button.pack(side=BOTTOM)
3030tk.mainloop()
3131"""
You can’t perform that action at this time.
0 commit comments