Skip to main content

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


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.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tuilib-1.1.2.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file tuilib-1.1.2.0.tar.gz.

File metadata

  • Download URL: tuilib-1.1.2.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

Hashes for tuilib-1.1.2.0.tar.gz
Algorithm Hash digest
SHA256 14ce0de41014d6862c1475b348640380a64091d5ce67297c818dd042077a0b2d
MD5 a0e389f2327f17f79dd2caf622ff5c1c
BLAKE2b-256 a09d3308f9a34d7c999b3ccffffcbcc5143625a68bdb05eb769e92ae7aada7e3

See more details on using hashes here.

File details

Details for the file tuilib-1.1.2.0-py3-none-any.whl.

File metadata

  • Download URL: tuilib-1.1.2.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

Hashes for tuilib-1.1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6694a65761e7b9e940483bd06ebd76824d55dccafbc08deb72d9d642d498638a
MD5 0c60bef2413ee97e967681f61b6d550c
BLAKE2b-256 eed64e29c06faa96db0d994d7f57e4692ea7984fb57cdda026939ef6cff30813

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page