start_page module

A module with the class of the game’s home page, where you can choose the game mode or log out of your account.

class start_page.StartPage(master)

Bases: tkinter.Frame

The class of the game’s home page, where you can choose the game mode or log out of your account.

Parameters

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

__init__(master) None

Make constructor method.

_create_image() None

Draw the image for the start page.

_create_widgets() None

Render widgets of the home page.

_logout() None

Set action for the “Log out” button.

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”