]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/encode_bitmaps.py
Some wxCollapsiblePane tweaks:
[wxWidgets.git] / wxPython / demo / encode_bitmaps.py
CommitLineData
96bfd053
RD
1
2"""
3This is a way to save the startup time when running img2py on lots of
4files...
5"""
6
1e4a197e 7import sys
8fa876ca
RD
8
9from wx.tools import img2py
96bfd053
RD
10
11
12command_lines = [
afb810d9
RD
13 " -u -i -n Mondrian bmp_source/mondrian.ico images.py",
14
afb810d9
RD
15 "-a -u -n Background bmp_source/backgrnd.png images.py",
16 "-a -u -n TestStar -m #FFFFFF bmp_source/teststar.png images.py",
17 "-a -u -n TestStar2 bmp_source/teststar.png images.py",
18 "-a -u -n TestMask bmp_source/testmask.bmp images.py",
19
20 "-a -u -n Test2 bmp_source/test2.bmp images.py",
8596dc0b 21 "-a -u -n Test2m -m #0000FF bmp_source/test2.bmp images.py",
afb810d9
RD
22 "-a -u -n Robin bmp_source/robin.jpg images.py",
23
6c75a4cf
RD
24 "-a -u -n Bulb1 bmp_source/bulb1.bmp images.py",
25 "-a -u -n Bulb2 bmp_source/bulb2.bmp images.py",
afb810d9 26
afb810d9
RD
27 "-a -u -n DbDec bmp_source/DbDec.bmp images.py",
28 "-a -u -n Dec bmp_source/Dec.bmp images.py",
29 "-a -u -n Pt bmp_source/Pt.bmp images.py",
30 "-a -u -n DbInc bmp_source/DbInc.bmp images.py",
31 "-a -u -n Inc bmp_source/Inc.bmp images.py",
32
afb810d9
RD
33 "-a -u -n Tog1 -m #C0C0C0 bmp_source/tog1.bmp images.py",
34 "-a -u -n Tog2 -m #C0C0C0 bmp_source/tog2.bmp images.py",
35
36 "-a -u -n Smiles -m #FFFFFF bmp_source/smiles2.bmp images.py",
37
38 "-a -u -n GridBG bmp_source/GridBG.gif images.py",
39
40 "-a -u -n SmallUpArrow -m #0000FF bmp_source/sm_up.bmp images.py",
41 "-a -u -n SmallDnArrow -m #0000FF bmp_source/sm_down.bmp images.py",
42
af83019e
RD
43 "-a -u -n NoIcon bmp_source/noicon.png images.py",
44
45 "-a -u -n WizTest1 bmp_source/wiztest1.bmp images.py",
46 "-a -u -n WizTest2 bmp_source/wiztest2.bmp images.py",
611dc22c 47
6c75a4cf
RD
48 "-a -u -n Vippi bmp_source/Vippi.png images.py",
49
50 "-a -u -n LB01 bmp_source/LB01.png images.py",
51 "-a -u -n LB02 bmp_source/LB02.png images.py",
52 "-a -u -n LB03 bmp_source/LB03.png images.py",
53 "-a -u -n LB04 bmp_source/LB04.png images.py",
54 "-a -u -n LB05 bmp_source/LB05.png images.py",
55 "-a -u -n LB06 bmp_source/LB06.png images.py",
56 "-a -u -n LB07 bmp_source/LB07.png images.py",
57 "-a -u -n LB08 bmp_source/LB08.png images.py",
58 "-a -u -n LB09 bmp_source/LB09.png images.py",
59 "-a -u -n LB10 bmp_source/LB10.png images.py",
60 "-a -u -n LB11 bmp_source/LB11.png images.py",
61 "-a -u -n LB12 bmp_source/LB12.png images.py",
49090f6f 62
2a0495c9 63 "-a -u -n FloatCanvas bmp_source/floatcanvas.png images.py",
6c75a4cf
RD
64 "-a -u -n TheKid bmp_source/thekid.png images.py",
65
66 "-a -u -n Carrot bmp_source/carrot.png images.py",
67 "-a -u -n Pointy bmp_source/pointy.png images.py",
68 "-a -u -n Pencil bmp_source/pencil.png images.py",
8596dc0b 69
8596dc0b
RD
70 "-a -u -i -n WXPdemo bmp_source/wxpdemo.ico images.py",
71
30fc5e8f
RD
72 "-a -u -n _rt_alignleft bmp_source/rt_alignleft.xpm images.py",
73 "-a -u -n _rt_alignright bmp_source/rt_alignright.xpm images.py",
74 "-a -u -n _rt_bold bmp_source/rt_bold.xpm images.py",
75 "-a -u -n _rt_centre bmp_source/rt_centre.xpm images.py",
b97ff8ed 76 "-a -u -n _rt_colour bmp_source/rt_colour.xpm images.py",
30fc5e8f
RD
77 "-a -u -n _rt_copy bmp_source/rt_copy.xpm images.py",
78 "-a -u -n _rt_cut bmp_source/rt_cut.xpm images.py",
79 "-a -u -n _rt_font bmp_source/rt_font.xpm images.py",
80 "-a -u -n _rt_idea bmp_source/rt_idea.xpm images.py",
81 "-a -u -n _rt_indentless bmp_source/rt_indentless.xpm images.py",
82 "-a -u -n _rt_indentmore bmp_source/rt_indentmore.xpm images.py",
83 "-a -u -n _rt_italic bmp_source/rt_italic.xpm images.py",
84 "-a -u -n _rt_open bmp_source/rt_open.xpm images.py",
85 "-a -u -n _rt_paste bmp_source/rt_paste.xpm images.py",
86 "-a -u -n _rt_redo bmp_source/rt_redo.xpm images.py",
87 "-a -u -n _rt_sample bmp_source/rt_sample.xpm images.py",
88 "-a -u -n _rt_save bmp_source/rt_save.xpm images.py",
89 "-a -u -n _rt_smiley bmp_source/rt_smiley.xpm images.py",
90 "-a -u -n _rt_underline bmp_source/rt_underline.xpm images.py",
91 "-a -u -n _rt_undo bmp_source/rt_undo.xpm images.py",
92 "-a -u -n _rt_zebra bmp_source/rt_zebra.xpm images.py",
fbd5dd1d 93
66dae888
RD
94 "-a -u -n _bp_btn1 bmp_source/bp_btn1.png images.py",
95 "-a -u -n _bp_btn2 bmp_source/bp_btn2.png images.py",
96 "-a -u -n _bp_btn3 bmp_source/bp_btn3.png images.py",
97 "-a -u -n _bp_btn4 bmp_source/bp_btn4.png images.py",
98
6cb4f153
RD
99 "-a -u -n _book_red bmp_source/book_red.png images.py",
100 "-a -u -n _book_green bmp_source/book_green.png images.py",
101 "-a -u -n _book_blue bmp_source/book_blue.png images.py",
102
1e4a197e
RD
103 " -u -c bmp_source/001.png throbImages.py",
104 "-a -u -c bmp_source/002.png throbImages.py",
105 "-a -u -c bmp_source/003.png throbImages.py",
106 "-a -u -c bmp_source/004.png throbImages.py",
107 "-a -u -c bmp_source/005.png throbImages.py",
108 "-a -u -c bmp_source/006.png throbImages.py",
109 "-a -u -c bmp_source/007.png throbImages.py",
110 "-a -u -c bmp_source/008.png throbImages.py",
111 "-a -u -c bmp_source/009.png throbImages.py",
112 "-a -u -c bmp_source/010.png throbImages.py",
113 "-a -u -c bmp_source/011.png throbImages.py",
114 "-a -u -c bmp_source/012.png throbImages.py",
115 "-a -u -c bmp_source/013.png throbImages.py",
116 "-a -u -c bmp_source/014.png throbImages.py",
117 "-a -u -c bmp_source/015.png throbImages.py",
118 "-a -u -c bmp_source/016.png throbImages.py",
119 "-a -u -c bmp_source/017.png throbImages.py",
120 "-a -u -c bmp_source/018.png throbImages.py",
121 "-a -u -c bmp_source/019.png throbImages.py",
122 "-a -u -c bmp_source/020.png throbImages.py",
123 "-a -u -c bmp_source/021.png throbImages.py",
124 "-a -u -c bmp_source/022.png throbImages.py",
125 "-a -u -c bmp_source/023.png throbImages.py",
126 "-a -u -c bmp_source/024.png throbImages.py",
127 "-a -u -c bmp_source/025.png throbImages.py",
128 "-a -u -c bmp_source/026.png throbImages.py",
129 "-a -u -c bmp_source/027.png throbImages.py",
130 "-a -u -c bmp_source/028.png throbImages.py",
131 "-a -u -c bmp_source/029.png throbImages.py",
132 "-a -u -c bmp_source/030.png throbImages.py",
133
1e4a197e
RD
134 "-a -u -c bmp_source/logo.png throbImages.py",
135 "-a -u -c bmp_source/rest.png throbImages.py",
96bfd053
RD
136 ]
137
138
d7403ad2
RD
139if __name__ == "__main__":
140 for line in command_lines:
141 args = line.split()
142 img2py.main(args)
96bfd053 143