- if wx.wxGetApp() is None:
- app = wx.wxPySimpleApp()
- img2img.main(sys.argv[1:], wx.wxBITMAP_TYPE_XPM, ".xpm", __doc__)
+ if wx.GetApp() is None:
+ global app
+ app = wx.PySimpleApp()
+ img2img.main(sys.argv[1:], wx.BITMAP_TYPE_XPM, ".xpm", __doc__)