X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4b73b1b8e585418459362c9bf9173aa21da8c41..10383fe27b4c395417574524e47f08ba72d54f27:/wxPython/wx/tools/img2xpm.py diff --git a/wxPython/wx/tools/img2xpm.py b/wxPython/wx/tools/img2xpm.py index 97c6d6061d..9907d1d617 100644 --- a/wxPython/wx/tools/img2xpm.py +++ b/wxPython/wx/tools/img2xpm.py @@ -14,7 +14,7 @@ # """ -img2xpm.py -- convert several image formats to XPM +img2xpm.py -- convert several image formats to XPM. Usage: @@ -36,14 +36,14 @@ Options: """ import sys - import wx - import img2img +app = None def main(): # some bitmap related things need to have a wxApp initialized... if wx.GetApp() is None: + global app app = wx.PySimpleApp() img2img.main(sys.argv[1:], wx.BITMAP_TYPE_XPM, ".xpm", __doc__)