OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
frontends.tk.weather.weather_screen.WeatherScreen Class Reference

Present native Weather through toolkit-independent state and requests. More...

Inheritance diagram for frontends.tk.weather.weather_screen.WeatherScreen:
frontends.tk.tk_screen.TkScreen ui.weather.weather_screen_ui_if.WeatherScreenUiIf ui.screen_ui_if.ScreenUiIf ui.weather.weather_ui_if.WeatherUiIf ui.ui_widget.UiWidget

Public Member Functions

None show (self)
 Build and display this screen's Tk panels.
None hide (self)
 Release transient screen activity before navigating away.
None set_weather_request_handler (self, WeatherRequestHandlerIf|None handler)
 Bind forecast requests.
None set_weather_state (self, WeatherUiState|None state)
 Display SI forecast state.
None set_online (self, bool online)
 Present availability.
None set_loading (self, bool loading)
 Display refresh progress.
None set_weather_status (self, str status)
 Display refresh status.
Public Member Functions inherited from frontends.tk.tk_screen.TkScreen
ScreenId screen_id (self)
 Return the stable identifier used to navigate to this screen.
bool handle_ui_action (self, UiAction action)
 Return False until a screen provides semantic action handling.

Detailed Description

Present native Weather through toolkit-independent state and requests.

Member Function Documentation

◆ set_loading()

None frontends.tk.weather.weather_screen.WeatherScreen.set_loading ( self,
bool loading )

Display refresh progress.

Parameters
loadingWhether refresh is pending.

Reimplemented from ui.weather.weather_screen_ui_if.WeatherScreenUiIf.

◆ set_online()

None frontends.tk.weather.weather_screen.WeatherScreen.set_online ( self,
bool online )

Present availability.

Parameters
onlineWhether internet actions are enabled.

Reimplemented from ui.weather.weather_screen_ui_if.WeatherScreenUiIf.

◆ set_weather_request_handler()

None frontends.tk.weather.weather_screen.WeatherScreen.set_weather_request_handler ( self,
WeatherRequestHandlerIf | None handler )

Bind forecast requests.

Parameters
handlerLifecycle handler or None.

Reimplemented from ui.weather.weather_ui_if.WeatherUiIf.

◆ set_weather_state()

None frontends.tk.weather.weather_screen.WeatherScreen.set_weather_state ( self,
WeatherUiState | None state )

Display SI forecast state.

Parameters
stateLatest forecast or None.

Reimplemented from ui.weather.weather_ui_if.WeatherUiIf.

◆ set_weather_status()

None frontends.tk.weather.weather_screen.WeatherScreen.set_weather_status ( self,
str status )

Display refresh status.

Parameters
statusHuman-readable status.

Reimplemented from ui.weather.weather_screen_ui_if.WeatherScreenUiIf.


The documentation for this class was generated from the following file:
  • frontends/tk/weather/weather_screen.py