##// END OF EJS Templates
Prueba de nuevo método
Alexander Valdez -
r364:c14a3175c01e
parent child
Show More
@@ -1,6 +1,6
1 from PyQt4 import QtCore
1 from PyQt4 import QtCore
2
2
3 HORIZONTAL_HEADERS = ("ITEM :"," DATOS : " )
3 HORIZONTAL_HEADERS = ("Property","Value " )
4
4
5 HORIZONTAL = ("RAMA :",)
5 HORIZONTAL = ("RAMA :",)
6
6
@@ -77,6 +77,25 class treeModel(QtCore.QAbstractItemModel):
77 self.Summary=Summary
77 self.Summary=Summary
78
78
79
79
80 for caracteristica,principal, descripcion in (("Properties","Name",self.name),
81 ("Properties","Data Path",self.directorio),
82 ("Properties","Workspace",self.workspace),
83 ("Parameters", "Read Mode ",self.remode),
84 ("Parameters", "DataType ",self.dataformat),
85 ("Parameters", "Date ",self.date),
86 ("Parameters", "Init Time ",self.initTime),
87 ("Parameters", "Final Time ",self.endTime),
88 ("Parameters", " Time zone ",self.timezone),
89 ("Parameters", "Profiles ","1"),
90 ("Description", "Summary ", self.Summary),
91 ):
92 person = person_class(caracteristica, principal, descripcion)
93 self.people.append(person)
94 self.rootItem = TreeItem(None, "ALL", None)
95 self.parents = {0 : self.rootItem}
96 self.setupModelData()
97
98
80 def columnCount(self, parent=None):
99 def columnCount(self, parent=None):
81 if parent and parent.isValid():
100 if parent and parent.isValid():
82 return parent.internalPointer().columnCount()
101 return parent.internalPointer().columnCount()
General Comments 0
You need to be logged in to leave comments. Login now