Some tweaks and cleanup.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-04-30 18:37:26 +00:00
parent ed1ae3fb27
commit 926bb76c2a
14 changed files with 1009 additions and 44 deletions

View File

@@ -8,7 +8,7 @@ Usage:
Options:
-o <dir> The directory to place the .xmp file(s), defaults to
-o <dir> 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,11 @@ import sys, os, glob, getopt, string
from wxPython.wx import *
wxInitAllImageHandlers()
app = wxPySimpleApp() # just to let global initialization to take place...
if wxPlatform == "__WXGTK__":
app = wxPySimpleApp() # Blech! the GUI needs initialized before
# bitmaps can be created...
def convert(file, maskClr, outputDir, outputName):
if string.lower(os.path.splitext(file)[1]) == ".ico":
@@ -96,9 +100,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:])