]> granicus.if.org Git - python/commitdiff
patch [ 1277677 ] tkinter hello world example bug
authorGeorg Brandl <georg@python.org>
Thu, 15 Sep 2005 16:02:13 +0000 (16:02 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 15 Sep 2005 16:02:13 +0000 (16:02 +0000)
Doc/lib/tkinter.tex

index 943c4f2c5560b2f0c62f95dad51d9d8a053342c0..f223ff6eae2b2f35586cd3164e48519c32f08f74 100644 (file)
@@ -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}