]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/encode_bitmaps.py
always return a non NULL font from wxLoadFont
[wxWidgets.git] / wxPython / demo / encode_bitmaps.py
1 #!/usr/bin/env python
2 #----------------------------------------------------------------------
3
4 """
5 This is a way to save the startup time when running img2py on lots of
6 files...
7 """
8
9 import sys, string
10 sys.path.insert(0, "../tools")
11
12 import img2py
13
14
15 command_lines = [
16 " -n Mondrian bmp_source/mondrian.ico images.py",
17
18 "-a -n _10s_ bmp_source/10s.gif images.py",
19 "-a -n _01c_ bmp_source/01c.gif images.py",
20 "-a -n _12h_ bmp_source/12h.gif images.py",
21 "-a -n _13d_ bmp_source/13d.gif images.py",
22 "-a -n Background bmp_source/backgrnd.png images.py",
23 "-a -n TestStar -m #FFFFFF bmp_source/teststar.png images.py",
24 "-a -n TestStar2 bmp_source/teststar.png images.py",
25 "-a -n TestMask bmp_source/testmask.bmp images.py",
26
27 "-a -n Test2 bmp_source/test2.bmp images.py",
28 # "-a -n Robin bmp_source/robin.jpg images.py",
29
30 "-a -n Bulb1 bmp_source/lb1.bmp images.py",
31 "-a -n Bulb2 bmp_source/lb2.bmp images.py",
32
33 "-a -n Calendar bmp_source/Calend.bmp images.py",
34 "-a -n DbDec bmp_source/DbDec.bmp images.py",
35 "-a -n Dec bmp_source/Dec.bmp images.py",
36 "-a -n Pt bmp_source/Pt.bmp images.py",
37 "-a -n DbInc bmp_source/DbInc.bmp images.py",
38 "-a -n Inc bmp_source/Inc.bmp images.py",
39
40 "-a -n New -m #C0C0C0 bmp_source/new.bmp images.py",
41 "-a -n Open -m #C0C0C0 bmp_source/open.bmp images.py",
42 "-a -n Copy -m #C0C0C0 bmp_source/copy.bmp images.py",
43 "-a -n Paste -m #C0C0C0 bmp_source/paste.bmp images.py",
44 "-a -n Tog1 -m #C0C0C0 bmp_source/tog1.bmp images.py",
45 "-a -n Tog2 -m #C0C0C0 bmp_source/tog2.bmp images.py",
46
47 "-a -n Smiles bmp_source/smiles.bmp images.py",
48
49 "-a -n GridBG bmp_source/GridBG.gif images.py",
50
51 ]
52
53
54 for line in command_lines:
55 args = string.split(line)
56 img2py.main(args)
57