annotate light8/rsn.py @ 56:2af6698b0566

pulled Lightboard out of rsn.py (and fixed all the dependency problems i could find) pulled Lightboard out of rsn.py (and fixed all the dependency problems i could find) made some exceptions print better
author drewp
date Tue, 09 Jul 2002 05:28:21 +0000
parents 3011c1028eb7
children eaf60f5dce86
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
1 #!/usr/bin/env python
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
2 from __future__ import nested_scopes
45b12307c695 Initial revision
drewp
parents:
diff changeset
3
51
71489bb71528 - Meet Fader. He is going to grow up and be a crossfader some day
dmcc
parents: 49
diff changeset
4 from Tix import *
4
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
5 from time import sleep
35
3cbe7110d8f7 cleanup imports, fix backwards colors in changing level direction
dmcc
parents: 34
diff changeset
6 from signal import signal, SIGINT
3cbe7110d8f7 cleanup imports, fix backwards colors in changing level direction
dmcc
parents: 34
diff changeset
7 import sys, cPickle
4
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
8
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 4
diff changeset
9 import io
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 4
diff changeset
10 from uihelpers import *
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 4
diff changeset
11 from panels import *
4
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
12 from Xfader import *
39
2443de5df9c5 added subeditor
drewp
parents: 35
diff changeset
13 from subediting import Subediting
51
71489bb71528 - Meet Fader. He is going to grow up and be a crossfader some day
dmcc
parents: 49
diff changeset
14 from Fader import Fader
12
7adc65771676 big restructuring - moved lots of things (including most panels) to other files
drewp
parents: 4
diff changeset
15 import stage
56
2af6698b0566 pulled Lightboard out of rsn.py (and fixed all the dependency problems i could find)
drewp
parents: 54
diff changeset
16 from Lightboard import Lightboard
2af6698b0566 pulled Lightboard out of rsn.py (and fixed all the dependency problems i could find)
drewp
parents: 54
diff changeset
17
2af6698b0566 pulled Lightboard out of rsn.py (and fixed all the dependency problems i could find)
drewp
parents: 54
diff changeset
18 import Subs, Patch
2af6698b0566 pulled Lightboard out of rsn.py (and fixed all the dependency problems i could find)
drewp
parents: 54
diff changeset
19
2af6698b0566 pulled Lightboard out of rsn.py (and fixed all the dependency problems i could find)
drewp
parents: 54
diff changeset
20
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
21
45b12307c695 Initial revision
drewp
parents:
diff changeset
22 if len(sys.argv) >= 2:
45b12307c695 Initial revision
drewp
parents:
diff changeset
23 DUMMY = 0
4
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
24 print "This is the real thing, baby"
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
25 window_title = "Light 8.8 (On Air)"
45b12307c695 Initial revision
drewp
parents:
diff changeset
26 else:
45b12307c695 Initial revision
drewp
parents:
diff changeset
27 DUMMY = 1
4
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
28 print "Dummy mode"
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
29 window_title = "Light 8.8 (Bogus)"
45b12307c695 Initial revision
drewp
parents:
diff changeset
30
45b12307c695 Initial revision
drewp
parents:
diff changeset
31 root = Tk()
45b12307c695 Initial revision
drewp
parents:
diff changeset
32 root.wm_title(window_title)
30
e9d2e7754fd9 sideways subs, new x/y buttons (which don't draw right, but they work)
drewp
parents: 29
diff changeset
33 root.wm_geometry('+462+470')
19
6284a812da50 makefile - add link to ../Widgets/FlyingFader.py
dmcc
parents: 17
diff changeset
34 root.tk_focusFollowsMouse()
4
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
35
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
36
29
f595fdd4c548 minor cleanups, convert parallel port controller to a class
dmcc
parents: 28
diff changeset
37 parportdmx = io.ParportDMX(DUMMY)
4
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
38
56
2af6698b0566 pulled Lightboard out of rsn.py (and fixed all the dependency problems i could find)
drewp
parents: 54
diff changeset
39 mr_lightboard = Lightboard(root,parportdmx,DUMMY)
4
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
40
26
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 19
diff changeset
41 signal(SIGINT, mr_lightboard.quit)
219d6fcbc28d Reclassification, minor cleanups
dmcc
parents: 19
diff changeset
42 bindkeys(root,'<Escape>', mr_lightboard.quit)
4
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
43
f974a462133f added light8 from the posted light8-1.0.tgz
drewp
parents: 0
diff changeset
44 root.mainloop() # Receiver switches main