Mercurial > code > home > repos > light9
comparison light8/rsn.py @ 127:fae7751d9760
disabled external sliders reading
disabled external sliders reading
added a (disabled) profiling mainloop
author | drewp |
---|---|
date | Sat, 14 Jun 2003 14:49:04 +0000 |
parents | c071ada6ae2b |
children | 7d768d04b9f0 |
comparison
equal
deleted
inserted
replaced
126:57809e0ef359 | 127:fae7751d9760 |
---|---|
34 signal(SIGINT, mr_lightboard.quit) | 34 signal(SIGINT, mr_lightboard.quit) |
35 | 35 |
36 # | 36 # |
37 # start net slider server in separate thread | 37 # start net slider server in separate thread |
38 # | 38 # |
39 print "Light 8.8: External input server spawned" | 39 print "Light 8.8: External input server DISABLED" |
40 import ExternalInput, thread | 40 #import ExternalInput, thread |
41 thread.start_new_thread(ExternalInput.start_server,()) | 41 #thread.start_new_thread(ExternalInput.start_server,()) |
42 | 42 |
43 bindkeys(root,'<Escape>', mr_lightboard.quit) | 43 bindkeys(root,'<Escape>', mr_lightboard.quit) |
44 | 44 |
45 root.bind_class("all","<ButtonPress-4>",lambda ev: eventtoparent(ev,"<ButtonPress-4>")) | 45 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>")) | 46 root.bind_class("all","<ButtonPress-5>",lambda ev: eventtoparent(ev,"<ButtonPress-5>")) |
47 | 47 |
48 print 'Light 8.8: "Uh...Shiny McShine?"' | 48 print 'Light 8.8: "Uh...Shiny McShine?"' |
49 root.mainloop() # Receiver switches main | 49 if 1: |
50 root.mainloop() # Receiver switches main | |
51 else: | |
52 sys.path.append("/home/drewp/projects/editor/pour") | |
53 from utils import runstats | |
54 runstats("root.mainloop()") | |
50 | 55 |
51 #import profile | 56 #import profile |
52 #profile.run("root.mainloop()","profile/idlemanysubs") | 57 #profile.run("root.mainloop()","profile/idlemanysubs") |