X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d07d2bc9d05408c58b76c53a0a291915b88e5064..f1fabff5b28f3fa789247db5a30b167a4c92c1a2:/wxPython/src/_notebook.i diff --git a/wxPython/src/_notebook.i b/wxPython/src/_notebook.i index 81c854cc62..e058b6e9bf 100644 --- a/wxPython/src/_notebook.i +++ b/wxPython/src/_notebook.i @@ -22,6 +22,8 @@ MAKE_CONST_WXSTRING(NOTEBOOK_NAME); // TODO: Virtualize this class so other book controls can be derived in Python +MustHaveApp(wxBookCtrl); + // Common base class for wxList/Tree/Notebook class wxBookCtrl : public wxControl { @@ -160,10 +162,13 @@ enum { +MustHaveApp(wxNotebook); + class wxNotebook : public wxBookCtrl { public: %pythonAppend wxNotebook "self._setOORInfo(self)" %pythonAppend wxNotebook() "" + %typemap(out) wxNotebook*; // turn off this typemap wxNotebook(wxWindow *parent, wxWindowID id=-1, @@ -173,8 +178,11 @@ public: const wxString& name = wxPyNOTEBOOK_NAME); %name(PreNotebook)wxNotebook(); + // Turn it back on again + %typemap(out) wxNotebook* { $result = wxPyMake_wxObject($1, $owner); } + bool Create(wxWindow *parent, - wxWindowID id, + wxWindowID id=-1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, @@ -286,6 +294,8 @@ enum +MustHaveApp(wxListbook); + // wxListCtrl and wxNotebook combination class wxListbook : public wxBookCtrl { @@ -302,7 +312,7 @@ public: %name(PreListbook)wxListbook(); bool Create(wxWindow *parent, - wxWindowID id, + wxWindowID id=-1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0,