Browse Source

added way to listen for any event

pull/18/merge
Rossen Georgiev 9 years ago
parent
commit
45c0918251
  1. 4
      steam/util/events.py

4
steam/util/events.py

@ -27,6 +27,10 @@ class EventEmitter(object):
else:
gevent.spawn(callback, *args)
# every event is also emitted as None
if event is not None:
self.emit(None, event, *args)
def remove_listener(self, event, callback):
"""
Removes a callback for the specified event

Loading…
Cancel
Save