Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4cb9454

Browse files
committed
Added _quit() method similar to FrameWork in stead of setting
self.quitting by hand.
1 parent 647535d commit 4cb9454

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Mac/Lib/toolbox/MiniAEFrame.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ def close(self):
4747
def mainloop(self, mask = everyEvent, timeout = 60*60):
4848
while not self.quitting:
4949
self.dooneevent(mask, timeout)
50+
51+
def _quit(self):
52+
self.quitting = 1
5053

5154
def dooneevent(self, mask = everyEvent, timeout = 60*60):
5255
got, event = Evt.WaitNextEvent(mask, timeout)
@@ -154,7 +157,7 @@ def __init__(self):
154157
self.mainloop()
155158

156159
def quit(self, **args):
157-
self.quitting = 1
160+
self._quit()
158161

159162
def open_app(self, **args):
160163
pass

0 commit comments

Comments
 (0)