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.4.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.4.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tuilib-1.1.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 3de2e1c1e2363be4dc8b77794082c845c710d8be272efe1dd3b4f8208b0e3c97
MD5 eac2867e025edfc31282ee862be70ee6
BLAKE2b-256 3457371dfb495945c857ae79d551b14883402384b7696881fec94efcc7b7fc7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tuilib-1.1.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74956fcf91fca884f6cf48f044089a70c2ede26a2318acd80841c060e32e4a87
MD5 3e4af8e45227637ef0d1b457363ccba9
BLAKE2b-256 8d92e1c974abd1a03144ae66fd4cfcc9dc7e8a2478befacc4f9cbce932657a1d

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