A easy and quick consoling
Project description
PyCtrl
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.