pyqt_reactive.widgets.status_bar

Status Bar Widget for PyQt6

Status display with system information and current operation status. Uses hybrid approach: extracted business logic + clean PyQt6 UI.

Classes

StatusBarWidget([color_scheme, parent])

PyQt6 Status Bar Widget.

class pyqt_reactive.widgets.status_bar.StatusBarWidget(color_scheme: ColorScheme | None = None, parent=None)[source]

PyQt6 Status Bar Widget.

Displays current status, progress, and system information. Preserves all business logic from Textual version with clean PyQt6 UI.

status_updated

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

__init__(color_scheme: ColorScheme | None = None, parent=None)[source]

Initialize the status bar widget.

Parameters:
  • color_scheme – Color scheme for styling (optional, uses default if None)

  • parent – Parent widget

setup_ui()[source]

Setup the user interface.

create_status_section() QWidget[source]

Create the status message section.

Returns:

Widget containing status information

create_progress_section() QWidget[source]

Create the progress section.

Returns:

Widget containing progress information

create_time_section() QWidget[source]

Create the time display section.

Returns:

Widget containing time information

setup_connections()[source]

Setup signal/slot connections.

start_time_updates()[source]

Start the time update timer.

stop_time_updates()[source]

Stop the time update timer.

update_time_display()[source]

Update the time display.

set_status(message: str, status_type: str = 'info')[source]

Set status message with type.

Parameters:
  • message – Status message

  • status_type – Type of status (info, warning, error, success)

set_operation(operation: str)[source]

Set current operation description.

Parameters:

operation – Operation description

show_progress(value: int = 0, maximum: int = 100)[source]

Show progress bar with value.

Parameters:
  • value – Current progress value

  • maximum – Maximum progress value

update_progress(value: int)[source]

Update progress value.

Parameters:

value – New progress value

hide_progress()[source]

Hide the progress bar.

update_status_display(message: str)[source]

Update the status display.

Parameters:

message – Status message to display

set_info_status(message: str)[source]

Set info status message.

set_warning_status(message: str)[source]

Set warning status message.

set_error_status(message: str)[source]

Set error status message.

set_success_status(message: str)[source]

Set success status message.

clear_status()[source]

Clear status message.

closeEvent(event)[source]

Handle widget close event.