diff options
Diffstat (limited to 'Doc/lib/tkinter.tex')
-rw-r--r-- | Doc/lib/tkinter.tex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/lib/tkinter.tex b/Doc/lib/tkinter.tex index 943c4f2..f223ff6 100644 --- a/Doc/lib/tkinter.tex +++ b/Doc/lib/tkinter.tex @@ -258,8 +258,10 @@ class Application(Frame): self.pack() self.createWidgets() -app = Application() +root = Tk() +app = Application(master=root) app.mainloop() +root.destroy() \end{verbatim} |