Skip to main content

A easy and quick consoling

Project description

PyCtrl

Build Status Coverage Status

Functions:

singleChoice

Takes 1-3 inputs:

1 - Array to be listed
2 - Set cursor color (See accepted colors below) - Default "Blue"
3 - Return array as postion value ("Val") or text ("Text") - Default: "Val"

Example:

valArray=["Choice1","Choice2","Choice3"]  
print(singleChoice(valArray,"Magenta","Text"))

MultiChoice

1 - Array to be listed
2 - Set cursor color (See accepted colors below) - Default "Blue"
3 - Return array as postion value ("Val") or text ("Text") - Default: "Val"
4 - Selected display character (Sets the selected character. "T" sets a tick, "X" sets a cross. Anything else is used directly as the character)
5 - Sets the displayed selecter character color (Same accepted colors as previous)

Example:

valArray=["Choice1","Choice2","Choice3"]  
print(*multiChoice(valArray,"Red","Text","X","Magenta"), sep='\n')  

Accepted colors :

Black
Red
Green
Yellow
Blue
Mangenta Cyan
White
Reset

Project details


Release history Release notifications

This version

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyCtrlLn, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size PyCtrlLn-0.0.1-py3-none-any.whl (1.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size PyCtrlLn-0.0.1.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page