Skip to main content

Simple Python menu generator

Project description

GaleMenu - Simple Menu Generator

GaleMenu is a simple menu generator for Python.


To install GaleMenu, run pip install galemenu.

To include it in your project, import it like so:

import galemenu


Creating a menu

menu =, [border], [prompt], [text], [error])

name - the title of the menu

border - the underline of the title (optional - default =)

prompt - the characters shown before the input prompt (optional - default >)

text - the text shown before the prompt (optional - blank by default)

error - the message shown if an invalid menu choice made (optional - default Please choose an option from the menu.)

Adding options to menu

menu.additem(function, name, [parameters])

function - the function that the menu option points to

name - the display name of the menu option

parameters - an array of parameters to pass to the function (optional)

Displaying the menu


This will start the menu and display it at the point when it is run


import galemenu

def coolFunction(text):

menu ="The best menu")
menu.addItem(coolFunction, "Item number 1", ["hey"])
menu.addItem(coolFunction, "Item number 2", ["hey2"])


This menu, called "The best menu", has 2 options - Item number 1 and Item number 2. They each pass a single parameter to the function coolFunction.

this is where the picture of the menu is supposed to be

Project details

Download files

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

Files for GaleMenu, version 1.1.3
Filename, size File type Python version Upload date Hashes
Filename, size GaleMenu-1.1.3-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page