Worked a treat thanks Uwe!
Rodgy
----- Original Message -----
From: "Uwe Grauer" <[email protected]>
To: "Dabo Users list" <[email protected]>
Sent: Friday, January 16, 2009 6:20 PM
Subject: Re: [dabo-users] Modal Forms
> 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
>
>
[excessive quoting removed by server]
_______________________________________________
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/40c31c53d8234dd09421e4a7ec80c...@roger