Socket
Socket
Sign inDemoInstall

simplepygamemenus

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simplepygamemenus

A package for making simple menus for your python games!


Maintainers
1

Readme

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:

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc