E5Gui/E5TreeWidget.py

changeset 2016
2bbc81fcce4a
parent 1969
5522b3266c8b
child 2302
f29e9405c851
equal deleted inserted replaced
2015:abb2fea2450a 2016:2bbc81fcce4a
67 67
68 def appendToParentItem(self, parent, item): 68 def appendToParentItem(self, parent, item):
69 """ 69 """
70 Public method to append an item to a parent item. 70 Public method to append an item to a parent item.
71 71
72 @param parent text of the parent item (string) or 72 @param parent text of the parent item (string) or
73 the parent item (QTreeWidgetItem) 73 the parent item (QTreeWidgetItem)
74 @param item item to be appended (QTreeWidgetItem) 74 @param item item to be appended (QTreeWidgetItem)
75 @return flag indicating success (boolean) 75 @return flag indicating success (boolean)
76 """ 76 """
77 if isinstance(parent, QTreeWidgetItem): 77 if isinstance(parent, QTreeWidgetItem):
94 94
95 def prependToParentItem(self, parent, item): 95 def prependToParentItem(self, parent, item):
96 """ 96 """
97 Public method to prepend an item to a parent item. 97 Public method to prepend an item to a parent item.
98 98
99 @param parent text of the parent item (string) or 99 @param parent text of the parent item (string) or
100 the parent item (QTreeWidgetItem) 100 the parent item (QTreeWidgetItem)
101 @param item item to be prepended (QTreeWidgetItem) 101 @param item item to be prepended (QTreeWidgetItem)
102 @return flag indicating success (boolean) 102 @return flag indicating success (boolean)
103 """ 103 """
104 if isinstance(parent, QTreeWidgetItem): 104 if isinstance(parent, QTreeWidgetItem):

eric ide

mercurial