mirror of
https://github.com/python/cpython.git
synced 2024-12-19 14:53:39 +08:00
root is now a global called _root
This commit is contained in:
parent
04101960e6
commit
4089c110a1
@ -337,7 +337,7 @@ def demo():
|
||||
# more text
|
||||
write("end")
|
||||
if __name__ == '__main__':
|
||||
root.mainloop()
|
||||
_root.mainloop()
|
||||
|
||||
if __name__ == '__main__':
|
||||
demo()
|
||||
|
Loading…
Reference in New Issue
Block a user