X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd4b9c8c54a9befa699cf9d410c4c5010544b030..02161c7c81e12685d04a1f73e714ca52ad858f6c:/wxPython/demo/encode_bitmaps.py diff --git a/wxPython/demo/encode_bitmaps.py b/wxPython/demo/encode_bitmaps.py index 8abc04575e..37db1b1b85 100644 --- a/wxPython/demo/encode_bitmaps.py +++ b/wxPython/demo/encode_bitmaps.py @@ -1,13 +1,12 @@ -#!/usr/bin/env python -#---------------------------------------------------------------------- """ This is a way to save the startup time when running img2py on lots of files... """ -import sys, string -from wxPython.tools import img2py +import sys + +from wx.tools import img2py command_lines = [ @@ -38,6 +37,7 @@ command_lines = [ "-a -u -n New -m #C0C0C0 bmp_source/new.bmp images.py", "-a -u -n Open -m #C0C0C0 bmp_source/open.bmp images.py", "-a -u -n Copy -m #C0C0C0 bmp_source/copy.bmp images.py", + "-a -u -n Copy2 -m #C0C0C0 bmp_source/copy2.bmp images.py", "-a -u -n Paste -m #C0C0C0 bmp_source/paste.bmp images.py", "-a -u -n Tog1 -m #C0C0C0 bmp_source/tog1.bmp images.py", "-a -u -n Tog2 -m #C0C0C0 bmp_source/tog2.bmp images.py", @@ -55,12 +55,70 @@ command_lines = [ "-a -u -n File1 -m #FFFFFF bmp_source/file1.bmp images.py", "-a -u -n File2 -m #FFFFFF bmp_source/file2.bmp images.py", - "-a -u -n NoIcon bmp_source/noicon.png images.py" - + "-a -u -n NoIcon bmp_source/noicon.png images.py", + + "-a -u -n WizTest1 bmp_source/wiztest1.bmp images.py", + "-a -u -n WizTest2 bmp_source/wiztest2.bmp images.py", + + "-a -u -n Tux bmp_source/Tux.png images.py", + + + "-a -u -n Blom01 bmp_source/toblom01.png images.py", + "-a -u -n Blom02 bmp_source/toblom02.png images.py", + "-a -u -n Blom03 bmp_source/toblom03.png images.py", + "-a -u -n Blom04 bmp_source/toblom04.png images.py", + "-a -u -n Blom05 bmp_source/toblom05.png images.py", + "-a -u -n Blom06 bmp_source/toblom06.png images.py", + "-a -u -n Blom07 bmp_source/toblom07.png images.py", + "-a -u -n Blom08 bmp_source/toblom08.png images.py", + "-a -u -n Blom09 bmp_source/toblom09.png images.py", + "-a -u -n Blom10 bmp_source/toblom10.png images.py", + "-a -u -n Blom11 bmp_source/toblom11.png images.py", + "-a -u -n Blom12 bmp_source/toblom12.png images.py", + "-a -u -n Blom13 bmp_source/toblom13.png images.py", + "-a -u -n Blom14 bmp_source/toblom14.png images.py", + "-a -u -n Blom15 bmp_source/toblom15.png images.py", + + + " -u -c bmp_source/001.png throbImages.py", + "-a -u -c bmp_source/002.png throbImages.py", + "-a -u -c bmp_source/003.png throbImages.py", + "-a -u -c bmp_source/004.png throbImages.py", + "-a -u -c bmp_source/005.png throbImages.py", + "-a -u -c bmp_source/006.png throbImages.py", + "-a -u -c bmp_source/007.png throbImages.py", + "-a -u -c bmp_source/008.png throbImages.py", + "-a -u -c bmp_source/009.png throbImages.py", + "-a -u -c bmp_source/010.png throbImages.py", + "-a -u -c bmp_source/011.png throbImages.py", + "-a -u -c bmp_source/012.png throbImages.py", + "-a -u -c bmp_source/013.png throbImages.py", + "-a -u -c bmp_source/014.png throbImages.py", + "-a -u -c bmp_source/015.png throbImages.py", + "-a -u -c bmp_source/016.png throbImages.py", + "-a -u -c bmp_source/017.png throbImages.py", + "-a -u -c bmp_source/018.png throbImages.py", + "-a -u -c bmp_source/019.png throbImages.py", + "-a -u -c bmp_source/020.png throbImages.py", + "-a -u -c bmp_source/021.png throbImages.py", + "-a -u -c bmp_source/022.png throbImages.py", + "-a -u -c bmp_source/023.png throbImages.py", + "-a -u -c bmp_source/024.png throbImages.py", + "-a -u -c bmp_source/025.png throbImages.py", + "-a -u -c bmp_source/026.png throbImages.py", + "-a -u -c bmp_source/027.png throbImages.py", + "-a -u -c bmp_source/028.png throbImages.py", + "-a -u -c bmp_source/029.png throbImages.py", + "-a -u -c bmp_source/030.png throbImages.py", + + "-a -u -c bmp_source/eclouds.png throbImages.py", + "-a -u -c bmp_source/logo.png throbImages.py", + "-a -u -c bmp_source/rest.png throbImages.py", ] -for line in command_lines: - args = string.split(line) - img2py.main(args) +if __name__ == "__main__": + for line in command_lines: + args = line.split() + img2py.main(args)