From: Robin Dunn Date: Sun, 25 Aug 2002 04:21:12 +0000 (+0000) Subject: There needs to be an initialized wxApp to manipulate bitmaps in wxGTK X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ebba910cf1bbc2593c19a8b583e7218bfc7caa6f 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 --- diff --git a/wxPython/wxPython/tools/img2img.py b/wxPython/wxPython/tools/img2img.py index dbefc261a4..3ce1e9f7ff 100644 --- a/wxPython/wxPython/tools/img2img.py +++ b/wxPython/wxPython/tools/img2img.py @@ -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):