]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/tools/img2xpm.py
Allow for non-ascii text in resources
[wxWidgets.git] / wxPython / wx / tools / img2xpm.py
index 3fa833b0cea347a894cc146160fcfc15f078796b..9907d1d617c43807fbda839a5b1a9b4316c306b7 100644 (file)
@@ -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__)