diff options
author | James <james@mackie.(none)> | 2007-06-28 19:50:47 (GMT) |
---|---|---|
committer | James <james@mackie.(none)> | 2007-06-28 19:50:47 (GMT) |
commit | 472afdfb7bdc88c9618e4823f83f82cd88644c5a (patch) | |
tree | 69232651914fd4139cdd6a486fc6e3d0691eaa6b /Util | |
parent | 95307822c2634e4b97c20b8d183340778f6d54a9 (diff) | |
parent | 148c7d669a6ec6f25389c83b7be2cf6422456b2b (diff) |
Merge branch 'master' of git+ssh://jaberg@dev.laptop.org/git/projects/tamtam
Diffstat (limited to 'Util')
-rw-r--r-- | Util/KeyboardWindow.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Util/KeyboardWindow.py b/Util/KeyboardWindow.py index b856fce..4d67375 100644 --- a/Util/KeyboardWindow.py +++ b/Util/KeyboardWindow.py @@ -122,11 +122,11 @@ class KeyboardWindow(gtk.Window): def handle_keypress(self,widget,event): - if event.hardware_keycode == 9: + if event.hardware_keycode == 9: # Hide the keyboard with escape Key self.hide_all() - elif event.hardware_keycode == 216: - self.btn_dic["left mouse"].set_fillcolor(random.random(),random.random(),random.random()) - elif event.hardware_keycode == 133: + elif event.hardware_keycode == 216: # Send a fake mouse event + self.btn_dic["left_mouse"].set_fillcolor(random.random(),random.random(),random.random()) + elif event.hardware_keycode == 133: # Send a fake mouse event self.btn_dic["right_mouse"].set_fillcolor(random.random(),random.random(),random.random()) else: self.btn_dic[event.hardware_keycode].set_fillcolor(random.random(),random.random(),random.random()) @@ -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): |