예제 #1
0
	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
예제 #2
0
 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)
예제 #3
0
파일: ui.py 프로젝트: nfrizzell/telemetry
 def __init__(self, *args, **kwargs):
     try:
         self.sensor = kwargs.pop("sensor")
     except KeyError:
         self.sensor = None
     QTreeWidgetItem.__init__(self, *args, **kwargs)