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


Download files

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

Source Distribution

PyCtrlLn-0.0.1.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

PyCtrlLn-0.0.1-py3-none-any.whl (1.7 kB view hashes)

Uploaded Python 3

Supported by

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