X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbd5dd1dfa8aa5d7574e2f3e6d898dc8bb4c89c4..170b04bae6c1ca98bcb62db69f38d7ab0f46c808:/wxPython/demo/encode_bitmaps.py diff --git a/wxPython/demo/encode_bitmaps.py b/wxPython/demo/encode_bitmaps.py index dd5196b416..e01bf1425e 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 = [ @@ -79,7 +78,9 @@ command_lines = [ "-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 Blom10Masked -m #FFFFFF bmp_source/toblom10.png images.py", + "-a -u -n FloatCanvas bmp_source/floatcanvas.png images.py", " -u -c bmp_source/001.png throbImages.py", "-a -u -c bmp_source/002.png throbImages.py", @@ -118,7 +119,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)