Beispiel #1
0
    def __init__(self, controlPanel):
        CustomedCmd.__init__(self,
                             controlPanel,
                             buttonLabel='SET Temperature',
                             safetyCheck=True)

        self.value = DoubleSpinBoxGB('setpoint(K)', 50, 250, 2)
        self.addWidget(self.value, 0, 1)
Beispiel #2
0
    def __init__(self, controlPanel):
        CustomedCmd.__init__(self, controlPanel, buttonLabel='DARKS')

        self.cam = controlPanel.actorName.split('_')[1]
        self.duplicate = SpinBoxGB('Duplicate', 1, 30)
        self.exptime = DoubleSpinBoxGB('Exptime', 1, 3600, 2)

        self.addWidget(self.duplicate, 0, 1)
        self.addWidget(self.exptime, 0, 2)
Beispiel #3
0
    def __init__(self, controlPanel):
        CustomedCmd.__init__(self, controlPanel, buttonLabel='EXPOSE')

        self.combo = ComboBox()
        self.combo.addItems(['object', 'background'])

        self.exptime = DoubleSpinBoxGB('exptime', 0, 3000, 2)

        self.addWidget(self.combo, 0, 1)
        self.addWidget(self.exptime, 0, 2)
Beispiel #4
0
    def __init__(self, controlPanel, name):
        self.name = name
        CustomedCmd.__init__(self,
                             controlPanel,
                             buttonLabel='SET %s' % name.upper())

        self.value = DoubleSpinBoxGB('Power(percent)',
                                     vmin=0,
                                     vmax=100,
                                     decimals=2)
        self.addWidget(self.value, 0, 1)
Beispiel #5
0
    def __init__(self, controlPanel):
        CustomedCmd.__init__(self,
                             controlPanel=controlPanel,
                             buttonLabel='EXPOSE')

        self.exptime = DoubleSpinBoxGB('Exptime', 1, 10000, 1)

        self.comboShut = ComboBox()
        self.comboShut.addItems(['', 'blue', 'red'])

        self.addWidget(self.exptime, 0, 1)
        self.addWidget(self.comboShut, 0, 2)
Beispiel #6
0
    def __init__(self, controlPanel, stage):
        CustomedCmd.__init__(self, controlPanel, buttonLabel='MOVE')

        self.stage = stage
        l_bound, u_bound = MoveCmd.limits[stage]

        self.combo = ComboBox()
        self.combo.addItems(['abs', 'rel'])

        self.distSpinbox = DoubleSpinBoxGB('Dist', l_bound, u_bound, 3)

        self.addWidget(self.combo, 0, 1)
        self.addWidget(self.distSpinbox, 0, 2)
Beispiel #7
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)
Beispiel #8
0
    def __init__(self):
        GridLayout.__init__(self)
        self.widgets = [
            DoubleSpinBoxGB('X', -10, 10, 5),
            DoubleSpinBoxGB('Y', -10, 10, 5),
            DoubleSpinBoxGB('Z', -10, 10, 5),
            DoubleSpinBoxGB('U', -2, 2, 5),
            DoubleSpinBoxGB('V', -2, 2, 5),
            DoubleSpinBoxGB('W', -2, 2, 5)
        ]

        for i, spinbox in enumerate(self.widgets):
            self.addWidget(spinbox, i // 3, i % 3)
Beispiel #9
0
 def __init__(self, controlPanel):
     CustomedCmd.__init__(self, controlPanel, buttonLabel='MOVE')
     self.distSpinbox = DoubleSpinBoxGB('Relative(mm)', *self.limits)
     self.addWidget(self.distSpinbox, 0, 1)