Merge pull request #757 from GendoIkari/master

Event binding through kwargs
This commit is contained in:
Mathieu Virbel 2012-10-24 03:27:06 -07:00
commit 1bc7d0c34d
1 changed files with 5 additions and 0 deletions

View File

@ -130,6 +130,11 @@ class Widget(EventDispatcher):
#else:
# Builder.idmap.pop('root')
# Bind all the events
for argument, value in kwargs.items():
if argument.startswith('on_'):
self.bind(**{argument: value})
#
# Collision
#