TreeWidget.topLevelItems Python 3 fix
This commit is contained in:
parent
c71083fff8
commit
95f4b00e14
@ -201,7 +201,7 @@ class TreeWidget(QtGui.QTreeWidget):
|
||||
return item
|
||||
|
||||
def topLevelItems(self):
|
||||
return map(self.topLevelItem, xrange(self.topLevelItemCount()))
|
||||
return [self.topLevelItem(i) for i in range(self.topLevelItemCount())]
|
||||
|
||||
def clear(self):
|
||||
items = self.topLevelItems()
|
||||
|
Loading…
Reference in New Issue
Block a user