Redo (again) how the stock objects are initialized in wxPython.
Factor out the wxPyTwoIntItem_helper template function so it can be used in other extension modules. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -173,6 +173,15 @@ your Mac."""
|
||||
self._BootstrapApp()
|
||||
|
||||
|
||||
def OnPreInit(self):
|
||||
"""
|
||||
Things that must be done after _BootstrapApp has done its
|
||||
thing, but would be nice if they were already done by the time
|
||||
that OnInit is called.
|
||||
"""
|
||||
wx.StockGDI._initStockObjects()
|
||||
|
||||
|
||||
def __del__(self, destroy=wx.PyApp.__del__):
|
||||
self.RestoreStdio() # Just in case the MainLoop was overridden
|
||||
destroy(self)
|
||||
|
Reference in New Issue
Block a user