X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cc5453b83932436c30ce3c7d650b0fb8dcda255..b7c75283f2144469e8fa6a24ca285b42fab69a6b:/wxPython/src/_printfw.i diff --git a/wxPython/src/_printfw.i b/wxPython/src/_printfw.i index 140a336d84..fd6a356b94 100644 --- a/wxPython/src/_printfw.i +++ b/wxPython/src/_printfw.i @@ -164,7 +164,9 @@ public: class wxPrintDialogData : public wxObject { public: + %nokwargs wxPrintDialogData; wxPrintDialogData(); + wxPrintDialogData(const wxPrintData& printData); ~wxPrintDialogData(); int GetFromPage() const; @@ -458,9 +460,13 @@ public: class wxPrintPreview : public wxObject { public: + %nokwargs wxPrintPreview; wxPrintPreview(wxPyPrintout* printout, wxPyPrintout* printoutForPrinting, - wxPrintData* data=NULL); + wxPrintDialogData *data=NULL); + wxPrintPreview(wxPyPrintout* printout, + wxPyPrintout* printoutForPrinting, + wxPrintData* data); virtual bool SetCurrentPage(int pageNum); int GetCurrentPage(); @@ -545,6 +551,11 @@ class wxPyPrintPreview : public wxPrintPreview { DECLARE_CLASS(wxPyPrintPreview) public: + wxPyPrintPreview(wxPyPrintout* printout, + wxPyPrintout* printoutForPrinting, + wxPrintDialogData* data=NULL) + : wxPrintPreview(printout, printoutForPrinting, data) + {} wxPyPrintPreview(wxPyPrintout* printout, wxPyPrintout* printoutForPrinting, wxPrintData* data=NULL) @@ -585,10 +596,13 @@ class wxPyPrintPreview : public wxPrintPreview { public: %pythonAppend wxPyPrintPreview "self._setCallbackInfo(self, PyPrintPreview)" - + %nokwargs wxPyPrintPreview; + wxPyPrintPreview(wxPyPrintout* printout, + wxPyPrintout* printoutForPrinting, + wxPrintDialogData* data=NULL); wxPyPrintPreview(wxPyPrintout* printout, wxPyPrintout* printoutForPrinting, - wxPrintData* data=NULL); + wxPrintData* data); void _setCallbackInfo(PyObject* self, PyObject* _class);