3.4 Wrappers for dictionary iterators

PyQwt has a partial interface to the following dictionary iterators:

The iterators cannot be instantianated from Python, but are returned by a few methods. They are not equivalent to Python iterators. An usage example is:

>>> plot = qplt.testPlot()
>>> iterator = plot.curveIterator()
>>> curve = iterator.next()
>>> while curve:
...  print curve
...  curve = iterator.next()
...
<Qwt4.Qwt.QwtPlotCurve object at 0xb28c8a2c>
<Qwt4.Qwt.QwtPlotCurve object at 0xb28c8e2c>
<Qwt4.Qwt.QwtPlotCurve object at 0xb28c8a2c>
<Qwt4.Qwt.QwtPlotCurve object at 0xb28c8e2c>
>>>

class QWidgetIntDictIt
count( )
Returns the number of items in the dictionary over which the iterator is operating.

current( )
Returns the current item of the iterator.

isEmpty( )
Returns True if the dictionary is empty, i.e. count() == 0; otherwise returns False.

toFirst( )
Resets the iterator, making the first item the first current item. First in this context means first in the arbitrary traversal order. Returns this item.

If the dictionary is empty it sets the current item to None and returns None.

next( )
Makes the next item current and returns the original current item.

If the current iterator item was the last item in the dictionary or if it was None, None is returned.

class QwtPlotCurveIterator
count( )
Returns the number of items in the dictionary over which the iterator is operating.

current( )
Returns the current item of the iterator.

isEmpty( )
Returns True if the dictionary is empty, i.e. count() == 0; otherwise returns False.

toFirst( )
Resets the iterator, making the first item the first current item. First in this context means first in the arbitrary traversal order. Returns this item.

If the dictionary is empty it sets the current item to None and returns None.

next( )
Makes the next item current and returns the original current item.

If the current iterator item was the last item in the dictionary or if it was None, None is returned.

class QwtPlotMarkerIterator
count( )
Returns the number of items in the dictionary over which the iterator is operating.

current( )
Returns the current item of the iterator.

isEmpty( )
Returns True if the dictionary is empty, i.e. count() == 0; otherwise returns False.

toFirst( )
Resets the iterator, making the first item the first current item. First in this context means first in the arbitrary traversal order. Returns this item.

If the dictionary is empty it sets the current item to None and returns None.

next( )
Makes the next item current and returns the original current item.

If the current iterator item was the last item in the dictionary or if it was None, None is returned.