Created
December 22, 2012 03:25
-
-
Save brenttaylor/4357357 to your computer and use it in GitHub Desktop.
Works
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def RegisterHotkeys(self, Hotkeys): | |
def RegisterHotkey(Hotkey): | |
ID = wx.NewId() | |
self.RegisterHotKey(ID, Hotkey["Modifiers"], Hotkey["Key"]) | |
self.Bind(wx.EVT_HOTKEY, lambda Event: Hotkey["Function"](self.Controller), | |
id=ID) | |
self.EventIDs.append(ID) | |
for Hotkey in Hotkeys: | |
RegisterHotkey(Hotkey) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment