X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7905ec5558bb5fe7bcaab231503112a6bf815580..9d7de3c2b84dc40d969d5f993247df02c18b3d3f:/wxPython/tools/img2xpm.py
diff --git a/wxPython/tools/img2xpm.py b/wxPython/tools/img2xpm.py
index 4acc0d6b50..692156d35d 100644
--- a/wxPython/tools/img2xpm.py
+++ b/wxPython/tools/img2xpm.py
@@ -8,7 +8,7 @@ Usage:
Options:
- -o
The directory to place the .xmp file(s), defaults to
+ -o The directory to place the .xpm file(s), defaults to
the current directory.
-m <#rrggbb> If the original image has a mask or transparency defined
@@ -26,7 +26,7 @@ import sys, os, glob, getopt, string
from wxPython.wx import *
wxInitAllImageHandlers()
-app = wxPySimpleApp() # just to let global initialization to take place...
+
def convert(file, maskClr, outputDir, outputName):
if string.lower(os.path.splitext(file)[1]) == ".ico":
@@ -96,9 +96,6 @@ def main(args):
if __name__ == "__main__":
- if wxPlatform == "__WXGTK__":
- app = wxPySimpleApp() # Blech! the GUI needs initialized before
- # bitmaps can be created...
main(sys.argv[1:])