pygame-menu Logo
3.0.1

First steps

  • Creating menus
  • Adding widgets
  • Adding sounds
  • Creating themes
  • Gallery
    • Simple example
    • Multiple input example
    • Scroll menu example
    • Game selector example
    • Timer clock example
  • Migration Guide - v2 to v3

Advanced usage

  • Package organization
  • Create a widget
  • Create a selection effect

Widgets API

  • Button
  • ColorInput
  • Image
  • Label
  • MenuBar
  • ScrollBar
  • Selector
  • TextInput
  • VMargin

About pygame-menu

  • License
  • Contributors
pygame-menu
  • Docs »
  • Gallery
  • Edit on GitHub

Gallery¶

Several examples are provided with the 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()

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 columns and scrolls

Game selector example¶

A simple game selector

Timer clock example¶

Timer clock

© Copyright 2020, Pablo Pizarro R. @ppizarror Revision a2e1f9bd.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: 3.0.1
Versions
master
latest
3.5.2
3.5.1
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.2
3.3.0
3.2.3
3.2.2
3.2.1
3.2.0
3.1.5
3.1.4
3.1.3
3.1.2
3.1.0
3.0.3
3.0.1
3.0.0
Downloads
html
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.