comparison light8/rsn.py @ 17:43aa1ee8b3a9

some comments and garbage cleanup
author drewp
date Sun, 07 Jul 2002 06:43:40 +0000
parents 7dbe8067acea
children 6284a812da50
comparison
equal deleted inserted replaced
16:7dbe8067acea 17:43aa1ee8b3a9
41 scalelevels = {} 41 scalelevels = {}
42 fades = {} 42 fades = {}
43 43
44 _oldlevels=[None] * 68 44 _oldlevels=[None] * 68
45 45
46 # this is called on a loop, and ALSO by the Scales
46 def changelevel(*args): 47 def changelevel(*args):
47 'Amp trims slider' 48 'Amp trims slider'
48 global _oldlevels 49 global _oldlevels
49 50
50 levels = [0] * 68 51 levels = [0] * 68
84 root.destroy() 85 root.destroy()
85 sys.exit() 86 sys.exit()
86 87
87 88
88 xfader=Xfader(scalelevels) 89 xfader=Xfader(scalelevels)
89
90
91 90
92 def buildinterface(*args): 91 def buildinterface(*args):
93 global channel_levels, _oldlevels, leveldisplay, xfader 92 global channel_levels, _oldlevels, leveldisplay, xfader
94 for w in root.winfo_children(): 93 for w in root.winfo_children():
95 w.destroy() 94 w.destroy()
189 # bindkeys(root,'<q>', quit) 188 # bindkeys(root,'<q>', quit)
190 # bindkeys(root,'<r>', refresh) 189 # bindkeys(root,'<r>', refresh)
191 # bindkeys(root,'<s>', make_sub) 190 # bindkeys(root,'<s>', make_sub)
192 backgroundloop() 191 backgroundloop()
193 root.mainloop() # Receiver switches main 192 root.mainloop() # Receiver switches main
194
195 while 1:
196 for lev in range(0,255,25)+range(255,0,-25):
197 sleep(.2)