Mercurial > code > home > repos > light9
annotate light8/rsn.py @ 57:eaf60f5dce86
rm'd unneeded imports
rm'd unneeded imports
profiled
author | drewp |
---|---|
date | Tue, 09 Jul 2002 06:34:29 +0000 |
parents | 2af6698b0566 |
children | 001646cd5349 |
rev | line source |
---|---|
4 | 1 #!/usr/bin/env python |
0 | 2 from __future__ import nested_scopes |
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 * |
35
3cbe7110d8f7
cleanup imports, fix backwards colors in changing level direction
dmcc
parents:
34
diff
changeset
|
5 from signal import signal, SIGINT |
12
7adc65771676
big restructuring - moved lots of things (including most panels) to other files
drewp
parents:
4
diff
changeset
|
6 import io |
7adc65771676
big restructuring - moved lots of things (including most panels) to other files
drewp
parents:
4
diff
changeset
|
7 from uihelpers import * |
51
71489bb71528
- Meet Fader. He is going to grow up and be a crossfader some day
dmcc
parents:
49
diff
changeset
|
8 from Fader import Fader |
56
2af6698b0566
pulled Lightboard out of rsn.py (and fixed all the dependency problems i could find)
drewp
parents:
54
diff
changeset
|
9 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
|
10 |
0 | 11 if len(sys.argv) >= 2: |
12 DUMMY = 0 | |
4 | 13 print "This is the real thing, baby" |
0 | 14 window_title = "Light 8.8 (On Air)" |
15 else: | |
16 DUMMY = 1 | |
4 | 17 print "Dummy mode" |
0 | 18 window_title = "Light 8.8 (Bogus)" |
19 | |
20 root = Tk() | |
21 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
|
22 root.wm_geometry('+462+470') |
19 | 23 root.tk_focusFollowsMouse() |
4 | 24 |
29
f595fdd4c548
minor cleanups, convert parallel port controller to a class
dmcc
parents:
28
diff
changeset
|
25 parportdmx = io.ParportDMX(DUMMY) |
4 | 26 |
56
2af6698b0566
pulled Lightboard out of rsn.py (and fixed all the dependency problems i could find)
drewp
parents:
54
diff
changeset
|
27 mr_lightboard = Lightboard(root,parportdmx,DUMMY) |
4 | 28 |
26 | 29 signal(SIGINT, mr_lightboard.quit) |
30 bindkeys(root,'<Escape>', mr_lightboard.quit) | |
4 | 31 |
57 | 32 |
4 | 33 root.mainloop() # Receiver switches main |
57 | 34 |
35 #import profile | |
36 #profile.run("root.mainloop()","profile/idlemanysubs") |