mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Patch #911176: Move test function into __main__
This commit is contained in:
parent
211a2eb784
commit
a3837a0d63
1 changed files with 12 additions and 12 deletions
|
@ -86,6 +86,8 @@ class SimpleDialog:
|
|||
self.root.quit()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
def test():
|
||||
root = Tk()
|
||||
def doit(root=root):
|
||||
|
@ -106,6 +108,4 @@ def test():
|
|||
q.pack()
|
||||
t.mainloop()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
test()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue