def __init__(self, windowNumber):
        """ Constructor
        """
        super(Collector, self).__init__()

        self._windowNumber = windowNumber
        self._rti = None
        self._rtiInfo = None

        self._signalsBlocked = False
        self.COL_FIRST_COMBO = 1     # Column that contains the first (left most) combobox
        self.AXIS_POST_FIX = "-axis" # Added to the axis label to give the combox labels.
        self._axisNames = []         # Axis names. Correspond to the independent variables
        self._fullAxisNames = []       # Will be set in clearAndSetComboBoxes
        self._comboBoxes = []        # Will be set in clearAndSetComboBoxes
        self._spinBoxes = []         # Will be set in createSpinBoxes

        self.layout = QtWidgets.QHBoxLayout(self)
        self.layout.setSpacing(DOCK_SPACING)
        self.layout.setContentsMargins(DOCK_MARGIN, DOCK_MARGIN, DOCK_MARGIN, DOCK_MARGIN)
        self.buttonLayout = QtWidgets.QVBoxLayout()
        # self.layout.setContentsMargins(2, 0, 2, 0)

        # Add tree
        self.tree = CollectorTree(self)
        self.layout.addWidget(self.tree)

        # Add buttons (not yet implemented)
        # self.addVisItemButton = QtWidgets.QPushButton("Add")
        # self.addVisItemButton.setEnabled(False) # not yet implemented
        # self.buttonLayout.addWidget(self.addVisItemButton, stretch=0)
        # self.removeVisItemButton = QtWidgets.QPushButton("Remove")
        # self.removeVisItemButton.setEnabled(False) # not yet implemented
        # self.buttonLayout.addWidget(self.removeVisItemButton, stretch=0)
        # self.buttonLayout.addStretch(stretch=1)
        # self.layout.addLayout(self.buttonLayout, stretch=0)

        self._updateRtiInfo()
def __init__ ( self , windowNumber ) : super ( Collector , self ) . __init__ ( ) self . _windowNumber = windowNumber self . _rti = None self . _rtiInfo = None self . _signalsBlocked = False self . COL_FIRST_COMBO = 1 self . AXIS_POST_FIX = "-axis" self . _axisNames = [ ] self . _fullAxisNames = [ ] self . _comboBoxes = [ ] self . _spinBoxes = [ ] self . layout = QtWidgets . QHBoxLayout ( self ) self . layout . setSpacing ( DOCK_SPACING ) self . layout . setContentsMargins ( DOCK_MARGIN , DOCK_MARGIN , DOCK_MARGIN , DOCK_MARGIN ) self . buttonLayout = QtWidgets . QVBoxLayout ( ) self . tree = CollectorTree ( self ) self . layout . addWidget ( self . tree ) self . _updateRtiInfo ( )
Constructor