Author: Ed Leafe
Posted: 2009-08-09 at 15:30:17
On Aug 9, 2009, at 2:02 PM, jpoorrandp@aol.com wrote:
> dlg = MyFind(self)
> TypeError: 'dDialog_23949' object is not callable
This looks like 'MyFind' is not a class, but the dialog itself. The
example I gave used 'MyDialogClass()', which meant to instantiate the
dialog from the class. If you are using .cdxml-based classes, then the
code would be:
dlg = dabo.ui.createForm("MyDialog.cdxml", self)
> My guess is that the dialog isn't really alive anymore when I return
> to the
> calling code. So, my questions are:
> how do I hide the dialog?
> Which type of dialog should I be using in Class Designer? (I picked
> the
> "plain dialog")
> Do all dialogs have this "Accepted" property (I don't see it listed
> in
> the API documentation for dDialog, but it is listed for "Preference
> dialog")
'Accepted' is defined in the dOkCancelDialog class, and reflects
whether they clicked 'OK' or 'Cancel.
-- Ed Leafe