Roger Lovelock wrote:
> Hi Uwe,
>     Did what you suggested (with some variations) - but I think I have gone 
> wrong somewhere - do I need to create a variable ParentForm in my child form 
> and update it from the passed value?
> 

I used a property for ParentForm:
    def _getParentForm(self):
        try:
            return self._parentForm
        except AttributeError:
            return None
    def _setParentForm(self, val):
        self._parentForm = val
    ParentForm = property(_getParentForm, _setParentForm, None,
                          _("""Reference to the parent form (dForm)"""))

The property gets it's value from the callling form:
    def callEditChild(self):
        frm = EditChildForm.EditChildForm(ParentForm=self)
        self.hide()
        frm.show()

Uwe


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to