Header version help
cutana_ui.widgets.header_version_help
¶
Help panel component for Cutana UI.
HelpPopup(on_close_callback=None)
¶
Bases: VBox
A panel widget to display help information including README content.
Initialize the help panel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
on_close_callback
|
callable
|
Function to call when close button is clicked |
None
|
create_header_container(version_text, container_width, help_button_callback, config_button_callback=None, log_level_callback=None, logo_title=None, initial_log_level=None)
¶
Create a header container with ESA logo, version display, log level selector, and help/config buttons.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
version_text
|
str
|
The version text to display |
required |
container_width
|
int
|
The width of the container in pixels |
required |
help_button_callback
|
callable
|
Function to call when help button is clicked |
required |
config_button_callback
|
callable
|
Function to call when config button is clicked |
None
|
log_level_callback
|
callable
|
Function to call when log level is changed. Receives the new log level string as argument. |
None
|
logo_title
|
str
|
Title text for the logo. If provided, logo will be displayed. |
None
|
initial_log_level
|
str
|
Initial log level to set in the dropdown. If None, uses DEFAULT_LOG_LEVEL. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
(header_container, help_button, config_button, log_level_dropdown) |