Added wxTheApp = this; to wxApp::wxApp for wxPython
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -82,6 +82,7 @@ wxApp::wxApp()
|
|||||||
m_idleTag = 0;
|
m_idleTag = 0;
|
||||||
m_topWindow = NULL;
|
m_topWindow = NULL;
|
||||||
m_exitOnFrameDelete = TRUE;
|
m_exitOnFrameDelete = TRUE;
|
||||||
|
wxTheApp = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxApp::~wxApp(void)
|
wxApp::~wxApp(void)
|
||||||
@@ -402,7 +403,7 @@ int wxEntry( int argc, char *argv[] )
|
|||||||
// main()
|
// main()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(AIX) || defined(AIX4) || defined(____HPUX__)
|
#if defined(AIX) || defined(AIX4) || defined(____HPUX__) || defined(NOMAIN)
|
||||||
|
|
||||||
// main in IMPLEMENT_WX_MAIN in IMPLEMENT_APP in app.h
|
// main in IMPLEMENT_WX_MAIN in IMPLEMENT_APP in app.h
|
||||||
|
|
||||||
|
@@ -82,6 +82,7 @@ wxApp::wxApp()
|
|||||||
m_idleTag = 0;
|
m_idleTag = 0;
|
||||||
m_topWindow = NULL;
|
m_topWindow = NULL;
|
||||||
m_exitOnFrameDelete = TRUE;
|
m_exitOnFrameDelete = TRUE;
|
||||||
|
wxTheApp = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxApp::~wxApp(void)
|
wxApp::~wxApp(void)
|
||||||
@@ -402,7 +403,7 @@ int wxEntry( int argc, char *argv[] )
|
|||||||
// main()
|
// main()
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(AIX) || defined(AIX4) || defined(____HPUX__)
|
#if defined(AIX) || defined(AIX4) || defined(____HPUX__) || defined(NOMAIN)
|
||||||
|
|
||||||
// main in IMPLEMENT_WX_MAIN in IMPLEMENT_APP in app.h
|
// main in IMPLEMENT_WX_MAIN in IMPLEMENT_APP in app.h
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user