From f97a43f5464ea866b1210e0ce50292f8249f2ff1 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 17 Mar 2013 22:48:41 +0100 Subject: host/simu: add keyboard shortcut for Jack and Play --- host/simu/view/switch.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/simu/view') 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 () -- cgit v1.2.3