Re: [PyQt] QTreeWidgetItemIterator

2007-07-30 Thread Giovanni Bajo
On mar, 2007-07-31 at 00:33 +0200, David Boddie wrote: > It looks like QTreeWidget could provide an __iter__() method to allow > an improved iterator to be used for constructs such as for loops. That > would also be useful. Yes, this is one of those borderline case where sticking to the *exact* C

Re: [PyQt] QTreeWidgetItemIterator

2007-07-30 Thread David Boddie
On Mon Jul 30 22:33:55 BST 2007, Peter Shinners wrote: > I'm not finding a clean way to iterate over all items inside a > QTreeWidget. It looks like QTreeWidgetItemIterator matches the C++ API, > but does not provide a Python iterator. > > Am I going to need to call "value()" and operator "+= 1

[PyQt] QTreeWidgetItemIterator

2007-07-30 Thread Peter Shinners
I'm not finding a clean way to iterate over all items inside a QTreeWidget. It looks like QTreeWidgetItemIterator matches the C++ API, but does not provide a Python iterator. Am I going to need to call "value()" and operator "+= 1" to get through this list? _