def stop(self): """ Stop the process """ if self.keyboardEmu: self.send(self.restKey) QTimer.singleShot(100, lambda: ProcessButton.stop(self, 2)) else: ProcessButton.stop(self, 2)
def __init__(self, parent): ProcessButton.__init__(self, _("REC"), parent) self.setFont(QFont("Sans", 20, 75)) self.setMinimumWidth(100) self.setMaximumHeight(200) QToolTip.add(self, _("Start or stop Rumor"))
def __init__(self, parent): ProcessButton.__init__(self, _("TiMidity"), parent) QToolTip.add(self, _("Start or stop the TiMidity ALSA MIDI client."))