comparison bin/keyboardcomposer @ 393:e43dcabbf9ba

keyboardcomposer: fix hw slider off by one bug
author David McClosky <dmcc@bigasterisk.com>
date Sat, 16 Jun 2007 00:42:49 +0000
parents 53ec93018ee7
children 0c33ea7d523d
comparison
equal deleted inserted replaced
392:53ec93018ee7 393:e43dcabbf9ba
196 self.unhighlight_row(old_row) 196 self.unhighlight_row(old_row)
197 self.highlight_row(self.current_row) 197 self.highlight_row(self.current_row)
198 row = self.rows[self.current_row] 198 row = self.rows[self.current_row]
199 self.keyhints.pack_configure(before=row) 199 self.keyhints.pack_configure(before=row)
200 200
201 for col in range(8): 201 for col in range(1, 9):
202 try: 202 try:
203 subtk = self.slider_table[(self.current_row, col)] 203 subtk = self.slider_table[(self.current_row, col - 1)]
204 col += 1
205 self.sliders.valueOut("button-upper%d" % col, 127) 204 self.sliders.valueOut("button-upper%d" % col, 127)
206 except KeyError: 205 except KeyError:
207 # unfilled bottom row has holes (plus rows with incomplete 206 # unfilled bottom row has holes (plus rows with incomplete
208 # groups 207 # groups
209 self.sliders.valueOut("button-upper%d" % col, 0) 208 self.sliders.valueOut("button-upper%d" % col, 0)