mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Remove tracking of application instance in wxPyApp, and just use the one already in wxAppConsole instead. This will enable wx.GetApp to still do the right thing when the wxApp is created outside of Python.
This commit is contained in:
@@ -43,7 +43,7 @@ def run():
|
||||
|
||||
etgtools.prependText(c.detailedDoc,
|
||||
"Note that it is not intended for this class to be used directly from "
|
||||
"Python. It is wrapped just for inheriting its methods from :class:`App`.")
|
||||
"Python. It is wrapped just for inheriting its methods in :class:`App`.")
|
||||
|
||||
# There's no need for the command line stuff as Python has its own ways to
|
||||
# deal with that
|
||||
@@ -225,12 +225,11 @@ def run():
|
||||
module.insertItemBefore(c, enum)
|
||||
|
||||
module.addHeaderCode("""\
|
||||
class wxPyApp;
|
||||
wxPyApp* wxGetApp();
|
||||
wxAppConsole* wxGetApp();
|
||||
""")
|
||||
module.find('wxTheApp').ignore()
|
||||
f = module.find('wxGetApp')
|
||||
f.type = 'wxPyApp*'
|
||||
f.type = 'wxAppConsole*'
|
||||
f.briefDoc = "Returns the current application object."
|
||||
f.detailedDoc = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user