X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/99109c0ff1c29c7c977c073f9f8e0bf4b8e728f7..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/wx/tools/img2xpm.py?ds=inline diff --git a/wxPython/wx/tools/img2xpm.py b/wxPython/wx/tools/img2xpm.py index 3fa833b0ce..9907d1d617 100644 --- a/wxPython/wx/tools/img2xpm.py +++ b/wxPython/wx/tools/img2xpm.py @@ -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__)