Skip to main content

This project is used to create menu command-line 一个快速创建命令行菜单的工具

https://github.com/gojuukaze/tty_menu/blob/master/ex.gif?raw=true

Install

pip install tty_menu

Example

from tty_menu import tty_menu

l = ['a', 'b', 'c']
pos = tty_menu(l, "What is your word?")

print("Your word is %s" % (l[pos]))

chang_log

  • 1.0.2 : rm log (移除无用log)

  • 1.0.3 : change way (更改显示菜单的方式,不在需要清屏了)

Download files

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

Source Distribution

tty_menu-1.0.3.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

tty_menu-1.0.3-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file tty_menu-1.0.3.tar.gz.

File metadata

  • Download URL: tty_menu-1.0.3.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.4

File hashes

Hashes for tty_menu-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c9a0d7c91a9eb9c74fa0dfbd3e238cf3ef1b22de5dcb7774c3521f778fabc7de
MD5 f5249db51b1000e5763ecc8838adb890
BLAKE2b-256 dc97e42c2c41a1507e5aeea5a071cd98eab5bed8ef660567e0ddcb391b117b39

See more details on using hashes here.

File details

Details for the file tty_menu-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: tty_menu-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.4

File hashes

Hashes for tty_menu-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2d7f2c6e966b64d8e027b422538001bdd7e0bf2e0a6e7c0f0ca8c6474a2baa6d
MD5 bb469e62b943f6bb252c153525343989
BLAKE2b-256 39a9d6fc779c9ffa32b9c6fe3b1e93f036e1ce8d1563a8b28a632289f4fe3208

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 files

1.0.2

1 file

1.0.1

1 file

0.23

1 file

Supported by

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