dispatch parent property event on widgets vreated by builder

This commit is contained in:
Thomas Hansen 2012-09-20 10:30:01 -05:00
parent a5d8ca9bb4
commit 1cb3dea0af
1 changed files with 4 additions and 0 deletions

View File

@ -1300,6 +1300,10 @@ class BuilderBase(object):
widget_set.bind(**{key: partial(custom_callback,
crule, idmap)})
#hack for on_parent
if crule.name == 'on_parent':
Factory.Widget.parent.dispatch(widget_set)
# rule finished, forget it
del self.rulectx[rootrule]