performance fix in widget constructor for event binding

This commit is contained in:
Gendo Ikari 2012-11-07 19:02:57 +01:00
parent e221102658
commit afd670942a
1 changed files with 3 additions and 3 deletions

View File

@ -154,9 +154,9 @@ class Widget(EventDispatcher):
# Builder.idmap.pop('root')
# Bind all the events
for argument, value in kwargs.items():
if argument.startswith('on_'):
self.bind(**{argument: value})
for argument in kwargs:
if argument[:3] == 'on_':
self.bind(**{argument: kwargs[argument]})
#
# Collision