setting_page module

A module with classes of game settings pages.

Contains a base game setting page class, as well as classes of online game settings page and computer game settings page inherited from it.

class setting_page.BaseStartPage(master)

Bases: tkinter.Frame

The class of the registration page.

Parameters

master (class: tictactoe.App) – An instance of the main class of the game application

__init__(master) None

Make constructor method.

_choose_move_widget(frame: tkinter.Frame) None

Draw a named frame with a choice of the sequence of the move.

Parameters

frame (class: tkinter.Frame) – A frame for drawing a named frame with a choice of the sequence of the move

_create_widgets() None

Render widgets of the game settings page.

_game_type() None

Draw a label with a game type.

_sign_selection(frame: tkinter.Frame) None

Draw a named frame with a sign selection.

Parameters

frame (class: tkinter.Frame) – Frame for drawing a named frame with a choice of sign

_sound() None

Play the sound of pressing the button.

_start_and_return_btn(frame: tkinter.Frame) None

Draw the start game and return to the start page buttons.

Parameters

frame (class: tkinter.Frame) – Frame for drawing the start game and return to the start page buttons

_statistic_widget(frame: tkinter.Frame) None

Render a label frame with statistics.

Parameters

frame (class: tkinter.Frame) – Frame for drawing a label frame with statistics

class setting_page.FriendStartPage(master)

Bases: setting_page.BaseStartPage

The class of the registration page.

Parameters

master (class: tictactoe.App) – An instance of the main class of the game application

__init__(master) None

Make constructor method.

_game_type() None

Draw a label with the online game type.

_start_and_return_btn(frame: tkinter.Frame) None

Draw the search the game and return to the start page buttons.

Parameters

frame (class: tkinter.Frame) – Frame for drawing the search the game and return to the start page buttons

_statistic_widget(frame: tkinter.Frame) None

Render a label frame with online game statistics.

Parameters

frame (class: tkinter.Frame) – Frame for drawing a label frame with online game statistics

change_language(lang: str) None

Set action for the language change button.

Parameters

lang (class: str) – A string with the localization language of the application, “en” or “ru”

search_game() None

Set action for the “Search the game” button.

class setting_page.PcStartPage(master)

Bases: setting_page.BaseStartPage

The class of the registration page.

Parameters

master (class: tictactoe.App) – An instance of the main class of the game application

__init__(master) None

Make constructor method.

_game_type() None

Draw a label with the computer game type.

_start_and_return_btn(frame: tkinter.Frame) None

Draw the start computer game and return to the start page buttons.

Parameters

frame (class: tkinter.Frame) – Frame for drawing the start computer game and return to the start page buttons

_statistic_widget(frame: tkinter.Frame) None

Render a label frame with computer game statistics.

Parameters

frame (class: tkinter.Frame) – Frame for drawing a label frame with computer game statistics

change_language(lang: str) None

Set action for the language change button.

Parameters

lang (class: str) – A string with the localization language of the application, “en” or “ru”