Skip to main content

Miniscule Python Module for multiple choice menus using arrow keys

Reason this release was yanked:

Fatal error

Project description

MultiChoiceLib

MultiChoiceLib is a one-day project, meaning that it was literally written in a day. As you can imagine, it has not extensively been tested for bugs, and I am unsure whether it works at all on non unix-based machines due to half of it being written in bash.

Usage:

query = MultiChoice("Pick one:", ["apples", "cherries"])
    .wAccentColor("\033[33m") # yellow
    .wQuestionPrefix("\033[4m") # underline, don't override
    .wAnswerPrefix("] ", True) # override params are optional and default to false
    .wSelectedPrefix(") ", True) # if false, will append instead
    .addOption("oranges")() # evaluate

print(query.index, query.value)

Result:

-# Warp terminal with Grafbase theme

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

multichoicelib-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

multichoicelib-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file multichoicelib-0.0.1.tar.gz.

File metadata

  • Download URL: multichoicelib-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for multichoicelib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 166d18558c4b56452e90de88cc07b396f326127f4933559b162ef76c2d9384d8
MD5 9f461384aa0223a4c5a59ad397176d38
BLAKE2b-256 c1ce6839bd5442e3ea240f2a25ea9689d501db2caf23d1fa6797cd51fcc95144

See more details on using hashes here.

File details

Details for the file multichoicelib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: multichoicelib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for multichoicelib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 865d9e6f4c9467018fab9fd304c2d1102f6da24017b96c8b2a5e29503f2d197d
MD5 9f70c5a1b04cf4a15c59cff4815f4bc0
BLAKE2b-256 961ba6283e94df6802d5955ac90de105fcd89d8c5d19932b068eeb3e0c5578c9

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