Commit a3837a0d authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #911176: Move test function into __main__

parent 211a2eb7
......@@ -86,7 +86,9 @@ class SimpleDialog:
self.root.quit()
def test():
if __name__ == '__main__':
def test():
root = Tk()
def doit(root=root):
d = SimpleDialog(root,
......@@ -106,6 +108,4 @@ def test():
q.pack()
t.mainloop()
if __name__ == '__main__':
test()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment