X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be13a6af904a58515dc8ff22c2f07fcc1fc60696..3efe95494d7a262c1bdbfa44aabb5137a6973983:/wxPython/src/controls2.i diff --git a/wxPython/src/controls2.i b/wxPython/src/controls2.i index 85334a3ddf..37671c76bc 100644 --- a/wxPython/src/controls2.i +++ b/wxPython/src/controls2.i @@ -358,7 +358,8 @@ public: wxListItem m_item; %readwrite - int GetCode(); + int GetKeyCode(); + %pragma(python) addtoclass = "GetCode = GetKeyCode" long GetIndex(); int GetColumn(); wxPoint GetPoint(); @@ -739,6 +740,17 @@ public: return self->SortItems(wxPyListCtrl_SortItems, (long)func); } } + + + %addmethods { + wxWindow* GetMainWindow() { + #ifdef __WXMSW__ + return self; + #else + return (wxWindow*)self->m_mainWin; + #endif + } + } }; @@ -1042,7 +1054,8 @@ public: wxTreeItemId GetOldItem(); wxPoint GetPoint(); const wxKeyEvent& GetKeyEvent(); - int GetCode(); + int GetKeyCode(); + %pragma(python) addtoclass = "GetCode = GetKeyCode" const wxString& GetLabel(); };