Skip to main content

A package for making simple menus for your python games!

Project description

simplepygamemenus

A package for making simple menus for your python games!

  • By Leonardo Ferrisi

Installation

Install using

pip install simplepygamemenus


Documentation / API

local

webpage

Demo / Example:

See our Demo File


Features:

  • Make simple pygame menus

Usage:

Create a main menu using the 'Menu()' construtor

Example:
    myMenu = Menu(title="MyMainMenu")

Add buttons using:

myMenu.add_button(label='button text', x, y, fontsize, function=<function to perform>)

Example:
    if you have added a second menu, you can switch to it using your new button using the:
        
    `menuName.run_menu` function

Example2:

   myMenu = Menu(title="MyMainMenu")
   myOtherMenu = Menu(title="myOtherMenu")
   myMenu.add_button(label='button text', x, y, fontsize, function=myOtherMenu.run_main)

I'll add more soon, see the example below!

  • Leonardo

Extra Info:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplepygamemenus-0.1.4.tar.gz (42.4 kB view details)

Uploaded Source

File details

Details for the file simplepygamemenus-0.1.4.tar.gz.

File metadata

  • Download URL: simplepygamemenus-0.1.4.tar.gz
  • Upload date:
  • Size: 42.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for simplepygamemenus-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4f6adaa304191b5443028420bdfbb4675af8aa2a2750f0028cdccf03cc9f3170
MD5 220a85077897ee41dbf71f43db359342
BLAKE2b-256 9728e9fc188aa63b23aa02ff03b742bb4fc966385bb0c7f1d441ea956505495a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page