summaryrefslogtreecommitdiff
path: root/host/simu/inter/inter_node.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/inter/inter_node.py
parentf8d057385f4592e43601e20cba2b7ea60f57922c (diff)
host/simu: add keyboard shortcut for Jack and Play
Diffstat (limited to 'host/simu/inter/inter_node.py')
-rw-r--r--host/simu/inter/inter_node.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/simu/inter/inter_node.py b/host/simu/inter/inter_node.py
index 39b858f2..1c6b653a 100644
--- a/host/simu/inter/inter_node.py
+++ b/host/simu/inter/inter_node.py
@@ -53,8 +53,10 @@ class InterNode (Inter):
self.step_size_scale.pack ()
self.play_var = IntVar ()
self.play_button = Checkbutton (self.right_frame,
- variable = self.play_var, text = 'Play', command = self.play)
+ variable = self.play_var, text = 'Play', command = self.play,
+ underline = 0)
self.play_button.pack ()
+ self.bind_all ('p', lambda event: self.play_button.invoke ())
def step (self):
"""Do a step. Signal to the Hub we are ready to wait to the next step