Next / Previous / Contents / Shipman's homepage

3.1. Public attributes of a ScrolledList

These attributes of a ScrolledList widget are visible.

.width

The width of the listbox in characters when the widget was constructed.

.height

The height of the listbox in lines when the widget was constructed.

.listbox

The Tkinter Listbox widget inside the ScrolledList widget. If you want to change the appearance of the listbox, use this attribute's .configure() method.

For example, if you have a font object (tkFont.Font) named ttFont, and you would like to apply it to a ScrolledList widget named optionBox, this would do it:

              optionBox.listbox.configure(font=ttFont)