ToggledFrame¶
-
class
ttkwidgets.frames.
ToggledFrame
(master=None, text='', width=20, compound='left', **kwargs)[source]¶ Bases:
ttk.Frame
A frame that can be toggled to open and close.
Variables: interior – ttk.Frame
in which to put the widgets to be toggled with any geometry manager.-
__init__
(master=None, text='', width=20, compound='left', **kwargs)[source]¶ Create a ToggledFrame.
Parameters: - master (widget) – master widget
- text (str) – text to display next to the toggle arrow
- width (int) – width of the closed ToggledFrame (in characters)
- compound (str) – “center”, “none”, “top”, “bottom”, “right” or “left”: position of the toggle arrow compared to the text
- kwargs – keyword arguments passed on to the
ttk.Frame
initializer
-