Commit 38186782 authored by Jack Jansen's avatar Jack Jansen

Added idle() method, called when no events are available.

parent e0371b84
......@@ -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)
......
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