]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wxPython/tools/img2img.py
There needs to be an initialized wxApp to manipulate bitmaps in wxGTK
[wxWidgets.git] / wxPython / wxPython / tools / img2img.py
index dbefc261a493541912d8d1fc649c37bc024cf916..3ce1e9f7ff2e6c163f1b8921a649fe6c57e2a3d3 100644 (file)
@@ -4,6 +4,10 @@ Common routines for the image converter utilities.
 import sys, os, glob, getopt, string
 from wxPython.wx import *
 
+if wxPlatform == "__WXGTK__":
+    # some bitmap related things need to have a wxApp initialized...
+    app = wxPySimpleApp()
+
 wxInitAllImageHandlers()
 
 def convert(file, maskClr, outputDir, outputName, outType, outExt):