GUI package¶
The GUI modules contains a trivial implementation of the GUI of the chess board
GUI.gui module¶
-
GUI.gui.
create_start_screen
() → PySimpleGUI.PySimpleGUI.Window[source]¶ Creates gui for simple start screen
- Returns
A window with 3 buttons to select the client to start and an exit button
-
GUI.gui.
create_engine_screen
() → PySimpleGUI.PySimpleGUI.Window[source]¶ Creates the engine configuration screen
- Returns
Screen with all configuration settings for the engine client
-
GUI.gui.
play_console_screen
() → PySimpleGUI.PySimpleGUI.Window[source]¶ Creates the console client configuration screen
- Returns
Screen with all configuration settings for the console client
-
GUI.gui.
get_opponent_from_gui
() → Optional[Clients.ClientInterface.ClientInterface][source]¶ Main GUI method which returns the client selected as opponent
- Returns
The client to use as component or None if the GUI is closed
-
GUI.gui.
set_up_game_chessdotcom
() → Clients.ClientInterface.ClientInterface[source]¶ Returns the chess.com client
- Returns
A chess.com client instance
-
GUI.gui.
set_up_game_engine
() → Optional[Clients.ClientInterface.ClientInterface][source]¶ ” Opens GUI to configure the engine client
- Returns
An instance of the engine client with the configured settings or None if the window is closed
-
GUI.gui.
display_error
(error: str)[source]¶ Displays a simple error message in a new window
- Parameters
error – The message to display
-
GUI.gui.
set_up_game_console
() → Optional[Clients.ClientInterface.ClientInterface][source]¶ ” Opens GUI to configure the console client
- Returns
An instance of the console client with the configured settings or None if the window is closed