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:
parent
c8fac2b60d
commit
c92d92835d
@ -574,7 +574,6 @@
|
||||
%rename(WakeUpIdle) wxWakeUpIdle;
|
||||
%rename(PostEvent) wxPostEvent;
|
||||
%rename(App_CleanUp) wxApp_CleanUp;
|
||||
%rename(GetApp) wxGetApp;
|
||||
%rename(AcceleratorEntry) wxAcceleratorEntry;
|
||||
%rename(AcceleratorTable) wxAcceleratorTable;
|
||||
%rename(NullAcceleratorTable) wxNullAcceleratorTable;
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
PyOnDemandOutputWindow
|
||||
App
|
||||
GetApp
|
||||
PySimpleApp
|
||||
PyWidgetTester
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -1042,6 +1042,7 @@ wxLayoutConstraints = wx._core.LayoutConstraints
|
||||
wxLayoutConstraintsPtr = wx._core.LayoutConstraintsPtr
|
||||
wxPyOnDemandOutputWindow = wx._core.PyOnDemandOutputWindow
|
||||
wxApp = wx._core.App
|
||||
wxGetApp = wx._core.GetApp
|
||||
wxPySimpleApp = wx._core.PySimpleApp
|
||||
wxPyWidgetTester = wx._core.PyWidgetTester
|
||||
wxApp_GetMacSupportPCMenuShortcuts = wx._core.App_GetMacSupportPCMenuShortcuts
|
||||
|
Loading…
Reference in New Issue
Block a user