Skip to main content

Console based paged menu module

Project description

Summary:

The pym module is a console based menu system for Python 3.x+. It outputs provided menu choices with pagination depending on your current terminal size.

Example:

from pym.menu import Menu

choices = {
    'option1': 'First Option',
    'option2': 'Second Option',
    'option3': 'Third Option',
    'option4': 'Fourth Option',
    'option5': 'Fifth Option',
    'option6': 'Sixth Option'
}
menu = Menu('Make your choice:', 'option1', choices)
reply = menu.chooser()

menu.pager()

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

pym-0.1.3.tar.gz (4.6 kB view hashes)

Uploaded Source

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