def _handle_man_clicked(self): self.pushButtonAuto.setStyleSheet("background-color: light grey") self.pushButtonMan.setStyleSheet("background-color: green") self.msg = gui_command() self.msg.command = self.msg.COMMAND_MAN self.pub.publish(self.msg) self.manualMode = True
def _handle_auto_clicked(self): if self.error == False: self.pushButtonMan.setStyleSheet("background-color: light grey") self.pushButtonAuto.setStyleSheet("background-color: green") self.manualMode = False self.msg = gui_command() self.msg.command = self.msg.COMMAND_AUTO self.pub.publish(self.msg)