Files
@ 70bd142d72c2
Branch filter:
Location: light9/light8/rsn.py - annotation
70bd142d72c2
1.1 KiB
text/x-python
added a SerialPot io object and made the IO code much more elegant (in io.py)
f974a462133f 45b12307c695 45b12307c695 71489bb71528 3cbe7110d8f7 7adc65771676 7adc65771676 71489bb71528 2af6698b0566 2af6698b0566 45b12307c695 45b12307c695 f974a462133f 45b12307c695 45b12307c695 45b12307c695 f974a462133f 45b12307c695 45b12307c695 45b12307c695 45b12307c695 e9d2e7754fd9 6284a812da50 f974a462133f 70bd142d72c2 70bd142d72c2 70bd142d72c2 70bd142d72c2 70bd142d72c2 f974a462133f 2af6698b0566 ab0be21b549b f974a462133f 219d6fcbc28d 001646cd5349 219d6fcbc28d f974a462133f 001646cd5349 001646cd5349 eaf60f5dce86 f974a462133f eaf60f5dce86 eaf60f5dce86 eaf60f5dce86 | #!/usr/bin/env python
from __future__ import nested_scopes
from Tix import *
from signal import signal, SIGINT
import io
from uihelpers import *
from Fader import Fader
from Lightboard import Lightboard
if len(sys.argv) >= 2:
DUMMY = 0
print "This is the real thing, baby"
window_title = "Light 8.8 (On Air)"
else:
DUMMY = 1
print "Dummy mode"
window_title = "Light 8.8 (Bogus)"
root = Tk()
root.wm_title(window_title)
root.wm_geometry('+462+470')
root.tk_focusFollowsMouse()
parportdmx = io.ParportDMX()
if not DUMMY:
# this turns the parportdmx from dummy to live
parportdmx.golive()
mr_lightboard = Lightboard(root,parportdmx,DUMMY)
root.tk_setPalette('gray40')
signal(SIGINT, mr_lightboard.quit)
bindkeys(root,'<Escape>', mr_lightboard.quit)
root.bind_class("all","<ButtonPress-4>",lambda ev: eventtoparent(ev,"<ButtonPress-4>"))
root.bind_class("all","<ButtonPress-5>",lambda ev: eventtoparent(ev,"<ButtonPress-5>"))
root.mainloop() # Receiver switches main
#import profile
#profile.run("root.mainloop()","profile/idlemanysubs")
|