Class pyglet.text.runlist.ZipRunIterator

AbstractRunIterator --+
                      |
                     ZipRunIterator
Iterate over multiple run iterators concurrently.

Methods

  __init__(self, range_iterators)
iterator ranges(self, start, end)
Iterate over a subrange of the run list.
object __getitem__(self, index)
Get the value at a given index.

Method Details

ranges

ranges(self, start, end)

Iterate over a subrange of the run list.

See the class documentation for examples of valid usage.

Returns:
iterator: Iterator over (start, end, value) tuples.
Overrides:
AbstractRunIterator.ranges

__getitem__

(Indexing operator) __getitem__(self, index)

Get the value at a given index.

See the class documentation for examples of valid usage.

Returns: object
Overrides:
AbstractRunIterator.__getitem__