File: regen-screenshots.py

package info (click to toggle)
solfege 3.16.4-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 34,472 kB
  • ctags: 5,287
  • sloc: python: 22,642; xml: 14,196; ansic: 4,682; makefile: 621; sh: 287
file content (43 lines) | stat: -rw-r--r-- 1,145 bytes parent folder | download
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
38
39
40
41
42
43
#!/usr/bin/python

import os
import sys
import subprocess

filenames = [
    "trainingset-editor.png",
    "preferences-midi.png",
    "preferences-user.png",
    "preferences-external-programs.png",
    "preferences-gui.png",
    "preferences-practise.png",
    "preferences-sound-setup.png",
    #    "preferences-sound-setup-win32.png",
    "id-interval-buttons-thirds.png",
    "id-interval-piano.png",
    "singinterval.png",
    "idbyname-chords.png",
    "chord.png",
    "singchord.png",
    "rhythm.png",
    "dictation.png",
    "idbyname-intonation.png",
    "idtone.png",
    "identifybpm.png",
    "twelvetone.png",
    "nameinterval.png",
    "elembuilder-harmonic-progressions.png",

    #"chordname-example.png",
    #"progressionlabel-example-1.png",
    #"rnc-example.png",
]

if 'LANGUAGE' not in os.environ:
    print "Set the LANGUAGE environment variable and run Solfege with that locale"
    sys.exit()
    
for filename in filenames:
    print "Prepare for", filename
    raw_input("[Press Enter]")
    subprocess.call(["python", "tools/screenshot.py", os.path.join("help", os.environ['LANGUAGE'], "figures", filename)])