l.a.b.r.WindowedList : class documentation

Part of lp.app.browser.root View In Hierarchy

A list that contains a subset of items (a window) of a virtual list.
Method __init__ Create a WindowedList from a smaller list.
Method __len__ Return the length of the virtual list.
Method __getitem__ Return the key item or None if key belongs to the virtual list.
Method __iter__ Yield each item, or None if the index is virtual.
def __init__(self, window, start, total):
Create a WindowedList from a smaller list.
ParameterswindowThe list with real items.
startAn int, the list's starting index in the virtual list.
totalAn int, the total number of items in the virtual list.
def __len__(self):
Return the length of the virtual list.
def __getitem__(self, key):
Return the key item or None if key belongs to the virtual list.
def __iter__(self):
Yield each item, or None if the index is virtual.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.