tetris.leaderboard module

class tetris.leaderboard.Leaderboard(settings: Settings)

Bases: object

Class for the leaderboard screen

check_events() bool | None

Checks for events

Returns:

True if go back button is pressed, None otherwise

Return type:

(bool | None)

create_draw_row(rank: int, user: User) None

Creates and draws a row of the leaderboard

create_header() None

Creates the header of the leaderboard

create_leaderboard() None

Creates the leaderboard

create_title() None

Creates the title of the leaderboard

draw_header() None

Draws the leaderboard header

draw_title() None

Draws the leaderboard title

main() None

Main function of the leaderboard screen that draws everything and checks for events