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