X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4b73b1b8e585418459362c9bf9173aa21da8c41..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/wx/tools/img2py.py diff --git a/wxPython/wx/tools/img2py.py b/wxPython/wx/tools/img2py.py index b4f6b4c9e4..71a6099b6d 100644 --- a/wxPython/wx/tools/img2py.py +++ b/wxPython/wx/tools/img2py.py @@ -124,7 +124,7 @@ def crunch_data(data, compressed): return fp.getvalue() - +app = None def main(args): if not args or ("-h" in args): print __doc__ @@ -132,6 +132,7 @@ def main(args): # some bitmap related things need to have a wxApp initialized... if wx.GetApp() is None: + global app app = wx.PySimpleApp() append = 0