mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Added idle() method, called when no events are available.
This commit is contained in:
parent
e0371b8415
commit
38186782e5
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue