changeset 376:b74c50018564

upper button lights indicate "dead"ness
author David McClosky <dmcc@bigasterisk.com>
date Fri, 15 Jun 2007 20:36:41 +0000
parents 962f46713b63
children c58e781829a3
files bin/keyboardcomposer
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/keyboardcomposer	Fri Jun 15 20:23:43 2007 +0000
+++ b/bin/keyboardcomposer	Fri Jun 15 20:36:41 2007 +0000
@@ -179,8 +179,12 @@
         for col in range(8):
             try:
                 subtk = self.slider_table[(self.current_row, col)]
+                self.sliders.valueOut("button-upper%d" % (col + 1), 127)
             except KeyError:
-                pass # unfilled bottom row has holes
+                # unfilled bottom row has holes (plus rows with incomplete
+                # groups
+                self.sliders.valueOut("button-upper%d" % (col + 1), 0)
+                continue
             self.send_to_hw(subtk.name, col + 1)