Skip to content

Instantly share code, notes, and snippets.

@brenttaylor
Created December 22, 2012 03:26
Show Gist options
  • Save brenttaylor/4357359 to your computer and use it in GitHub Desktop.
Save brenttaylor/4357359 to your computer and use it in GitHub Desktop.
Doesn't work
def RegisterHotkeys(self, Hotkeys):
for Hotkey in Hotkeys:
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment