Pmw.ScrolledListBox() - listbox with optional scrollbars
This megawidget consists of a standard listbox widget with optional scrollbars which can be used to scroll the listbox. The scrollbars can be dynamic, which means that a scrollbar will only be displayed if it is necessary. That is, if the listbox does not contain enough entries, the vertical scrollbar will be automatically hidden and if the entries are not wide enough, the horizontal scrollbar will be automatically hidden.
If None, a label component is not created. The default is None.
Otherwise, the size of the megawidget is determined by the width and height of the listbox component, along with the size and/or existence of the other components, such as the label, the scrollbars and the scrollmargin option. All these affect the overall size of the megawidget. The default is 0.
bbox()
method. Without this explicit forwarding, the bbox()
method (aliased to grid_bbox()
) of the hull would be invoked,
which is probably not what the programmer intended.
get()
method of the listbox component,
except that if neither first nor last are specified all list
elements are returned.
curselection()
.
size()
method. Without this explicit forwarding, the size()
method (aliased to grid_size()
) of the hull would be invoked,
which is probably not what the programmer intended.
Home.
Pmw 0.8.1
Maintainer
gregm@iname.com.
11 Jun 1999
Manual page last reviewed: 30 August 1998