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.0.2.0.tar.gz
(2.2 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.0.2.0.tar.gz.
File metadata
- Download URL: tuilib-1.0.2.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96fa93825e7ed5a488448b3471248ba0002b534f94525cc7c0dc303073ecf95b
|
|
| MD5 |
89c5a317247b115085af64a9314efc8f
|
|
| BLAKE2b-256 |
5584db5ddcc831dac8050ccf2e202be8d009fdd46099ccaf80dff55c648f6b59
|
File details
Details for the file tuilib-1.0.2.0-py3-none-any.whl.
File metadata
- Download URL: tuilib-1.0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.3 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 |
ff937fcaac71542599ba987e4617fa6ddf5deac55ad2a601c9503f938092e953
|
|
| MD5 |
ccd2186b35190ddd992159471336750d
|
|
| BLAKE2b-256 |
8ffa23f4e2a33c143ef17310190e3774637abc8716302c5b3d0f2bbb2e316545
|