@@ -19,10 +19,22 class treeModel(QtCore.QAbstractItemModel): | |||||
19 | timezone=None |
|
19 | timezone=None | |
20 | Summary=None |
|
20 | Summary=None | |
21 |
|
21 | |||
|
22 | description=None | |||
|
23 | ||||
22 | def __init__(self ,parent=None): |
|
24 | def __init__(self ,parent=None): | |
23 | super(treeModel, self).__init__(parent) |
|
25 | super(treeModel, self).__init__(parent) | |
24 | self.people = [] |
|
26 | self.people = [] | |
25 |
|
27 | |||
|
28 | ||||
|
29 | def properties_projecto(self,description): | |||
|
30 | self.caracteristica="Project_Properties" | |||
|
31 | self.principal ="Name" | |||
|
32 | self.description =description | |||
|
33 | exam_project=person_class(self.caracteristica,self.principal,self.description) | |||
|
34 | return exam_project | |||
|
35 | ||||
|
36 | ||||
|
37 | ||||
26 | def arbol(self): |
|
38 | def arbol(self): | |
27 | for caracteristica,principal, descripcion in (("Properties","Name",self.name), |
|
39 | for caracteristica,principal, descripcion in (("Properties","Name",self.name), | |
28 | ("Properties","Data Path",self.directorio), |
|
40 | ("Properties","Data Path",self.directorio), | |
@@ -38,15 +50,20 class treeModel(QtCore.QAbstractItemModel): | |||||
38 | ): |
|
50 | ): | |
39 | person = person_class(caracteristica, principal, descripcion) |
|
51 | person = person_class(caracteristica, principal, descripcion) | |
40 | self.people.append(person) |
|
52 | self.people.append(person) | |
|
53 | def addProjectproperties(self,person): | |||
|
54 | self.people.append(person) | |||
41 |
|
55 | |||
42 | self.rootItem = TreeItem(None, "ALL", None) |
|
56 | ||
43 | self.parents = {0 : self.rootItem} |
|
|||
44 | self.setupModelData() |
|
|||
45 |
|
||||
46 | #def veamos(self): |
|
57 | #def veamos(self): | |
47 | # self.update= MainWindow(self) |
|
58 | # self.update= MainWindow(self) | |
48 | # self.update.dataProyectTxt.text() |
|
59 | # self.update.dataProyectTxt.text() | |
49 | # return self.update.dataProyectTxt.text() |
|
60 | # return self.update.dataProyectTxt.text() | |
|
61 | ||||
|
62 | def showtree(self): | |||
|
63 | self.rootItem = TreeItem(None, "ALL", None) | |||
|
64 | self.parents = {0 : self.rootItem} | |||
|
65 | self.setupModelData() | |||
|
66 | ||||
50 | def setParams(self,name,directorio,workspace,remode,dataformat,date,initTime,endTime,timezone,Summary): |
|
67 | def setParams(self,name,directorio,workspace,remode,dataformat,date,initTime,endTime,timezone,Summary): | |
51 | self.name=name |
|
68 | self.name=name | |
52 | self.workspace=workspace |
|
69 | self.workspace=workspace |
General Comments 0
You need to be logged in to leave comments.
Login now