Changeset - e6f5ffb6a1b4
[Not reviewed]
default
0 1 0
David McClosky - 18 years ago 2007-06-15 22:08:09
dmcc@bigasterisk.com
keyboardcomposer: zero hw sliders not used by row
1 file changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
bin/keyboardcomposer
Show inline comments
 
@@ -177,19 +177,21 @@ class KeyboardComposer(Frame, SubClient)
 
        row = self.rows[self.current_row]
 
        self.keyhints.pack_configure(before=row)
 

	
 
        for col in range(8):
 
            try:
 
                subtk = self.slider_table[(self.current_row, col)]
 
                self.sliders.valueOut("button-upper%d" % (col + 1), 127)
 
                col += 1
 
                self.sliders.valueOut("button-upper%d" % col, 127)
 
            except KeyError:
 
                # unfilled bottom row has holes (plus rows with incomplete
 
                # groups
 
                self.sliders.valueOut("button-upper%d" % (col + 1), 0)
 
                self.sliders.valueOut("button-upper%d" % col, 0)
 
                self.sliders.valueOut("slider%d" % col, 0)
 
                continue
 
            self.send_to_hw(subtk.name, col + 1)
 
            self.send_to_hw(subtk.name, col)
 
            
 
    def got_nudger(self, number, direction, full=0):
 
        subtk = self.slider_table[(self.current_row, number)]
 
        if direction == 'up':
 
            if full:
 
                subtk.scale.fade(1)
0 comments (0 inline, 0 general)