OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
frontends.tk.games.games_panel.GamesPanel Class Reference

Touch-friendly Tk view that renders game state and emits requests. More...

Inheritance diagram for frontends.tk.games.games_panel.GamesPanel:
ui.games.games_ui_if.GamesUiIf ui.ui_widget.UiWidget

Public Member Functions

None set_theme_bundle (self, ThemeBundle theme)
 Apply a CSS-derived theme to the active games surface.
None set_games_request_handler (self, GamesRequestHandlerIf|None handler)
 Set or clear the semantic game request handler.
None set_games (self, Sequence[GameUiState] games)
 Replace the complete game display state.
None set_games_status (self, str message)
 Set the user-visible games status message.

Detailed Description

Touch-friendly Tk view that renders game state and emits requests.

Member Function Documentation

◆ set_games()

None frontends.tk.games.games_panel.GamesPanel.set_games ( self,
Sequence[GameUiState] games )

Replace the complete game display state.

Parameters
gamesOrdered game states to display.

Reimplemented from ui.games.games_ui_if.GamesUiIf.

◆ set_games_request_handler()

None frontends.tk.games.games_panel.GamesPanel.set_games_request_handler ( self,
GamesRequestHandlerIf | None handler )

Set or clear the semantic game request handler.

Parameters
handlerGames request handler, or None to disconnect it.

Reimplemented from ui.games.games_ui_if.GamesUiIf.

◆ set_games_status()

None frontends.tk.games.games_panel.GamesPanel.set_games_status ( self,
str message )

Set the user-visible games status message.

Parameters
messageStatus text to display.

Reimplemented from ui.games.games_ui_if.GamesUiIf.


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