direct.gui.DirectScrolledList
from direct.gui.DirectScrolledList import DirectScrolledList, DirectScrolledListItem
Contains the DirectScrolledList class.
See the DirectScrolledList page in the programming manual for a more in-depth explanation and an example of how to use this class.
Inheritance diagram
- class DirectScrolledList(parent=None, **kw)[source]
Bases:
DirectFrame
- notify = <direct.directnotify.Notifier.Notifier object>
- refresh(self)[source]
Update the list - useful when adding or deleting items or changing properties that would affect the scrolling
- removeAllItems(self, refresh=1)[source]
Remove this item from the panel Warning 2006_10_19 tested only in the trolley metagame
- removeAndDestroyAllItems(self, refresh=1)[source]
Remove and destroy all items from the panel. Warning 2006_10_19 tested only in the trolley metagame
- class DirectScrolledListItem(parent=None, **kw)[source]
Bases:
DirectButton
While you are not required to use a DirectScrolledListItem for a DirectScrolledList, doing so takes care of the highlighting and unhighlighting of the list items.
- notify = <direct.directnotify.Notifier.Notifier object>