summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-09-15 16:02:13 (GMT)
committerGeorg Brandl <georg@python.org>2005-09-15 16:02:13 (GMT)
commit532dacffd8203c83a5dfedfe672050776a72cfde (patch)
tree3d6ee9bdcce35e09964ec537ebc41209e0dd5398
parent6953772d906dae738894490a594751bb793d66bd (diff)
downloadcpython-532dacffd8203c83a5dfedfe672050776a72cfde.zip
cpython-532dacffd8203c83a5dfedfe672050776a72cfde.tar.gz
cpython-532dacffd8203c83a5dfedfe672050776a72cfde.tar.bz2
patch [ 1277677 ] tkinter hello world example bug
-rw-r--r--Doc/lib/tkinter.tex4
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}