X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3fce70fbf5dc650636eb51a817c24e4fbb7ad5c8..6af85fcd90fc50853ab0ce18721c522b053b065b:/wxPython/src/controls2.i diff --git a/wxPython/src/controls2.i b/wxPython/src/controls2.i index 281e04fbd4..a4af34c4bc 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*)m_mainWin; + #endif + } + } };