An extension program to curses that offers option menus, message boxes, and more
Project description
Curses Plus
Extension library to curses
How To Install
Use pip3 install cursesplus
on Linux
SPECIAL INSTRUCTIONS FOR WINDOWS
Before version 1.2:
For Windows you need to also install windows-curses
to provide the basic curses functionality
After Version 1.2: setup.py automatically installs windows-curses if you are on Windows TESTS NEEDED
What's New?
Patch 1.2.1
-Add new argument to ProgressBar.step()
-addmsgtolog (type bool) (default False)
-If set to True, will add "message" to log
-Only writes in normal colour. Use .appendlog() for custom colours
Version 1.2
-Add Log to ProgressBar class
-Add WaitForKeyPress to ProgressBar class (default false)
-Log is default false
-Add to log with appendlog(text,colour)
-colour is curses.color-pair() value. NOTE: You must pass it through color_pair() before giving it to appendlog().
Uses
curses-plus offers many utilities to make writing TUI applications easy. (TUI stands for Terminal User Interface)
load_colours(grayscale=False)
load_colours() accept 0-1 args and initializes some colours. Usage of this function is required for optionmenu. grayscale denotes if only grayscale should be used (grayscale can improve visibility on Windows)
If I have more time I will finish this blasted documentation
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.
Source Distribution
Built Distribution
Hashes for cursesplus-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029400b2886b4b4b1e8c4f9f5e063a51367c13536b4bbadc8ee358f8001ea9d8 |
|
MD5 | 5c18bc850bbd287b44e3ea042791edda |
|
BLAKE2b-256 | ddea49a678e7b62754d0e5cf9b602ec7b7495c160b648a2e4ebb19c5580f9dd7 |