Kaydet (Commit) c1d609e8 authored tarafından Terry Jan Reedy's avatar Terry Jan Reedy

Merge with 3.4

...@@ -318,27 +318,11 @@ class DemoWindow(object): ...@@ -318,27 +318,11 @@ class DemoWindow(object):
def _destroy(self): def _destroy(self):
self.root.destroy() self.root.destroy()
sys.exit()
if __name__ == '__main__': def main():
demo = DemoWindow() demo = DemoWindow()
RUN = True demo.root.mainloop()
while RUN:
try: if __name__ == '__main__':
#print("ENTERING mainloop") main()
demo.root.mainloop()
except AttributeError:
#print("AttributeError!- WAIT A MOMENT!")
time.sleep(0.3)
print("GOING ON ..")
demo.ckearCanvas()
except TypeError:
demo.screen._delete("all")
#print("CRASH!!!- WAIT A MOMENT!")
time.sleep(0.3)
#print("GOING ON ..")
demo.clearCanvas()
except:
print("BYE!")
RUN = False
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