mirror of https://github.com/kivy/kivy.git
dispatch parent property event on widgets vreated by builder
This commit is contained in:
parent
a5d8ca9bb4
commit
1cb3dea0af
|
@ -1300,6 +1300,10 @@ class BuilderBase(object):
|
||||||
widget_set.bind(**{key: partial(custom_callback,
|
widget_set.bind(**{key: partial(custom_callback,
|
||||||
crule, idmap)})
|
crule, idmap)})
|
||||||
|
|
||||||
|
#hack for on_parent
|
||||||
|
if crule.name == 'on_parent':
|
||||||
|
Factory.Widget.parent.dispatch(widget_set)
|
||||||
|
|
||||||
# rule finished, forget it
|
# rule finished, forget it
|
||||||
del self.rulectx[rootrule]
|
del self.rulectx[rootrule]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue