mirror of https://github.com/kivy/kivy.git
Merge pull request #757 from GendoIkari/master
Event binding through kwargs
This commit is contained in:
commit
1bc7d0c34d
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue