def __init__(self, parent): RefsansView.__init__(self, parent=parent) NicosWidget.__init__(self) self._keymap = {} self._statuskeymap = {} self._targetkeymap = {}
def __init__(self, parent): MultiAnalyzerView.__init__(self) NicosWidget.__init__(self) self._keymap = {} self._statuskeymap = {} self._targetkeymap = {}
def __init__(self, parent, designMode=False): self._curstr = '' self._curstatus = OK self._fixed = '' QWidget.__init__(self, parent) NicosWidget.__init__(self)
def __init__(self, parent, designMode=False): QWidget.__init__(self, parent) NicosWidget.__init__(self) # default values (used when no such devices are configured) self.values = { 'mth': -45, 'mtt': -90, 'sth': 30, 'stt': 60, 'ath': -45, 'att': -90, 'Lms': 1000, 'Lsa': 580, 'Lad': 400, } self.targets = self.values.copy() self.status = { 'mth': OK, 'mtt': OK, 'sth': OK, 'stt': OK, 'ath': OK, 'att': OK, } self._keymap = {} self._statuskeymap = {} self._targetkeymap = {}
def __init__(self, parent, designMode=False): TasView.__init__(self, parent) NicosWidget.__init__(self) self._keymap = {} self._statuskeymap = {} self._targetkeymap = {}
def __init__(self, parent, designMode=False): TimeDistanceWidget.__init__(self, parent) NicosWidget.__init__(self) self._speed = 0 self._phases = [0] * 6 self._disk2_pos = 5 self._fp = 0
def __init__(self, parent, designMode=False): self._curval = [0, 0, 0, 0] self._curstatus = OK self._opmode = 'offcentered' QWidget.__init__(self, parent) NicosWidget.__init__(self)
def __init__(self, parent, designMode=False): # det1pos, det1shift, det1tilt, det2pos self._curval = [0, 0, 0, 0] self._curstr = ['', '', '', ''] self._curstatus = [OK, OK, OK, OK] QWidget.__init__(self, parent) NicosWidget.__init__(self)
def __init__(self, parent, designMode=False): # lens_in, lens_out self._curval = [0, 0] self._curstr = ['', ''] self._curstatus = [OK, OK] QWidget.__init__(self, parent) NicosWidget.__init__(self)
def __init__(self, parent, designMode=False): # coll_in, coll_out, ap_20, ap_14, ap_8, ap_4, ap_2, pol_in, pol_out self._curval = [0, 0, (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), 0, 0] self._curstr = ['', '', '', '', '', '', '', '', ''] self._curstatus = [OK, OK, OK, OK, OK, OK, OK, OK, OK] QWidget.__init__(self, parent) NicosWidget.__init__(self)
def __init__(self, parent, designMode=False): # z, x, y, small_x, small_y self._curval = [0, 0, 0, 0, 0] self._curstr = ['', '', '', '', ''] self._curstatus = [OK, OK, OK, OK, OK] QWidget.__init__(self, parent) NicosWidget.__init__(self)
def __init__(self, parent, designMode=False, **kwds): QWidget.__init__(self, parent, **kwds) NicosWidget.__init__(self) self._entries = [] self._vlayout = QVBoxLayout() self._vlayout.setContentsMargins(0, 0, 0, 0) self.setLayout(self._vlayout) self._add() self._designer = designMode
def __init__(self, parent, designMode=False, **kwds): self._inner = None QWidget.__init__(self, parent, **kwds) NicosWidget.__init__(self) self._layout = QHBoxLayout() self._layout.setContentsMargins(0, 0, 0, 0) self.setLayout(self._layout) if designMode: self._layout.insertWidget(0, QLabel('(Value Editor)', self))
def __init__(self, parent=None, designMode=False, **kwds): QWidget.__init__(self, parent, **kwds) NicosWidget.__init__(self) self._last_mtime = None self.namelabel = QLabel(self) self.namelabel.setAlignment(Qt.AlignHCenter) self.piclabel = QLabel(self) self.piclabel.setScaledContents(True) layout = QVBoxLayout() layout.setContentsMargins(0, 0, 0, 0) layout.addWidget(self.piclabel, 1) self.setLayout(layout)
def __init__(self, client, parent=None): QAbstractButton.__init__(self, parent) self.flag = False self.pixmap = QPixmap(path.join(widgetpath, 'focus.png')) self.pixmap2 = QPixmap(path.join(widgetpath, 'collimator.png')) NicosWidget.__init__(self) self.setClient(client) self.current = self._client.getDeviceValue('ellcol') self.currmap = self.pixmap if self.current == 'Ell' else self.pixmap2 self.repaint() self.clicked.connect(self.on_clicked)
def __init__(self, client, dev, valmin, valmax, step=1, parent=None): QSlider.__init__(self, parent) self.setMinimum(valmin) self.setMaximum(valmax) self.setSingleStep(step) NicosWidget.__init__(self) self._dev = dev self.setClient(client) # self.connect(self, SIGNAL('sliderReleased()'), # self. on_slider_release) # self.connect(self, SIGNAL('sliderMoved(int)'), self.on_slider_moved) self.sliderReleased.connect(self.on_slider_release) self.sliderMoved[int].connect(self.on_slider_moved)
def __init__(self, parent, designMode=False): self.ncurves = 0 self.ctimers = {} self.keyindices = {} self.plotcurves = {} self.series = {} self.legendobj = None # X label settings, default values for default window of 3600s self._showdate = False self._showsecs = False QWidget.__init__(self, parent) NicosWidget.__init__(self)
def __init__(self, parent, client, options): Panel.__init__(self, parent, client, options) self.setClient(client) NicosWidget.__init__(self) client.connected.connect(self.on_client_connected) self.destroyed.connect(self.on_destroyed) if parent: self.buttonBox.rejected.connect(parent.close) else: self.buttonBox.rejected.connect(self.close) self.speed.valueChanged['int'].connect(self.recalculate) self.waveLength.valueChanged['double'].connect(self.recalculate) self.ratio.valueChanged['int'].connect(self.recalculate) self.slits.currentIndexChanged.connect(self.recalculate) self.buttonBox.clicked.connect(self.createScript) self.slits.setDisabled(self.client.user_level != ADMIN)
def __init__(self, parent): QWidget.__init__(self, parent) NicosWidget.__init__(self) self.p_black = QPen(QColor('black')) self.p_red = QPen(QColor('red')) self.br_back = QBrush(QColor(190, 190, 190)) self.br_empty = QBrush(QColor(255, 255, 255)) self.col_led = [QColor(0, 0, 255), QColor(255, 255, 0)] self.br_led = [QBrush(self.col_led[0]), QBrush(self.col_led[1])] self.br_seg = QBrush(QColor(211, 211, 211)) self.devs = ['diagnostics/value', 'diag_switches/value', 'mb_arm_raw/value', 'mtt_raw/value', 'n_blocks_cw/value'] self.values = [0, 0, 0, 0, 0]
def __init__(self, parent, designMode=False, colorScheme=None, **kwds): # keys being watched self._mainkeyid = None self._statuskeyid = None # other current values self._isfixed = '' # XXX could be taken from devinfo self._lastvalue = designMode and '1.4' or None self._laststatus = (OK, '') self._lastchange = 0 self._mouseover = False self._mousetimer = None self._expired = True self._colorscheme = colorScheme or defaultColorScheme QWidget.__init__(self, parent, **kwds) NicosWidget.__init__(self) self._statuscolors = self._colorscheme['fore'][UNKNOWN], \ self._colorscheme['back'][UNKNOWN] self._labelcolor = None
def __init__(self, parent, client, options): Panel.__init__(self, parent, client, options) self.setClient(client) NicosWidget.__init__(self) client.connected.connect(self.on_client_connected) self.destroyed.connect(self.on_destroyed) if parent: self.buttonBox.rejected.connect(parent.close) else: self.buttonBox.rejected.connect(self.close) self.wLmin.valueChanged['double'].connect(self.recalculate) self.wLmax.valueChanged['double'].connect(self.recalculate) self.gap.valueChanged['double'].connect(self.recalculate) self.D.valueChanged['double'].connect(self.recalculate) self.disc2_pos.valueChanged['int'].connect(self.recalculate) self.SC2_mode.currentIndexChanged.connect(self.recalculate) self.periods.valueChanged['int'].connect(self.recalculate) self.buttonBox.clicked.connect(self.createScript) self.ttd = TimeDistanceWidget() self.ttdPlot.layout().addWidget(self.ttd)
def __init__(self, parent, designMode=False): QWidget.__init__(self, parent) NicosWidget.__init__(self) # default values (used when no such devices are configured) self.values = { 'nok0': 0, 'shutter_gamma': 0, 'nok2': (0, 0), 'nok3': (0, 0), 'nok4': (0, 0), 'nok5a': (0, 0), 'nok5b': (0, 0), 'nok6': (0, 0), 'nok7': (0, 0), 'nok8': (0, 0), } self.targets = self.values.copy() self.status = { 'nok0': OK, 'shutter_gamma': OK, 'nok2': OK, 'nok3': OK, 'nok4': OK, 'nok5a': OK, 'nok5b': OK, 'nok6': OK, 'nok7': OK, 'nok8': OK, } self._keymap = {} self._statuskeymap = {} self._targetkeymap = {} self._lengthkeymap = {} self._length = [0, 100, 300, 600, 1000, 1720, 1720, 1720, 1190, 880] self._fulllength = sum(self._length)
def __init__(self, parent, designMode=False, **kwds): self._fulltext = '' QLabel.__init__(self, parent, **kwds) NicosWidget.__init__(self) self._squeeze()
def __init__(self, parent, designMode=False, **kwds): BaseDeviceParamTree.__init__(self, parent, **kwds) NicosWidget.__init__(self)
def __init__(self, parent, client, options): Panel.__init__(self, parent, client, options) self.setClient(client) NicosWidget.__init__(self) client.connected.connect(self.on_client_connected) self.destroyed.connect(self.on_destroyed)
def __init__(self, parent=None, designMode=False): QLabel.__init__(self, parent) NicosWidget.__init__(self) self._refresh()
def __init__(self, client, parent=None): QLCDNumber.__init__(self, parent) NicosWidget.__init__(self) self.setSegmentStyle(QLCDNumber.Flat) self.setClient(client)
def __init__(self, parent): QWidget.__init__(self, parent) NicosWidget.__init__(self) self._algorithm_map = {}