X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4b73b1b8e585418459362c9bf9173aa21da8c41..fad165036083333e4ad23b3b0e84a012c122cb83:/wxPython/wx/tools/img2png.py diff --git a/wxPython/wx/tools/img2png.py b/wxPython/wx/tools/img2png.py index 4416df9ebf..69fa69c12d 100644 --- a/wxPython/wx/tools/img2png.py +++ b/wxPython/wx/tools/img2png.py @@ -14,7 +14,7 @@ # """ -img2png.py -- convert several image formats to PNG format +img2png.py -- convert several image formats to PNG format. Usage: @@ -40,10 +40,11 @@ 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_PNG, ".png", __doc__)