A terminal UI for the la(z)yperson
Project description
A terminal UI for the la(z)yperson
import lazytui
from lazytui.fmt import fmt
class Hello(lazytui.TUI):
def setup(self):
self.enable_title_bar('hello world', style="underline")
self.enable_status_bar('press q to quit', fg="magenta")
def draw(self):
self.write(2, 0, 'hello world ' + fmt('from lazytui', fg="blue", bg="white", style=["underline", "bold"]))
def key_pressed(self, key):
if key == 'q':
self.exit()
Hello().run()
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
lazytui-0.0.1.tar.gz
(5.9 kB
view hashes)