Skip to content

Commit 5044700

Browse files
committed
just realized that this feature was absurd
1 parent bb62191 commit 5044700

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tdl/event.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -395,17 +395,11 @@ def _event_generator():
395395
raise StopIteration()
396396

397397

398-
def wait(timeout=None, filter=None, flush=True):
398+
def wait(timeout=None, flush=True):
399399
"""Wait for an event.
400400
401401
@type timeout: int or None
402402
@param timeout:
403-
@type filter: collection or None
404-
@param filter: A collection of types to return.
405-
406-
For example: filter={'KEYUP', 'KEYDOWN', 'QUIT'},
407-
will only return Key events and L{Quit}.
408-
All other events will be discarded.
409403
@type flush: boolean
410404
@param flush: If True a call to L{tdl.flush} will be made before listening
411405
for events.
@@ -419,8 +413,6 @@ def wait(timeout=None, filter=None, flush=True):
419413
timeout = timeout / 1000 + _time.clock() # timeout at this time
420414
while True:
421415
for event in _event_generator():
422-
if filter and event.type not in filter:
423-
continue
424416
return event
425417
if flush:
426418
# a full 'round' of events need to be processed before flushing

0 commit comments

Comments
 (0)