X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbd5dd1dfa8aa5d7574e2f3e6d898dc8bb4c89c4..d5a0636fa0ef9772058222da3d9707505af10f28:/wxPython/demo/encode_bitmaps.py diff --git a/wxPython/demo/encode_bitmaps.py b/wxPython/demo/encode_bitmaps.py index dd5196b416..d298fb4df5 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 = [ @@ -80,6 +79,8 @@ command_lines = [ "-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", + " -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)