Ed Leafe wrote:
> On Dec 15, 2008, at 7:33 PM, Roger Lovelock wrote:
> 
>> I suspect that this is because FrmReportBase.py inherits from  
>> dDialog rather
>> than a form type and therefore a bizObj can't be added. If so, I  
>> guess I
>> will need to convert FrmReportBase to a form rather than a dialog.
>> Am I right?
> 
> 
>       Correct. We originally designed dForm to contain the bizobj logic,  
> assuming that we would be able to use it modally or non-modally as  
> needed, but for some reason that ability never got added to wxPython.  
> The idea was that dDialog would be for dialogs, which are always  
> modal, and dForm would be the general-purpose main container.

Roger,

You can either change to use a Form like you suggested, or if you need true 
modality, 
keep using the dialog and save the attribute reference to the dialog, such as:

def initProperties(self):
        self.mybiz = biz.Clients(...)

and then when you need it:

def onHit_blah(self, evt):
        self.mybiz.requery()

Paul


_______________________________________________
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