Ejemplo n.º 1
0
    def __init__(self, controlPanel):
        CustomedCmd.__init__(self,
                             controlPanel=controlPanel,
                             buttonLabel='INIT')

        self.skipHoming = CheckBox('skipHoming')
        self.skipHoming.setChecked(False)
        self.addWidget(self.skipHoming, 0, 1)
Ejemplo n.º 2
0
    def __init__(self, controlPanel):
        CustomedCmd.__init__(self,
                             controlPanel=controlPanel,
                             buttonLabel='MOVE')

        self.comboMotors = ComboBox()
        self.comboMotors.addItems(['piston', 'a', 'b', 'c'])
        self.distance = DoubleSpinBoxGB('Dist', -350, 350, 3)
        self.microns = CheckBox('microns')
        self.abs = CheckBox('abs')

        self.microns.setChecked(True)
        self.abs.setChecked(True)

        self.addWidget(self.comboMotors, 0, 1)
        self.addWidget(self.distance, 0, 2)
        self.addWidget(self.microns, 0, 3)
        self.addWidget(self.abs, 0, 4)
Ejemplo n.º 3
0
    def __init__(self, controlPanel):
        CustomedCmd.__init__(self,
                             controlPanel=controlPanel,
                             buttonLabel='OPEN',
                             safetyCheck=True)

        self.atAtmosphere = CheckBox('atAtmosphere')
        self.underVacuum = CheckBox('underVacuum')
        self.dryRun = CheckBox('dryRun')

        self.atAtmosphere.setChecked(True)
        self.underVacuum.setChecked(False)
        self.dryRun.setChecked(False)

        self.atAtmosphere.stateChanged.connect(
            partial(self.stateChanged, self.underVacuum))
        self.underVacuum.stateChanged.connect(
            partial(self.stateChanged, self.atAtmosphere))

        self.addWidget(self.atAtmosphere, 0, 1)
        self.addWidget(self.underVacuum, 0, 2)
        self.addWidget(self.dryRun, 0, 3)