euporie.notebook.widgets.side_bar
Define a side-bar.
Functions
|
Add a command to the centralized command system. |
|
Register a new config item. |
|
Update the key-binding registry. |
Classes
|
Turn any callable into a Filter. |
|
Wrapper around any other container that can change the visibility. |
|
Container class that dynamically returns any Container. |
|
Control that displays formatted text. |
|
Several layouts, one stacked above/under the other. ::. |
|
Draw a horizontal or vertical line. |
|
A side-bar for the notebook application. |
|
Vertical toggle-buttons with additional styling for the side-bar. |
|
A toggleable button widget. |
|
A widget where an option is selected using mutually exclusive toggle-buttons. |
|
Several layouts, one stacked left/right of the other. ::. |
|
Container that holds a control. |
|
Alignment of the Window content. |
partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords. |
- class euporie.notebook.widgets.side_bar.SideBar(titles: Sequence[str], icons: Sequence[str], panels: Sequence[AnyContainer])
Bases:
object
A side-bar for the notebook application.
- class euporie.notebook.widgets.side_bar.SideBarButtons(options: list[Any], labels: Sequence[AnyFormattedText] | None = None, index: int | None = None, indices: list[int] | None = None, n_values: int | None = None, multiple: FilterOrBool = False, max_count: int | None = None, on_change: Callable[[SelectableWidget], None] | None = None, style: str | Callable[[], str] = 'class:input', border: GridStyle | None = ▁▁ 🮇 │▎ 🮇─┼▎ ▔▔ , disabled: FilterOrBool = False, vertical: FilterOrBool = False)
Bases:
euporie.core.widgets.forms.ToggleButtons
Vertical toggle-buttons with additional styling for the side-bar.
- key_bindings() KeyBindingsBase
Return key-bindings for the drop-down widget.
- load_container() AnyContainer
Load the widget’s container.
- mouse_handler(i: int, mouse_event: MouseEvent) NotImplementedOrNone
Handle mouse events.
- update_buttons(widget: euporie.core.widgets.forms.SelectableWidget | None = None) None
Set the toggle buttons’ selection state when the selected index changes.
- property value: Any
Return the selected value.