Class pyglet.text.runlist.RunIterator

AbstractRunIterator --+
                      |
                     RunIterator

Methods

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

Method Details

__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__

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