def __init__(self, parent, **params): self.params = Params(**params) self.__splitter_idx__ = 0 self.data_vectors_accessor_group = \ self.params.data_vectors_accessor_group # alias if not self.data_vectors_accessor_group == None: self.main_data_accessor = \ self.data_vectors_accessor_group.group_data_vector_accessor else: self.main_data_accessor = self.params.data_accessor # alias super(PoincarePlotSettingsDockWidget, self).__init__(parent, title=params.get('title', 'Poincare plot settings'), **params) self.__splitter__ = SplitterWidget(self.dockComposite, orientation=Qt.Vertical) self.__splitter__.setHandleWidth(5) self.__createStatisticsWidget__(QVBoxLayout()) self.__createFiltersWidget__(QHBoxLayout()) self.__createOutputSpecificationWidget__(QVBoxLayout()) self.__createMiscellaneousWidget__(QVBoxLayout()) parent.addDockWidget(Qt.LeftDockWidgetArea, self)
def __init__(self, **params): super(TachogramPlotTabItemWidget, self).__init__(**params) self.params = Params(**params) layout = QHBoxLayout() self.setLayout(layout) self.__splitter__ = SplitterWidget(self, objectName='poincarePlot', save_state=True) self.__createDatasourceListWidget__() self.__createTachogramPlotManager__() #this method's call is very important, it sets up widgets sizes which #make up a splitter; it has to be the last operation in #the TachogramPlotTabWidget's creation process self.__splitter__.updateSizes() self.setObjectName(TACHOGRAM_PLOT_TAB_ITEM_WIDGET_OBJECT_NAME)
def __init__(self, parent, **params): self.params = Params(**params) self.data_accessor = self.params.data_accessor # alias super(TachogramPlotSettingsDockWidget, self).__init__(parent, title=params.get('title', 'Tachogram plot settings'), **params) self.__splitter__ = SplitterWidget(self.dockComposite, orientation=Qt.Vertical) self.__splitter__.setHandleWidth(5) self.__createUnitsWidget__(QHBoxLayout()) self.__createFiltersWidget__(QVBoxLayout()) parent.addDockWidget(Qt.BottomDockWidgetArea, self)