Added accessor for the main window in generic wxListCtrl. In wxMSW
just returns self. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user