Skip to main content

Write simple UI for your code in seconds in a unified way using Easy TTUI Menus

Project description

Easy TTUI Menus

About

Write simple UI for your code in seconds in a unified way using Easy TTUI Menus

Installation

Run pip3 install easyttuimenus from your preferred environment.

Usage

List Menu

list_menu(prompt: str, options: list)

Use when you have a list of possible valid options.

Parameters

prompt: Information to give to the user

opitons: The list of options to select

Returns

An index from options

Example Usage

import easyttuimenus
prompt = "Pick one of these"
options = ["lorem", "ipsum", "lorem ipsum"]
choice = easyttuimenus.list_menu(prompt, options)
print(options[choice]) # selected item from options

Int Menu

Use when you want to take an integer value as input.

Parameters

prompt: Information to give to the user

opitons: A list containing a minimum and maximum value

Returns

An integer value

Example Usage

import easyttuimenus
min_and_max = [0, 10]
prompt = "Pick a value between 0 and 10"
user_input = easyttuimenus.int_menu(prompt, min_and_max)
print(user_input) # user selected number

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

easyttuimenus-0.1.2.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

easyttuimenus-0.1.2-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file easyttuimenus-0.1.2.tar.gz.

File metadata

  • Download URL: easyttuimenus-0.1.2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for easyttuimenus-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b3f21b650329c3f702814d0319149d0020cf4c5ffa2c730965382d9775e9fa8a
MD5 3398d15d44e0427eaf7059eabfaadaec
BLAKE2b-256 0511abbd0fe46d660a2a46708aee43a0280e8fd04c90d677f09c9bdbc98755d4

See more details on using hashes here.

File details

Details for the file easyttuimenus-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: easyttuimenus-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for easyttuimenus-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e49ac1e9dec3c6564fef2ab5e86b46265e3767b0d7ea5fd69793e944470e05c
MD5 cc4e1162a3974a7e534f3682961a1448
BLAKE2b-256 502bacb93bdd23a200353fa83254dc1d6380c53c793e0123ee95718fa2cd00b7

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