Little and simple wrapper for curses application.
Project description
Cursy
Little and simple wrapper for curses application.
Getting started
The @curses_application
decorator is a util built upon curses.wrapper
function.
This decorator adds stdscr
to self
object on execution time of start
method
of the class under @curses_application
decorator, so it can be used within the
method to access the initialized curses screen.
Installation
pip install cursy
Usage
@cursy.curses_application
class Application:
def start(self):
self.stdscr.clear()
self.stdscr.addstr(0, 0, 'Hello world')
self.stdscr.getch()
if __name__ == "__main__":
app = Application()
app.start()
License
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
cursy-1.0.1.tar.gz
(2.2 kB
view details)
File details
Details for the file cursy-1.0.1.tar.gz
.
File metadata
- Download URL: cursy-1.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c4a30121c496dc255f936eeae3dd27deee66da3b9a5e3f0adf66ab900c2bb90 |
|
MD5 | 9eb3c0b7974741c1f5389f17976e282e |
|
BLAKE2b-256 | 9951050f9cccc26005f5b1759e13b179b321fd8d895fa6787d35242304290c71 |