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