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","grape","cherry","apple"]
choice = tui.list_selector(stdscr,options)
tui.func_exit(stdscr)
print("you chose",choice)
tui.main(main)
real time input
ok I fixed it anyway
from tuilib import tui
def main(stdscr):
name:str = tui.real_time_input(stdscr,"what is your name?: ")
tui.func_exit(stdscr)
print("hello",name)
tui.main(main)
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-2.0.0.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-2.0.0.0.tar.gz.
File metadata
- Download URL: tuilib-2.0.0.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 |
12e0f6e44fdc3e9e6addf953f3db8656628cdf330e5650699c9a5f7f0c3b92c1
|
|
| MD5 |
433ebf383ee2e4247bdee741b639b543
|
|
| BLAKE2b-256 |
146a386a53d7397bce2887d376af07aea82da3d32b133845d6483c17f3999f56
|
File details
Details for the file tuilib-2.0.0.0-py3-none-any.whl.
File metadata
- Download URL: tuilib-2.0.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
16a108eaaf909eb95b4ce5e369927e7c54778c57970512cea7b0a711d87240a1
|
|
| MD5 |
6871d61b217002f757fd8a4cf493cccf
|
|
| BLAKE2b-256 |
33f05ff0923197b9bdf9eca2761d74846eb48fa5bc6b2e58c40509760e0378d8
|