Patch #911176: Move test function into __main__

This commit is contained in:
Martin v. Löwis 2004-03-22 21:49:47 +00:00
parent 211a2eb784
commit a3837a0d63

View file

@ -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()