def __init__(self, parent=None, data=[None,None,None,None]): QTreeWidgetItem.__init__(self, parent, data) self.label = None # string self.value = None # string self.start = None # int self.end = None # int self.ksobj = None # KaitaiStruct
def __init__(self, file_system_path, name): QTreeWidgetItem.__init__(self) self.file_system_path = file_system_path self.name = name self.isdir = path.isdir(path.join(file_system_path, name)) self.isfile = path.isfile(path.join(file_system_path, name)) if not name == '': self.setText(0, name) else: self.setText(0, file_system_path)
def __init__(self, *args, **kwargs): try: self.sensor = kwargs.pop("sensor") except KeyError: self.sensor = None QTreeWidgetItem.__init__(self, *args, **kwargs)