[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] QListViewItemIterator?
From:       Boudewijn Rempt <bsarempt () xs4all ! nl>
Date:       2001-06-21 20:10:03
[Download RAW message or body]

On Wed, 20 Jun 2001, Phil Thompson wrote:

>
> Iterators in general aren't implemented. Until Python 2.0 there wasn't
> an obvious way to get them to iterate as Python didn't have ++ or +=
> operators. SIP has support for providing handwritten code to implement
> += for classes, so something could be done, but I think you are the
> first person to ask in nearly 3 years.
>

I have tried to use them, too, for my chapter on Python objects
and Qt objects - in connection with the layout managers. If I
remember correctly, I tried to list out the hierarchy of widgets and
layoutmanagers - something you cannot do without the iterator functions. I
wasted a good few evenings on trying this out...



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic