def connect(self): if self.connect_button.text() == 'Connect': self.DMD_actuator = DMDActuator.DMDActuator() self.connect_button.setText('Disconnect') else: self.DMD_actuator.disconnect_DMD() del self.DMD_actuator self.connect_button.setText('Connect')
def connect(self): if self.connect_button.text() == "Connect": self.DMD_actuator = DMDActuator.DMDActuator() self.connect_button.setText("Disconnect") else: self.DMD_actuator.disconnect_DMD() del self.DMD_actuator self.connect_button.setText("Connect")
def connectDMD(self): if self.connect_button.isChecked(): # self.connect_button.setEnabled(False) self.DMD_actuator = DMDActuator.DMDActuator() else: self.connect_button.setChecked(False) self.DMD_actuator.disconnect_DMD() del self.DMD_actuator
def __init__(self, parent): self.DMD = DMDActuator.DMDActuator() self.cam = CamActuator() self.cam.initializeCamera()