def recurse treeitem deep for subitem in treeitem child for in range t

1
2
3
4
5
6
7
8
def recurse( treeitem, deep=1 ):
for subitem in ( treeitem.child( i ) for i in range( treeitem.childCount() ) ):
debug( "-" * deep, subitem )
recurse( subitem, deep+1 )
for i in range( self.ui.treeWidget.topLevelItemCount() ):
item = self.ui.treeWidget.topLevelItem( i )
debug( item )
recurse( item )