Change the C name of my wxGetApp so it doesn't conflict if wxPython is
linked statically with a C++ wxWidgets app. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -334,15 +334,16 @@ Python shuts down.", "");
|
||||
%}
|
||||
|
||||
|
||||
DocStr(wxGetApp,
|
||||
"Return a reference to the current wx.App object.", "");
|
||||
%inline %{
|
||||
wxPyApp* wxGetApp() {
|
||||
return (wxPyApp*)wxTheApp;
|
||||
}
|
||||
DocDeclStrName(
|
||||
wxPyApp* , wxPyGetApp(),
|
||||
"Return a reference to the current wx.App object.", "",
|
||||
GetApp);
|
||||
%{
|
||||
wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
|
||||
%}
|
||||
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Include some extra wxApp related python code here
|
||||
|
||||
|
Reference in New Issue
Block a user