comparison light8/panels.py @ 34:411de8b46aef

the famous you-are-in-the-process-of-changing-this-light indicator. the famous you-are-in-the-process-of-changing-this-light indicator. red = going up blue = going down also, a generic color fader in uihelpers.py -- unused (as of now)
author dmcc
date Sun, 07 Jul 2002 12:06:16 +0000
parents 925382e7cdc8
children 0ce56c4dd355
comparison
equal deleted inserted replaced
33:d9a0f6c88b39 34:411de8b46aef
45 45
46 class Leveldisplay: 46 class Leveldisplay:
47 def __init__(self, parent, channel_levels, num_channels=68): 47 def __init__(self, parent, channel_levels, num_channels=68):
48 frames = (make_frame(parent), make_frame(parent)) 48 frames = (make_frame(parent), make_frame(parent))
49 channel_levels[:]=[] 49 channel_levels[:]=[]
50 self.number_labels = {} 50 self.number_labels = []
51 for channel in range(1, num_channels+1): 51 for channel in range(1, num_channels+1):
52 52
53 # frame for this channel 53 # frame for this channel
54 f = Frame(frames[channel > (num_channels/2)]) 54 f = Frame(frames[channel > (num_channels/2)])
55 # channel number -- will turn yellow when being altered 55 # channel number -- will turn yellow when being altered
56 num_lab = Label(f, text=str(channel), width=3, bg='lightPink', 56 num_lab = Label(f, text=str(channel), width=3, bg='lightPink',
57 font=stdfont, padx=0, pady=0, bd=0, height=1) 57 font=stdfont, padx=0, pady=0, bd=0, height=1)
58 num_lab.pack(side='left') 58 num_lab.pack(side='left')
59 self.number_labels[channel] = num_lab 59 self.number_labels.append(num_lab)
60 60
61 # text description of channel 61 # text description of channel
62 Label(f, text=Patch.get_channel_name(channel), width=8, 62 Label(f, text=Patch.get_channel_name(channel), width=8,
63 font=stdfont, anchor='w', padx=0, pady=0, bd=0, 63 font=stdfont, anchor='w', padx=0, pady=0, bd=0,
64 height=1).pack(side='left') 64 height=1).pack(side='left')