comparison light8/rsn.py @ 137:7d768d04b9f0

tiny changes, probably "not necessary!"
author dmcc
date Sat, 14 Jun 2003 15:11:10 +0000
parents fae7751d9760
children
comparison
equal deleted inserted replaced
136:7e91c49fb2d6 137:7d768d04b9f0
4 from Tix import * 4 from Tix import *
5 from signal import signal, SIGINT 5 from signal import signal, SIGINT
6 from uihelpers import * 6 from uihelpers import *
7 from Fader import Fader 7 from Fader import Fader
8 from Lightboard import Lightboard 8 from Lightboard import Lightboard
9 import time # time is on our side
9 10
10 if len(sys.argv) >= 2: 11 if len(sys.argv) >= 2:
11 DUMMY = 0 12 DUMMY = 0
12 print "Light 8.8: This is the real thing, baby" 13 print "Light 8.8: This is the real thing, baby"
13 window_title = "Light 8.8 (On Air)" 14 window_title = "Light 8.8 (On Air)"
34 signal(SIGINT, mr_lightboard.quit) 35 signal(SIGINT, mr_lightboard.quit)
35 36
36 # 37 #
37 # start net slider server in separate thread 38 # start net slider server in separate thread
38 # 39 #
39 print "Light 8.8: External input server DISABLED" 40 print "Light 8.8: External input server DELETED!"
40 #import ExternalInput, thread 41 #import ExternalInput, thread
41 #thread.start_new_thread(ExternalInput.start_server,()) 42 #thread.start_new_thread(ExternalInput.start_server,())
42 43
43 bindkeys(root,'<Escape>', mr_lightboard.quit) 44 bindkeys(root,'<Escape>', mr_lightboard.quit)
44 45
45 root.bind_class("all","<ButtonPress-4>",lambda ev: eventtoparent(ev,"<ButtonPress-4>")) 46 root.bind_class("all","<ButtonPress-4>",lambda ev: eventtoparent(ev,"<ButtonPress-4>"))
46 root.bind_class("all","<ButtonPress-5>",lambda ev: eventtoparent(ev,"<ButtonPress-5>")) 47 root.bind_class("all","<ButtonPress-5>",lambda ev: eventtoparent(ev,"<ButtonPress-5>"))
47 48
48 print 'Light 8.8: "Uh...Shiny McShine?"' 49 print 'Light 8.8: "Uh...Shiny McShine?"'
50 root.update_idletasks()
51
49 if 1: 52 if 1:
50 root.mainloop() # Receiver switches main 53 while 1:
54 root.update() # Receiver switches main
55 time.sleep(0.01)
51 else: 56 else:
52 sys.path.append("/home/drewp/projects/editor/pour") 57 sys.path.append("/home/drewp/projects/editor/pour")
53 from utils import runstats 58 from utils import runstats
54 runstats("root.mainloop()") 59 runstats("root.mainloop()")
55 60