summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-11-10 14:48:36 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-11-10 14:48:36 (GMT)
commit38186782e59908ad07c0c40d117a19501a43b459 (patch)
tree2c348e3e7a962cf219966e85e9a4e1c8bbc42792
parente0371b8415650748f0e0718ff5160e286abaf753 (diff)
downloadcpython-38186782e59908ad07c0c40d117a19501a43b459.zip
cpython-38186782e59908ad07c0c40d117a19501a43b459.tar.gz
cpython-38186782e59908ad07c0c40d117a19501a43b459.tar.bz2
Added idle() method, called when no events are available.
-rw-r--r--Mac/Lib/FrameWork.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py
index c32651c..e4aa034 100644
--- a/Mac/Lib/FrameWork.py
+++ b/Mac/Lib/FrameWork.py
@@ -126,6 +126,11 @@ class Application:
return
if ok:
self.dispatch(event)
+ else:
+ self.idle()
+
+ def idle(self):
+ pass
def getevent(self, mask = everyEvent, wait = 0):
ok, event = WaitNextEvent(mask, wait)