示例#1
0
    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')
示例#2
0
    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")
示例#3
0
    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
示例#4
0
 def __init__(self, parent):
     self.DMD = DMDActuator.DMDActuator()
     self.cam = CamActuator()
     self.cam.initializeCamera()