ScrolledListbox

class ttkwidgets.ScrolledListbox(master=None, compound='right', autohidescrollbar=True, **kwargs)[source]

Bases: ttk.Frame

Simple tk.Listbox with an added scrollbar.

__init__(master=None, compound='right', autohidescrollbar=True, **kwargs)[source]

Create a Listbox with a vertical scrollbar.

Parameters:
  • master (widget) – master widget
  • compound (str) – side for the Scrollbar to be on (tk.LEFT or tk.RIGHT)
  • autohidescrollbar (bool) – whether to use an AutoHideScrollbar or a ttk.Scrollbar
  • kwargs – keyword arguments passed on to the tk.Listbox initializer
config_listbox(*args, **kwargs)[source]

Configure resources of the Listbox widget.