def __init__(self, **kwargs): wparent = kwargs.get('parent', None) self.fname = kwargs.get('fname', self.TEST_FNAME) QWTree.__init__(self, wparent) self.h5py = h5py self.process_expand()
def __init__(self, **kwargs): parent = kwargs.get('parent', None) self.fname = kwargs.get('fname', self.TEST_FNAME) QWTree.__init__(self, parent) #self._name = self.__class__.__name__ #icon.set_icons() #self.model = QStandardItemModel() #self.set_selection_mode() #self.fill_tree_model() # in QWTree #self.expanded.connect(self.on_item_expanded) #self.collapsed.connect(self.on_item_collapsed) ##self.model.itemChanged.connect(self.on_item_changed) #self.connect_item_selected_to(self.on_item_selected) #self.clicked[QModelIndex].connect(self.on_click) ##self.doubleClicked[QModelIndex].connect(self.on_double_click) self.process_expand()
def closeEvent(self, e): logger.debug('closeEvent') QWTree.closeEvent(self, e)
def set_style(self): QWTree.set_style(self) #self.header().hide() self.header().show()
def set_style(self): QWTree.set_style(self) #self.header().hide() self.header().show() self.setMinimumSize(400, 900)