navigate.view.custom_widgets.CollapsibleFrame.CollapsibleFrame
- class navigate.view.custom_widgets.CollapsibleFrame.CollapsibleFrame(parent: Widget, title: str = '', *args: Any, **kwargs: Any)
Bases:
FrameA frame that can be expanded or collapsed via its header label.
- __init__(parent: Widget, title: str = '', *args: Any, **kwargs: Any) → None
Create a collapsible frame widget.
- Parameters:
parent (tk.Widget) – Parent widget that will contain this frame.
title (str, optional) – Header text shown on the collapsible bar, by default “”.
*args (Any) – Positional arguments forwarded to
tk.Frame.**kwargs (Any) – Keyword arguments forwarded to
tk.Frame.
- Returns:
The widget is initialized in place.
- Return type:
None
Methods
__init__(parent[, title])Create a collapsible frame widget.
fold()Collapse the content frame if it is currently visible.
Toggle the visibility of the content frame.
- fold() → None
Collapse the content frame if it is currently visible.
- Returns:
The widget state is updated in place.
- Return type:
None
- toggle_visibility() → None
Toggle the visibility of the content frame.
- Returns:
The widget state is updated in place.
- Return type:
None