def __init__(self, x, y, size=50, parent=None, scene=None): TableBase.__init__(self, x, y, size, parent, scene) self.setBrush(QBrush()) pen = QPen(QColor('black')) pen.setStyle(Qt.DashLine) self.setPen(pen)
_red = QBrush(QColor('#FF3333')) _nobrush = QBrush() nopen = QPen(QColor('white')) defaultpen = QPen(QColor('black')) beampen = QPen(QColor('blue')) monopen = QPen(QColor('black')) monopen.setWidth(3) beambackgroundpen = QPen(QColor('white')) beambackgroundpen.setWidth(4) samplepen = QPen(QColor('#006600')) samplepen.setWidth(2) samplebrush = QBrush(QColor('#006600')) samplecoordpen = QPen(QColor('#666666')) targetpen = QPen(QColor('black')) targetpen.setStyle(Qt.DashLine) monotablebrush = QBrush(QColor('#6666ff')) sampletablebrush = QBrush(QColor('#66ff66')) anatablebrush = QBrush(QColor('#6666ff')) dettablebrush = QBrush(QColor('#ff66ff')) class VRefsans(NicosWidget, QWidget): designer_description = 'Display of the REFSANS NOK configuration' nok0dev = PropDef('nok0dev', str, '', 'NOK 0 device') shutter_gammadev = PropDef('shutter_gammadev', str, '', 'NOK 1 device') nok2dev = PropDef('nok2dev', str, '', 'NOK 2 device') nok3dev = PropDef('nok3dev', str, '', 'NOK 3 device')