mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
root is now a global called _root
This commit is contained in:
parent
04101960e6
commit
4089c110a1
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ def demo():
|
|||
# more text
|
||||
write("end")
|
||||
if __name__ == '__main__':
|
||||
root.mainloop()
|
||||
_root.mainloop()
|
||||
|
||||
if __name__ == '__main__':
|
||||
demo()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue