def __init__(self, *args, **kwargs): QAbstractItemModel.__init__(self) self.ds = DataSource() self.cats = self.ds.get_categories() self.categories = [] for cat in self.cats: self.categories.append(CategoryItem(self, cat))
def __init__(self, in_nodes): QAbstractItemModel.__init__(self) self._root = Node(None) self._in_nodes = in_nodes for node in in_nodes: self._root.addChild(node) self.headers = [self.tr('Project Content')]
def __init__(self, propData: object): """ Constructs a model for the Property Editor. :param propData: The data from the properties. :type propData: object :return: The constructed model. :rtype: QObject """ QAbstractItemModel.__init__(self) self._propData = propData
def __init__(self, parent=None): """ """ QAbstractItemModel.__init__(self, parent) self._header_labels = ['parameter', 'value'] self._root = PhilItem() # PHIL self._scope = None self._extract = None
def __init__(self): QAbstractItemModel.__init__(self) self.vfs_view: Optional[VfsView] = None self.gdc_body_uids = set() self.root_node = None self.n_rows = 0 self.n_cols = 0 self.header_labels = \ ("Path", "Index", "Type", "Sub_Type", "Hash", "EXT_Hash", "Size_U", "Size_C", "G, H, S", "Notes") self.vfs_changed_signal.connect(self.update_model)
def __init__(self, project: 'Project', view: QTreeView) -> 'ProjectExplorerModel': """ Constructs a ProjectExplorerModel exception :param project: A Facile project object. :type project: Project """ QAbstractItemModel.__init__(self) self._project = project self._view = view # Data structures that let us efficiently store references to internal data without hogging exorbitant amounts # of memory. self._registryCounter = 0 self._forwardRegistry = {} self._backwardRegistry = {}
def __init__(self): """Class constructor. Calls `_getRootNodes` to build the tree structure """ QAbstractItemModel.__init__(self) self.rootNodes = self._getRootNodes()
def __init__(self, parent, bv): QAbstractItemModel.__init__(self, parent) self.bv = bv self.columns = ["Enabled", "Location", "Remote Address"] self.update_rows(None)
def __init__(self, parent): QAbstractItemModel.__init__(self, parent) self.columns = ["TID", "Location"] self.rows = [] self.update_rows(None)
def __init__(self, parent, bv): QAbstractItemModel.__init__(self, parent) self.bv = bv self.columns = ["Name", "Value"] self.rows = [] self.update_rows(None)
def __init__(self, parent, bv): QAbstractItemModel.__init__(self, parent) self.bv = bv self.columns = ["Offset", "Value", "References", "Address"] self.rows = [] self.update_rows(None)
def __init__(self): QAbstractItemModel.__init__(self) self.headers = ['Published', 'Topics'] self.root = PublishedNewTorrent()
def __init__(self): QAbstractItemModel.__init__(self) self.headers = ['Category', 'Forums', 'Topics'] self.rssroot = RssRootCategoryItem()
def __init__(self, parent, bv): QAbstractItemModel.__init__(self, parent) self.bv = bv self.columns = ["Address", "Name", "Full Path"] self.update_rows(None)