summaryrefslogtreecommitdiff
path: root/host/simu/view/switch.py
diff options
context:
space:
mode:
authorNicolas Schodet2013-03-17 22:48:41 +0100
committerNicolas Schodet2013-03-17 22:49:52 +0100
commitf97a43f5464ea866b1210e0ce50292f8249f2ff1 (patch)
tree073b74507b441fd3b3a72e32a1b9faa6f29876ad /host/simu/view/switch.py
parentf8d057385f4592e43601e20cba2b7ea60f57922c (diff)
host/simu: add keyboard shortcut for Jack and Play
Diffstat (limited to 'host/simu/view/switch.py')
-rw-r--r--host/simu/view/switch.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/simu/view/switch.py b/host/simu/view/switch.py
index 445cbd02..138bbdc6 100644
--- a/host/simu/view/switch.py
+++ b/host/simu/view/switch.py
@@ -33,6 +33,10 @@ class Switch:
self.button = Checkbutton (frame, variable = self.var,
command = self.__update, text = text, indicatoron = False)
self.button.pack ()
+ if text == 'Jack':
+ self.button.configure (underline = 0)
+ frame.bind_all ('j', lambda event: self.button.invoke (),
+ add = '+')
self.model = model
self.__update ()