There needs to be an initialized wxApp to manipulate bitmaps in wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-08-25 04:21:12 +00:00
parent 6ba338ecc3
commit ebba910cf1

View 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):