X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09f3d4e679f5742c54fb062ede846b77606a9c5b..73c13bb93c2eaeb89498d887764d4ffc5c0f5a6e:/wxPython/src/windows2.i diff --git a/wxPython/src/windows2.i b/wxPython/src/windows2.i index cb9e18dec7..d1be157786 100644 --- a/wxPython/src/windows2.i +++ b/wxPython/src/windows2.i @@ -79,13 +79,20 @@ public: long style = 0, char* name = "notebook"); + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreNotebook:val._setOORInfo(self)" + int GetPageCount(); int SetSelection(int nPage); void AdvanceSelection(bool bForward = TRUE); int GetSelection(); bool SetPageText(int nPage, const wxString& strText); wxString GetPageText(int nPage) const; + void SetImageList(wxImageList* imageList); + void AssignImageList(wxImageList *imageList) ; + %pragma(python) addtomethod = "AssignImageList:_args[0].thisown = 0" + wxImageList* GetImageList(); int GetPageImage(int nPage); bool SetPageImage(int nPage, int nImage); @@ -169,6 +176,8 @@ public: long style=wxSP_3D|wxCLIP_CHILDREN, char* name = "splitterWindow"); + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreSplitterWindow:val._setOORInfo(self)" // Gets the only or left/top pane wxWindow *GetWindow1(); @@ -253,6 +262,8 @@ public: wxTaskBarIcon(); ~wxTaskBarIcon(); + //%pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + // We still use the magic methods here since that is the way it is documented... %pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE)" %pragma(python) addtomethod = "__init__:wx._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN)"