Skip to main content

A minimalistic command line menu

Project description

micromenu

A minimalistic command line menu for Python, with a title and an optional message bar. Callable functions are attached to each menu item.

╭─── test ───────────────────────────────────────────────╮
│ this is a message                                      │
╞════════════════════════════════════════════════════════╡
│ 1: item1                                               │
│ 2: item2                                               │
│ 0: Exit                                                │
╰────────────────────────────────────────────────────────╯
Action number:

Installation

python3 -m pip install micromenu

Example usage

import micromenu

menu = micromenu.Menu("test", "this is a message")
menu.add_function_item("item1", lambda x: print(x), {'x':"testparam"})
menu.add_function_item("item2", lambda x: print(x), {'x':"testparam"}))
menu.show()

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

micromenu-0.9.5.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

micromenu-0.9.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file micromenu-0.9.5.tar.gz.

File metadata

  • Download URL: micromenu-0.9.5.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17

File hashes

Hashes for micromenu-0.9.5.tar.gz
Algorithm Hash digest
SHA256 108110356b8ab12762077e855e6275ab4e0f41837c163cddecb668179e55d914
MD5 061463c71671693fb1e76c4a3d680f72
BLAKE2b-256 d5b7f259277e6c63be0eb13b369b2935a91274c7afa025d190af5e141dd83d16

See more details on using hashes here.

File details

Details for the file micromenu-0.9.5-py3-none-any.whl.

File metadata

  • Download URL: micromenu-0.9.5-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.17

File hashes

Hashes for micromenu-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 067c63fc1220477c5923c8be352b697b684daf4866c74ba44ffa12294cfd5966
MD5 e85ff50a5eb945d6dce01331f5101577
BLAKE2b-256 ac13d580c0bf99f74f106a85ec0c6130b25cf8b790fbac72c369766d9c5e9a2e

See more details on using hashes here.

Supported by

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