Pygame-menu

Latest version: v4.4.2

Safety actively analyzes 628918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 15

4.0.5

- Added ``wait_for_event`` kwargs for menu mainloop, 329.
- Base ``get_counter_attribute`` does not require ``incr`` parameter as 0 is default.
- Fix ColorInput ``cursor_switch_ms`` constructor parameter.
- Fixed ``get_cursor`` for SDL2 compatibility, 330.
- Improve docs and tests.
- Menu events accept empty callbacks, 333.
- New decoration ``is_enabled`` method.
- New menu ``get_submenus`` method.
- Relax assertion on touchscreen option, 332.

4.0.4

- Added ``single_click`` parameter to ``ToggleSwitch`` widget, 326.
- Fixed selection effect color, 324.
- Improved widget's scale, max width and max height warn messages.
- Improve selection classes output type for method ``draw``.
- New ``SimpleSelection`` widget selection effect.
- Test improvements.
- Theme class validates when copying.
- ``Widget.set_selection_effect`` parameter ``selection`` default value is now ``None``.

4.0.3

- Fix selection, dropselect, and switch widgets touch finger events, 323.
- Menu and table docs improvements, 320.

4.0.2

- Added ``BaseImage`` x4 size method, 315.
- Added ``cursor_size`` for ``TextInput`` class
- Added ``svg`` image format support for ``BaseImage``, 314.
- Fix docs and tests.
- Fix sound and image errors for Macs M1 ARM architecture under pygame 1.9.x and pygame 2.0.x.
- Improved controls, now the constants can be changed during execution time, 316.
- New ``MenuLink`` class, 313.

4.0.1

- Fixed typing error.
- Fix macOS mixer error.
- Added ``origin_position`` to Widget float, 310.
- Added widgets example to the gallery, 310.

4.0.0

New v4 release

v4 version comes out with many new features. The most important ones are:
- All menu objects now support decorations.
- Colors now can be defined using pygame color object, string hex, integers, or string names.
- Cursor support + mouse over/leave events.
- New column/row layout.
- New examples: Calculator and Solar System.
- New typing support; now the library only supports python 3.6+.
- New widgets: Frame (widget containers), Table, DropSelect, DropSelectMultiple, SurfaceWidget.
- New widget transformations: scale, resize, rotate, flip and translate.

Page 6 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.