This library is a collection of widgets that supported from blessed
Project description
# Tebless
This library is a collection of widgets that supported from blessed allows to create interfaces in a simple way based on events.
## Install
```bash
pip install tebless
```
## Example
This will render a label containing the text 'Hello world!', centered horizontally and vertically.
```python
from tebless.widgets import Label, Window
@Window.decorator
def view(window):
WIDTH, HEIGHT = window.size
window += Label(
cordy=HEIGHT / 2 - 1,
text='Hello world!',
width=WIDTH,
align='center'
)
if __name__ == '__main__':
view()
```
This library is a collection of widgets that supported from blessed allows to create interfaces in a simple way based on events.
## Install
```bash
pip install tebless
```
## Example
This will render a label containing the text 'Hello world!', centered horizontally and vertically.
```python
from tebless.widgets import Label, Window
@Window.decorator
def view(window):
WIDTH, HEIGHT = window.size
window += Label(
cordy=HEIGHT / 2 - 1,
text='Hello world!',
width=WIDTH,
align='center'
)
if __name__ == '__main__':
view()
```
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
tebless-1.1.1.dev3.tar.gz
(12.1 kB
view hashes)