class Iter QTreeWidgetItemItera tor def __init__ self args QTreeWidget

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
class Iter(QTreeWidgetItemIterator):
def __init__(self, *args):
QTreeWidgetItemIterator.__init__(self, *args)
def next(self):
self.__iadd__(1)
value = self.value()
if value:
return self.value()
else:
raise StopIteration