A Python library for creating Terminal User Interfaces using curses
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-3.0.1.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-3.0.1.0.tar.gz.
File metadata
- Download URL: tuilib-3.0.1.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 |
c4723f05074cb342b4b8e7758a0bc4503fa851871eaf5f8634ef494976e43d2a
|
|
| MD5 |
a9ceaf4c93e41aab40a74f6314a80e46
|
|
| BLAKE2b-256 |
4cf76b98eb6bd97e23cf0f124b343e056d58e4baf020a2a11910798e36673cb4
|
File details
Details for the file tuilib-3.0.1.0-py3-none-any.whl.
File metadata
- Download URL: tuilib-3.0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 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 |
e2ec07aceda5658861061d066e228d39f16eb6212973e09e44109efc8c4addec
|
|
| MD5 |
3bec12ef9ae0e68367b4e2725ce1edd0
|
|
| BLAKE2b-256 |
0a631cfa2c891ee0e97c8ad338a93accf946bc4f40e2692e6d3527e8dbc4d265
|