Patch #911176: Move test function into __main__
This commit is contained in:
parent
211a2eb784
commit
a3837a0d63
@ -86,6 +86,8 @@ class SimpleDialog:
|
|||||||
self.root.quit()
|
self.root.quit()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
|
||||||
def test():
|
def test():
|
||||||
root = Tk()
|
root = Tk()
|
||||||
def doit(root=root):
|
def doit(root=root):
|
||||||
@ -106,6 +108,4 @@ def test():
|
|||||||
q.pack()
|
q.pack()
|
||||||
t.mainloop()
|
t.mainloop()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
test()
|
test()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user