This project is used to create menu command-line 一个快速创建命令行菜单的工具
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 (更改显示菜单的方式,不在需要清屏了)
Release files for tty_menu 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tty_menu-1.0.3.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tty_menu-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.1 kB