def on_btnGrabKey_clicked(self, *a): """ Called when user clicks on 'Grab a Key' button. Displays additional dialog. """ kg = KeyGrabber(self.app) kg.grab(self.editor.window, self.editor._action, self.on_key_grabbed)
def on_btnGrabAnother_clicked(self, *a): """ Same as above, but adds another key to action """ kg = KeyGrabber(self.app) kg.grab(self.editor.window, self.editor._action, self.on_additional_key_grabbed)