Mercurial > code > home > repos > light9
diff 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 |
line wrap: on
line diff
--- a/light8/panels.py Sun Jul 07 10:55:05 2002 +0000 +++ b/light8/panels.py Sun Jul 07 12:06:16 2002 +0000 @@ -47,7 +47,7 @@ def __init__(self, parent, channel_levels, num_channels=68): frames = (make_frame(parent), make_frame(parent)) channel_levels[:]=[] - self.number_labels = {} + self.number_labels = [] for channel in range(1, num_channels+1): # frame for this channel @@ -56,7 +56,7 @@ num_lab = Label(f, text=str(channel), width=3, bg='lightPink', font=stdfont, padx=0, pady=0, bd=0, height=1) num_lab.pack(side='left') - self.number_labels[channel] = num_lab + self.number_labels.append(num_lab) # text description of channel Label(f, text=Patch.get_channel_name(channel), width=8,