diff options
author | Wade Brainerd <wadetb@gmail.com> | 2009-01-28 05:23:14 (GMT) |
---|---|---|
committer | Wade Brainerd <wadetb@gmail.com> | 2009-01-28 05:23:14 (GMT) |
commit | 6fb4ec696e195691cc6611b981fc50fbfb5a4f76 (patch) | |
tree | c11428fddda13af00a9c9f493fb378253c81c02f /keyboard.py | |
parent | 60fb90236061243e9f873e38674d258ffd76a097 (diff) |
Add some more game lessons. Fix some bugs. Add a new text lesson type to lessonbuilder.
Diffstat (limited to 'keyboard.py')
-rw-r--r-- | keyboard.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/keyboard.py b/keyboard.py index 763d715..bab91ad 100644 --- a/keyboard.py +++ b/keyboard.py @@ -243,7 +243,9 @@ class KeyboardData: # Access the current GTK keymap. self.keymap = gtk.gdk.keymap_get_default() - def set_layout(self, layout): pass + def set_layout(self, layout): + pass + def _build_key_list(self, layout): """Builds a list of Keys objects from a layout description. Also fills in derived and inherited key properties. @@ -460,7 +462,6 @@ class KeyboardWidget(KeyboardData, gtk.DrawingArea): # Outline rounded box. gc.foreground = self.get_colormap().alloc_color((0.4*65536),int(0.7*65536),int(0.4*65536)) - #gc.foreground = self.get_colormap().alloc_color(int(0.1*65536),int(0.1*65536),int(0.1*65536)) corner = 5 points = [ @@ -541,7 +542,7 @@ class KeyboardWidget(KeyboardData, gtk.DrawingArea): if finger[0] == 'L': rhand_image = self.rhand_shift else: - rhand_image = self.lhand_shift + lhand_image = self.lhand_shift # TODO: Do something about ALTGR. |