X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64c06a508543d16462ae987de3263072e8320e20..d8f3f983596d288daa840ffb7510ffa1cc67be0f:/wxPython/src/controls2.i?ds=sidebyside diff --git a/wxPython/src/controls2.i b/wxPython/src/controls2.i index 281e04fbd4..37671c76bc 100644 --- a/wxPython/src/controls2.i +++ b/wxPython/src/controls2.i @@ -740,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 + } + } };