X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b9f434ef364731ccf6e4ebf78b8cf71d3c85b79..f78e4942ec0f3f6abd2992502e2d6c5c2e8e55f6:/wxPython/src/_printfw.i?ds=sidebyside diff --git a/wxPython/src/_printfw.i b/wxPython/src/_printfw.i index 1e3c1fc7b9..115834daf2 100644 --- a/wxPython/src/_printfw.i +++ b/wxPython/src/_printfw.i @@ -178,15 +178,19 @@ public: +// NOTE: Contrary to it's name, this class doesn't derive from wxDialog. It +// is a facade in front of a platform-specific (native dialog) provided by the +// wxPrintFactory. + MustHaveApp(wxPageSetupDialog); -class wxPageSetupDialog : public wxDialog { +class wxPageSetupDialog : public wxObject +{ public: - %pythonAppend wxPageSetupDialog "self._setOORInfo(self)" - wxPageSetupDialog(wxWindow* parent, wxPageSetupDialogData* data = NULL); wxPageSetupDialogData& GetPageSetupData(); + wxPageSetupDialogData& GetPageSetupDialogData(); int ShowModal(); }; @@ -372,7 +376,8 @@ IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); MustHaveApp(wxPyPrintout); // Now define the custom class for SWIGging -%name(Printout) class wxPyPrintout : public wxObject { +%rename(Printout) wxPyPrintout; +class wxPyPrintout : public wxObject { public: %pythonAppend wxPyPrintout "self._setCallbackInfo(self, Printout)"