The wxDialog constructor calls automatically Create method. Because of that
it is impossible to use some procedures: for example LoadFromResource.
Below is a way to omit this incoveniences:
append this at the end of windows.i file:
--begin--
%{
static wxDialog *my_nocreate_wxDialog()
{
return new wxDialog();
}
%}
%name(nocreate_wxDialog) wxDialog *my_nocreate_wxDialog();
%pragma(python) include="_windows.py"
--end--
create the _windows.py file:
--begin--
class WXDialog(wxDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(windowsc.nocreate_wxDialog,_args,_kwargs)
self.thisown = 1
#wx._StdDialogCallbacks(self)
--end--
How to use a new extension - look at the attached files.
Happy dialoging!
Mak