mirror of https://github.com/kivy/kivy.git
Merge branch 'master' into filechooser
This commit is contained in:
commit
622f3026e6
|
@ -706,11 +706,14 @@ def create_handler(element, key, value, idmap):
|
||||||
# bind every key.value
|
# bind every key.value
|
||||||
for x in kw:
|
for x in kw:
|
||||||
k = x.split('.')
|
k = x.split('.')
|
||||||
if len(k) != 2:
|
|
||||||
continue
|
|
||||||
f = idmap[k[0]]
|
f = idmap[k[0]]
|
||||||
|
try:
|
||||||
|
for x in k[1:-1]:
|
||||||
|
f = getattr(f, x)
|
||||||
if hasattr(f, 'bind'):
|
if hasattr(f, 'bind'):
|
||||||
f.bind(**{k[1]: call_fn})
|
f.bind(**{k[-1]: call_fn})
|
||||||
|
except AttributeError:
|
||||||
|
continue
|
||||||
|
|
||||||
return eval(value, _eval_globals, idmap)
|
return eval(value, _eval_globals, idmap)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue