def get_qt_ui(self):
     """Return a user interface for the experiment"""
     gb = QuickControlBox("Irradiation Experiment")
     gb.add_doublespinbox("irradiation_time")
     gb.add_doublespinbox("wait_time")
     gb.add_button("start")
     gb.add_button("stop")
     gb.auto_connect_by_name(self)
     return gb
示例#2
0
        def __init__(self, camera, auto_connect=True):
            super(LumeneraCameraControlWidget, self).__init__(camera, auto_connect=False)
            gb = QuickControlBox()
            gb.add_doublespinbox("exposure")
            gb.add_doublespinbox("gain")
            gb.add_button("show_camera_properties_dialog", title="Camera Setup")
            gb.add_button("show_video_format_dialog", title="Video Format")
            self.layout().insertWidget(1, gb)  # put the extra settings in the middle
            self.quick_settings_groupbox = gb

            self.auto_connect_by_name(controlled_object=self.camera, verbose=False)
示例#3
0
    def __init__(self, camera, auto_connect=True):
        super(TimelapseCameraControlWidget, self).__init__(camera,
                                                           auto_connect=False)
        gb = QuickControlBox()
        gb.add_doublespinbox("exposure")
        gb.add_spinbox("timelapse_n")
        gb.add_doublespinbox("timelapse_dt")
        gb.add_button("take_timelapse", title="Acquire Timelapse")
        self.layout().insertWidget(1,
                                   gb)  # put the extra settings in the middle
        self.quick_settings_groupbox = gb

        self.auto_connect_by_name(controlled_object=self.camera, verbose=False)
示例#4
0
    def __init__(self, cwl):
        super(CameraWithLocationControlUI, self).__init__()
        self.cwl = cwl
        cc = QuickControlBox("Settings")
        cc.add_doublespinbox("calibration_distance")
        cc.add_button("calibrate_xy_gui", "Calibrate XY")
        cc.add_button('load_calibration_gui', 'Load Calibration')
        cc.auto_connect_by_name(self)
        self.calibration_controls = cc

        fc = QuickControlBox("Autofocus")
        fc.add_doublespinbox("af_step_size")
        fc.add_spinbox("af_steps")
        fc.add_button("autofocus_gui", "Autofocus")
        fc.add_button("quick_autofocus_gui", "Quick Autofocus")
        fc.auto_connect_by_name(self.cwl)
        self.focus_controls = fc

        #        sc =

        l = QtWidgets.QHBoxLayout()
        l.addWidget(cc)
        l.addWidget(fc)
        self.setLayout(l)