Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.62 KB

gallery.rst

File metadata and controls

74 lines (52 loc) · 1.62 KB

Gallery

Several examples are provided with the :py:mod:`pygame_menu` library. To run the examples, simply execute these commands in a terminal:

$> python -m pygame_menu.examples.simple
$> python -m pygame_menu.examples.game_selector
$> python -m pygame_menu.examples.multi_input
$> python -m pygame_menu.examples.scroll_menu
$> python -m pygame_menu.examples.timer_clock

Them can also be imported as follows:

from pygame_menu.examples.example import main

main()

Examples can also be found in the Github repo.

Simple example

A basic button menu

Multiple input example

This example features all widgets available on pygame-menu

Scroll menu example

Since v3, menu supports scrolls

Columns example

Since v3, menu supports columns and scrolls

Game selector example

A simple game selector

Timer clock example

Timer clock