Skip to main content

Pygame menu - 3.4.2

Menu for pygame, simple, lightweight and easy to use


Pablo Pizarro
(ppizarror)
Python library that can create a simple menu for pygame application: - Scroll support - Widgets: buttons, images, text input, selectors - Multiple themes - Sound support

Changes

Fixes widget padding if a background color is used, closed #242. New Menu parameter overflow. Fix background_inflate docs. New Menu widget insertion parameter font_background_color. New TextInput parameter input_underline_len. New Menu method get_clock(). New Theme widget_font_background_color property. New Selection method get_xy_margin(). New Widget property lock_position. New Widget methods has_attribute(key), remove_attribute(key), add_draw_callback(func), remove_draw_callback(callid), apply_draw_callbacks(), add_update_callback(func), remove_update_callback(callid), apply_update_callbacks(). Improve widget rendering. Added widget transform methods rotate, translate, flip, scale and rotate. Fix BaseImage flip bug. Throw warning if Menu column_fit_text constructor parameter is enabled but column_max_width is None. Improve edge case while creating scrollarea if menubar height is greater than menu height. New menu methods get_menubar_widget() and get_scrollarea(). New widget method get_surface.

Links

Home Page
https://pygame-menu.readthedocs.io
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 menu 2.1.2 — 18 Jan, 2020

Pygame menu 2.1.0 — 4 Jan, 2020

Pygame menu 3.0.0 — 3 May, 2020

Pygame menu 3.0.1 — 15 May, 2020

Pygame menu 3.0.3 — 19 May, 2020

Pygame menu 3.0.3.1 — 21 May, 2020

Pygame menu 3.1.2 — 22 Jun, 2020

Pygame menu 3.1.0 — 12 Jun, 2020

Pygame menu 3.1.0.1 — 17 Jun, 2020

Pygame menu 3.1.3 — 9 Jul, 2020

Pygame menu 3.1.5 — 30 Sep, 2020

Pygame menu 3.2.0 — 20 Oct, 2020

Pygame menu 3.3.0 — 29 Oct, 2020

Pygame menu 3.3.2 — 28 Nov, 2020

Pygame menu 3.4.0 — 3 Jan, 2021

Pygame menu 3.4.2 — 5 Jan, 2021

Pygame menu 3.5.1 — 14 Jan, 2021

Pygame menu 4.0.0 — 15 Mar, 2021

Pygame menu 4.0.3 — 26 Apr, 2021

Pygame menu 3.5.6 — 9 Feb, 2021

Pygame menu 3.5.7 — 1 Mar, 2021

Pygame menu 3.5.8 — 1 Mar, 2021

Pygame menu 4.0.2 — 4 Apr, 2021

Pygame menu 4.0.4 — 2 May, 2021

Pygame menu 4.0.5 — 16 May, 2021

Pygame menu 4.1.0 — 6 Jun, 2021

Pygame menu 4.0.7 — 30 May, 2021

Pygame menu 4.1.3 — 3 Jul, 2021

Pygame menu 4.1.3.1 — 26 Jul, 2021

Pygame menu 4.1.4 — 24 Aug, 2021

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!
  • Pablo Pizarro 2020-05-03 21:22:44.765888

    New version 3, added multiple widgets, image support, scrolling, new doc website https://pygame-menu.readthedocs.io
  • Slava 2020-10-26 20:02:45.493664

    Thank you for your work!