On Oct 31, 2006, at 10:41 AM, Uwe Grauer wrote:
> I think for this my EditForm has to be a Dialog and not a Form. > How do i get a DialogForm instead of a normal Form in ClassDesigner? > > Is using a Dialog the right thing here?
Yes. wxPython doesn't support modal forms except with dialogs.
Right now dialogs aren't implemented in the Class Designer. You can design it with a regular form, though, but instead of saving regularly, select 'Save as Class...', which lets you save the contents of the form as a class. Then when you want to call the dialog, you can write something like this in code:
dlg = dabo.ui.dDialog(self) dlg.addObject("myCustomClass.cdxml") dlg.show()
[modal]
dlg.release()
-- Ed Leafe -- http://leafe.com -- http://dabodev.com
©2006 Ed Leafe |