Skip to main content

Pygame menu - 2.0.1

Menu for pygame, simple, lightweight and easy to use


Pablo Pizarro
(ppizarror)
Python library that can create a simple menu for pygame application, supports: - Textual menus - Buttons - Lists of values (selectors) that can trigger functions when pressing return or changing the value - Input text

Changes

pygame-menu has been completely rewritten this version. Core changes All menu elements were converted to Widgets. Added TextInput widget. New locals definitions. New element position within menu. Improved rendering methods. Improved library documentation. Added support for both python 2.7+ and 3.4+. Events Added mouse support. Renamed all events. Fonts Added system fonts. Added 4 new open source fonts. Sounds Sound support are added in v2.0.0, both Menu and Widgets implements different types of sounds. This version introduces 8 different sound types. Tests Added tests to the library. Added Travis-CI.

Links

Home Page
https://github.com/ppizarror/pygame-menu
Source
https://github.com/ppizarror/pygame-menu
Windows
https://github.com/ppizarror/pygame-menu
Mac
https://github.com/ppizarror/pygame-menu
Github repo
https://github.com/ppizarror/pygame-menu

Releases

Pygame menu 1.5 — 20 Jun, 2017

Pygame menu 1.6 — 20 Jul, 2017

Pygame menu 1.71 — 19 Nov, 2017

Pygame menu 1.72 — 29 Jan, 2018

Pygame menu 1.9 — 8 Apr, 2018

Pygame menu 1.93 — 8 Jun, 2018

Pygame menu 1.95 — 28 Sep, 2018

Pygame menu v1.96.1 — 13 Jun, 2019

Pygame menu 2.0.4 — 16 Aug, 2019

Pygame menu 2.0.1 — 31 Jul, 2019

Pygame menu 2.0.3 — 8 Aug, 2019

Pygame.org account Comments

  • tom 2017-07-24 18:55:18.044132

    This is impressive!!

    Pablo Pizarro 2017-11-19 16:31:08.752559

    thanks :), any feedback is welcome
  • Marcus Bell 2017-12-01 00:43:02.257072

    Looks good. I can't figure out how to close the menu though. (Only esc key works for this, but I want to use another key)

    Pablo Pizarro 2018-01-29 03:28:59.902971

    you can use a 'function' or pygamemenu event like PYGAME_MENU_CLOSE

    Tiago Lajas 2019-05-15 19:52:39.744571

    Idk why but I can't get that function to work.
  • Ales 2018-02-02 12:10:16.054344

    Perfect job! One question: when rise menu.enable() for main menu is not impacted required aplha %. Every time is menu apear with 100% opaque. When I use only draw method it's transparent, but menu is not functional (do not catch events, when is disable problably). Please advice - How can I run single transparent menu started from my python code. example.py starting transparent from main menu and this working. thanx Ales

    Pablo Pizarro 2018-04-11 11:44:07.540341

    that was already fixed, greetings!