X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..6b9f434ef364731ccf6e4ebf78b8cf71d3c85b79:/wxPython/demo/encode_bitmaps.py?ds=inline diff --git a/wxPython/demo/encode_bitmaps.py b/wxPython/demo/encode_bitmaps.py index b3d027eb11..84209178e9 100644 --- a/wxPython/demo/encode_bitmaps.py +++ b/wxPython/demo/encode_bitmaps.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python -#---------------------------------------------------------------------- """ This is a way to save the startup time when running img2py on lots of @@ -7,7 +5,8 @@ files... """ import sys -from wxPython.tools import img2py + +from wx.tools import img2py command_lines = [ @@ -23,6 +22,7 @@ command_lines = [ "-a -u -n TestMask bmp_source/testmask.bmp images.py", "-a -u -n Test2 bmp_source/test2.bmp images.py", + "-a -u -n Test2m -m #0000FF bmp_source/test2.bmp images.py", "-a -u -n Robin bmp_source/robin.jpg images.py", "-a -u -n Bulb1 bmp_source/lb1.bmp images.py", @@ -38,6 +38,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", @@ -60,6 +61,33 @@ command_lines = [ "-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", + + "-a -u -n Blom08m -m #FFFFFF bmp_source/toblom08.png images.py", + "-a -u -n Blom10m -m #FFFFFF bmp_source/toblom10.png images.py", + "-a -u -n Blom15m -m #FFFFFF bmp_source/toblom15.png images.py", + + "-a -u -n FloatCanvas bmp_source/floatcanvas.png images.py", + + "-a -u -i -n WXP bmp_source/wxp.ico images.py", + "-a -u -i -n WXPdemo bmp_source/wxpdemo.ico images.py", " -u -c bmp_source/001.png throbImages.py", @@ -99,7 +127,8 @@ command_lines = [ ] -for line in command_lines: - args = line.split() - img2py.main(args) +if __name__ == "__main__": + for line in command_lines: + args = line.split() + img2py.main(args)