A Python library for creating Terminal User Interfaces using curses
Reason this release was yanked:
outdated
Project description
number selector
from tuilib import tui
def main(stdscr):
num:int = tui.number_selector(stdscr,0,0,10) #starts at 0, minimum 0, maximum 10
tui.func_exit(stdscr)
print(num)
tui.main(main)
list selector
from tuilib import tui
def main(stdscr):
options = ["banana","fruit","cherry","apple"]
choice = tui.list_selector(stdscr,options)
tui.func_exit(stdscr)
print("you chose",choice)
tui.main(main)
real time input
dosn't work, too lazy to fix
stdscr functions
same as the curses library
to install:
pip install tuilib
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tuilib-1.1.3.0.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tuilib-1.1.3.0.tar.gz.
File metadata
- Download URL: tuilib-1.1.3.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3010621c1842f9f98ce4884f36cdb1d129476374806f5450515daec8400f68f7
|
|
| MD5 |
8fb24d0688452e68fa203e1212d9282c
|
|
| BLAKE2b-256 |
ffe8a9b03ce54355300532673879cd2b16071704f07f9c77cbb7e3605c9af87a
|
File details
Details for the file tuilib-1.1.3.0-py3-none-any.whl.
File metadata
- Download URL: tuilib-1.1.3.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbfcb34a42314ae87d29a86b2cbf206e36eb9f08b626476425180281621bdbd9
|
|
| MD5 |
0baa5418b3b3547fd946359cd77cfcb2
|
|
| BLAKE2b-256 |
39c77fd114093441b29c9a8f8df1625446736e7a72e77ad083e2eea8237d9692
|