Change how/when the app object is created

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-09-24 21:18:13 +00:00
parent 4c5304540d
commit 9e70eb3b1d
4 changed files with 10 additions and 3 deletions

View File

@@ -37,6 +37,9 @@ import img2img
from wxPython import wx
def main():
# some bitmap related things need to have a wxApp initialized...
if wx.wxGetApp() is None:
app = wx.wxPySimpleApp()
img2img.main(sys.argv[1:], wx.wxBITMAP_TYPE_XPM, ".xpm", __doc__)