diff options
author | Nat <natcl@hotmail.com> | 2007-06-28 19:20:03 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-06-28 19:20:03 (GMT) |
commit | 881f6fabeb1e93d8df53156c1cdad7aabd919a8e (patch) | |
tree | c2c4461439a8a00ad4c20ea968f663d3a96db389 /Util/KeyboardWindow.py | |
parent | a6d2a7b12699bb844fb0af92a394d68ed895ceb4 (diff) |
RightLeftmouse keyb fix
Diffstat (limited to 'Util/KeyboardWindow.py')
-rw-r--r-- | Util/KeyboardWindow.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Util/KeyboardWindow.py b/Util/KeyboardWindow.py index b856fce..50cb4dd 100644 --- a/Util/KeyboardWindow.py +++ b/Util/KeyboardWindow.py @@ -125,7 +125,7 @@ class KeyboardWindow(gtk.Window): if event.hardware_keycode == 9: self.hide_all() elif event.hardware_keycode == 216: - self.btn_dic["left mouse"].set_fillcolor(random.random(),random.random(),random.random()) + self.btn_dic["left_mouse"].set_fillcolor(random.random(),random.random(),random.random()) elif event.hardware_keycode == 133: self.btn_dic["right_mouse"].set_fillcolor(random.random(),random.random(),random.random()) else: @@ -137,8 +137,8 @@ class KeyboardWindow(gtk.Window): else: self.btn_dic[event.hardware_keycode].set_fillcolor(0,0,0) if event.hardware_keycode == 216 or event.hardware_keycode == 133: - self.btn_dic["left mouse"].set_fillcolor(0,0,0) - self.btn_dic["right mouse"].set_fillcolor(0,0,0) + self.btn_dic["left_mouse"].set_fillcolor(0,0,0) + self.btn_dic["right_mouse"].set_fillcolor(0,0,0) def handle_mousePress(self,widget,event): |