radioviz.typing.sub_window_types
Protocols for sub-window views and controllers.
These protocols provide a narrow typing boundary between view and controller layers to avoid circular imports while keeping explicit, precise annotations.
Classes
|
Minimal interface a sub-window view relies on. |
|
Minimal interface a sub-window controller relies on. |
- class radioviz.typing.sub_window_types.SubWindowControllerProtocol(*args, **kwargs)[source]
Bases:
ProtocolMinimal interface a sub-window view relies on.
- class radioviz.typing.sub_window_types.SubWindowViewProtocol(*args, **kwargs)[source]
Bases:
ProtocolMinimal interface a sub-window controller relies on.
Implemented by concrete sub-window views.
- set_window_state(state: WindowState) None[source]
Set the window state.
- Parameters:
state (WindowState) – Desired window state.
- window_state() WindowState[source]
Return the current window state.
- Returns:
Current window state.
- Return type: