Tebless
This library is a collection of widgets that supported from blessed allows to create interfaces in a simple way based on events.
Free software: MIT license
Documentation: https://tebless.readthedocs.io.
Table of contents
How to install
pip install tebless
Example of usage
This will render a label containing the text ‘Hello world!’, centered horizontally and vertically.
from tebless.widgets import Label, Window, Input
@Window.decorator(main=True, min_y=10)
def view(window):
WIDTH, HEIGHT = window.size
def callback(evt):
evt.store.label.value = evt.value
window += Label(
cordy=HEIGHT / 2 - 1,
text='Hello world!',
width=WIDTH,
align='center',
ref='label'
)
window += Input(
width=WIDTH,
cordx=WIDTH / 3,
on_enter=callback
)
so easy is placed a text in the console that changes with the input and limit min height window you can also avoid access to the store
from tebless.widgets import Label, Window, Input
@Window.decorator(min_y=10)
def view(window):
WIDTH, HEIGHT = window.size
label = Label(
cordy=HEIGHT / 2 - 1,
text='Hello world!',
width=WIDTH,
align='center'
)
def callback(evt):
label.value = evt.value
window += label
window += Input(
width=WIDTH,
cordx=WIDTH / 3,
on_enter=callback
)
if __name__ == "__main__":
view()
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
1.2.0 (2017-11-24)
Restructured project.
Metadata
Release files for tebless 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tebless-1.2.3.tar.gz | 28.3 kB | Without provenance | Details for tebless-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tebless-1.2.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for tebless-1.2.3-py2.py3-none-any.whl |
Total release size: 48.2 kB
Release files / tebless-1.2.3.tar.gz
| Download URL | tebless-1.2.3.tar.gz |
|---|---|
| Size | 28.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f9b00a2dd22594dda95de07508e39db597e4e44de0a076742f9f4e5f97659ef
|
|
BLAKE2b-256 checksum How to use checksums |
f9150186c79c55c508809a1e7c046c0a1f242dd03bb1161bcc7a11f3e008db6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tebless-1.2.3-py2.py3-none-any.whl
| Download URL | tebless-1.2.3-py2.py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9d3cabb150547b4e1519f28d09d7e059f0f69907bcbafbc85556e36b50ad91eb
|
|
BLAKE2b-256 checksum How to use checksums |
aac7083bd4bc917527a46d514218e913d4f20911494c69f76b87fd2db8ddfd11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for tebless 1.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.