ScrollingList

A List with associated scrollbars.

Base Classes

Methods

__getattr__(self, attr)

   def __getattr__(self, attr):

Delegates all other attributes to the list.

__init__(self, parent, **kw)

   def __init__(self, parent, **kw):

Constructs a new ScrollingList.

__nonzero__(self)

   def __nonzero__(self):

Keeps this from being delegated by getattr.

append(self, item)

   def append(self, item):

Adds a new item to the end of the list.

bind(self, sequence, action)

   def bind(self, sequence, action):

Overrides Widget.bind to bind events to the listbox instead of the frame.

config(self, **opts)

   def config(self, **opts):

provides special configuration processing. Mostly passes configuration options to the list.

curselection(self)

   def curselection(self):

Returns a list of all selected item indeces (as integers).

deleteAll(self)

   def deleteAll(self):

Deletes the entire list.

fillList(self, items)

   def fillList(self, items):

Sets the contents of the list from a list of items. Anything that was originally in the list is removed.

firstSelection(self)

   def firstSelection(self):

Returns the text of the first selected item. Returns None if there are no selected items.

firstSelectionIndex(self)

   def firstSelectionIndex(self):

Returns the index of the first selected item, returns None if there is no item selected.

insert(self, index, item)

   def insert(self, index, item):

Adds a new item at the given index within the list.

scrolled(self, *args)

   def scrolled(self, *args):

Command called when the list is scrolled.

size(self)

   def size(self):

Overrides Frame.size() to delegate this to the list.

syncScrollbar(self)

   def syncScrollbar(self):

Syncs the scrollbar to the current view of the list.