comparison light8/Subs.py @ 51:71489bb71528

- Meet Fader. He is going to grow up and be a crossfader some day - Meet Fader. He is going to grow up and be a crossfader some day (tomarrow) - Tkinter -> Tix so we can use ScrolledListBox which has a command - Some improvements to Cue - Cues need to specify their final values - Cues are imported by subs. This should be fixed for style points. - Some other cleanups
author dmcc
date Sun, 07 Jul 2002 15:40:45 +0000
parents d07b3a20c48e
children 177e9ba0b4a7
comparison
equal deleted inserted replaced
50:5ff08b489693 51:71489bb71528
1 from Patch import * 1 from Patch import *
2 from time import time 2 from time import time
3 from Tkinter import * 3 from Tix import *
4 from types import TupleType 4 from types import TupleType
5 5
6 stdfont = ('Arial', 8) 6 stdfont = ('Arial', 8)
7 7
8 class Param: # abstract 8 class Param: # abstract
214 self.levels.update(levels) 214 self.levels.update(levels)
215 215
216 216
217 217
218 def reload_data(dummy): 218 def reload_data(dummy):
219 global subs 219 global subs, cues
220 if dummy: 220 if dummy:
221 import ConfigDummy as Config 221 import ConfigDummy as Config
222 else: 222 else:
223 import Config 223 import Config
224 224
232 color = None 232 color = None
233 233
234 subs[name] = Sub(name, levels, color=color) 234 subs[name] = Sub(name, levels, color=color)
235 235
236 # subs = dict([(name, Sub(levels)) for name, levels in Config.subs.items()]) 236 # subs = dict([(name, Sub(levels)) for name, levels in Config.subs.items()])
237
238 cues = Config.cues
239
237 def longestsubname(): 240 def longestsubname():
238 return max([len(x) for x in subs.keys()]) 241 return max([len(x) for x in subs.keys()])