def on_record_combination_button_pressed(self): """ Start recording a key combination when the user clicks on the record_combination_button. The button itself is automatically disabled during the recording process. """ self.recorded_key_label.setText("Press a key or combination...") # TODO: i18n logger.debug("User starts to record a key combination.") self.grabber = iomediator.KeyGrabber(self) self.grabber.start()
def on_setButton_pressed(self): self.setButton.setEnabled(False) self.keyLabel.setText(i18n("Press a key or combination...")) self.grabber = iomediator.KeyGrabber(self.parentWidget()) self.grabber.start()
def on_setButton_pressed(self, widget, data=None): self.setButton.set_sensitive(False) self.keyLabel.set_text(_("Press a key or button...")) self.grabber = iomediator.KeyGrabber(self) self.grabber.start()