root is now a global called _root

This commit is contained in:
Guido van Rossum 1998-10-26 18:49:00 +00:00
parent 04101960e6
commit 4089c110a1
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ def demo():
# more text
write("end")
if __name__ == '__main__':
root.mainloop()
_root.mainloop()
if __name__ == '__main__':
demo()