コード例 #1
0
    def _initUI(self):
        # Widgets
        self._lbl_channels = QLabel('Channels')
        self._lbl_channels.setStyleSheet("color: blue")
        self._txt_channels = NumericalParameterWidget(_ChannelsDetector.channels)

        # Layouts
        layout = _ParameterizedClassWidget._initUI(self)
        layout.addRow(self._lbl_channels, self._txt_channels)

        return layout
コード例 #2
0
    def _initUI(self):
        # Widgets
        self._lbl_tilt = QLabel('Tilt')
        self._lbl_tilt.setStyleSheet('color: blue')
        self._txt_tilt = TiltWidget(_Geometry.tilt_rad)

        self._lbl_rotation = QLabel('Rotation')
        self._lbl_rotation.setStyleSheet('color: blue')
        self._txt_rotation = RotationWidget(_Geometry.rotation_rad)

        # Layouts
        layout = _ParameterizedClassWidget._initUI(self)
        layout.addRow(self._lbl_tilt, self._txt_tilt)
        layout.addRow(self._lbl_rotation, self._txt_rotation)

        return layout
コード例 #3
0
    def _initUI(self):
        # Widgets
        self._lbl_xlimits = QLabel('X limits')
        self._lbl_xlimits.setStyleSheet("color: blue")
        self._txt_xlimits = _UnitRangeWidget(_SpatialDetector.xlimits_m)

        self._lbl_xbins = QLabel('X bins')
        self._lbl_xbins.setStyleSheet("color: blue")
        self._txt_xbins = NumericalParameterWidget(_SpatialDetector.xbins)

        self._lbl_ylimits = QLabel('Y limits')
        self._lbl_ylimits.setStyleSheet("color: blue")
        self._txt_ylimits = _UnitRangeWidget(_SpatialDetector.ylimits_m)

        self._lbl_ybins = QLabel('Y bins')
        self._lbl_ybins.setStyleSheet("color: blue")
        self._txt_ybins = NumericalParameterWidget(_SpatialDetector.ybins)

        self._lbl_zlimits = QLabel('Z limits')
        self._lbl_zlimits.setStyleSheet("color: blue")
        self._txt_zlimits = _UnitRangeWidget(_SpatialDetector.zlimits_m)

        self._lbl_zbins = QLabel('Z bins')
        self._lbl_zbins.setStyleSheet("color: blue")
        self._txt_zbins = NumericalParameterWidget(_SpatialDetector.zbins)

        # Layouts
        layout = _ParameterizedClassWidget._initUI(self)
        layout.addRow(self._lbl_xlimits, self._txt_xlimits)
        layout.addRow(self._lbl_xbins, self._txt_xbins)
        layout.addRow(self._lbl_ylimits, self._txt_ylimits)
        layout.addRow(self._lbl_ybins, self._txt_ybins)
        layout.addRow(self._lbl_zlimits, self._txt_zlimits)
        layout.addRow(self._lbl_zbins, self._txt_zbins)

        return layout