Merge pull request #888 from pyqtgraph/py3-treewidget
TreeWidget.topLevelItems Python 3 fix
This commit is contained in:
commit
957aab008c
@ -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