]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/tools/XRCed/encode_bitmaps.py
   3 from wxPython
.tools 
import img2py
 
   7 # get the list of PNG files 
   8 files 
= glob
.glob('src-images/*.png') 
  10 # Truncate the inages module 
  13 # call img2py on each file 
  16     # extract the basename to be used as the image name 
  17     name 
= os
.path
.splitext(os
.path
.basename(file))[0] 
  21         cmd 
= "-u -i -n %s %s %s" % (name
, file, output
) 
  23         cmd 
= "-a -u -i -n %s %s %s" % (name
, file, output
) 
  24     img2py
.main(cmd
.split())