comparison light8/panels.py @ 16:7dbe8067acea

fixed bug with channel levels not displaying fixed bug with channel levels not displaying moved an import from rsn to io
author drewp
date Sun, 07 Jul 2002 06:33:29 +0000
parents 7adc65771676
children 6284a812da50
comparison
equal deleted inserted replaced
15:c76b62eccdec 16:7dbe8067acea
41 print '>>>', str 41 print '>>>', str
42 print eval(str) 42 print eval(str)
43 self.frame.focus() 43 self.frame.focus()
44 44
45 class Leveldisplay: 45 class Leveldisplay:
46 def __init__(self,parent,_oldlevels): 46 def __init__(self,parent,_oldlevels,channel_levels):
47 global channel_levels
48 47
49 frames = (make_frame(parent), make_frame(parent)) 48 frames = (make_frame(parent), make_frame(parent))
50 channel_levels=[] 49 channel_levels[:]=[]
51 for channel in range(1, 69): 50 for channel in range(1, 69):
52 f=Frame(frames[channel > 34]) 51 f=Frame(frames[channel > 34])
53 Label(f,text=str(channel), width=3, bg='lightPink', 52 Label(f,text=str(channel), width=3, bg='lightPink',
54 font=stdfont, padx=0, pady=0, bd=0, height=1).pack(side='left') 53 font=stdfont, padx=0, pady=0, bd=0, height=1).pack(side='left')
55 Label(f,text=Patch.get_channel_name(channel), width=8, 54 Label(f,text=Patch.get_channel_name(channel), width=8,
56 font=stdfont, anchor='w', padx=0, pady=0, bd=0, height=1).pack(side='left') 55 font=stdfont, anchor='w', padx=0, pady=0, bd=0, height=1).pack(side='left')
57 l=Label(f,text=_oldlevels[channel-1], width=3, bg='lightBlue', 56 l=Label(f, width=3, bg='lightBlue', #text=_oldlevels[channel-1],
58 font=stdfont, anchor='e', padx=1, pady=0, bd=0, height=1) 57 font=stdfont, anchor='e', padx=1, pady=0, bd=0, height=1)
59 l.pack(side='left') 58 l.pack(side='left')
60 colorlabel(l) 59 colorlabel(l)
61 channel_levels.append(l) 60 channel_levels.append(l)
62 f.pack(side='top') 61 f.pack(side='top')
62 # channel_levels is an output - changelevel will use it to access these labels
63 63
64 class Subpanels: 64 class Subpanels:
65 def __init__(self,scenesparent,effectsparent,scalelevels,Subs,xfader,changelevel): 65 def __init__(self,scenesparent,effectsparent,scalelevels,Subs,xfader,changelevel):
66 66
67 sublist = Subs.subs.items() 67 sublist = Subs.subs.items()