File: encode_bitmaps.py

package info (click to toggle)
wxpython3.0 3.0.2.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 482,760 kB
  • ctags: 518,293
  • sloc: cpp: 2,127,226; python: 294,045; makefile: 51,942; ansic: 19,033; sh: 3,013; xml: 1,629; perl: 17
file content (37 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

"""
This is a way to save the startup time when running img2py on lots of
files...
"""
import sys, os
if os.path.abspath('..') not in sys.path:
    sys.path.append(os.path.abspath('..'))

vspdir =  'f:/Python%s-sp.v%s' % ( '25', '660')  # version-specific site-packages
if os.path.exists(vspdir) and vspdir not in sys.path:
    sys.path.append(vspdir)

from wx.tools import img2py


command_lines = [
    "   -u -n First PlayerFirst.png ../images.py",
    "-a -u -n Prev PlayerPrev.png ../images.py",
    "-a -u -n Next PlayerNext.png ../images.py",
    "-a -u -n Last PlayerLast.png ../images.py",
    "-a -u -n PrintIt Printer.png ../images.py",
    "-a -u -n SaveIt Save.png ../images.py",
    "-a -u -n Left ArrowLeft.png ../images.py",
    "-a -u -n Right ArrowRight.png ../images.py",
    "-a -u -n Width DirectionH.png ../images.py",
    "-a -u -n Height DirectionV.png ../images.py",
    "-a -u -n ZoomIn ZoomIn.png ../images.py",
    "-a -u -n ZoomOut ZoomOut.png ../images.py",
    ]


if __name__ == "__main__":
    for line in command_lines:
        args = line.split()
        img2py.main(args)