Metadata-Version: 1.1
Name: tebless
Version: 1.1.3.dev8
Summary: This library is a collection of widgets that supported from blessed
Home-page: https://github.com/Akhail/Tebless
Author: Michel Betancourt
Author-email: MichelBetancourt23@gmail.com
License: MIT
Download-URL: https://github.com/Akhail/Tebless/tarball/1.0
Description-Content-Type: UNKNOWN
Description: # Tebless
        [![Maintenance](https://img.shields.io/maintenance/yes/2017.svg?style=flat-square&colorB=19BC9D)]()
        [![PyPI](https://img.shields.io/pypi/v/tebless.svg?style=flat-square)](https://pypi.python.org/pypi?:action=display&name=tebless&version=1.1.1.dev3)
        [![Github All Releases](https://img.shields.io/github/downloads/akhail/tebless/total.svg?style=flat-square&colorB=F0A30A)]()
        [![GitHub tag](https://img.shields.io/github/tag/akhail/tebless.svg?style=flat-square)](https://github.com/Akhail/Tebless/tags)
        [![Issues](https://img.shields.io/github/issues-raw/akhail/tebless.svg?style=flat-square)](https://github.com/Akhail/Tebless/issues)
        [![PyPI](https://img.shields.io/pypi/l/tebless.svg?style=flat-square&colorB=9A59B5)](https://github.com/Akhail/Tebless/blob/master/LICENSE)
        
        This library is a collection of widgets that supported from blessed allows to create interfaces in a simple way based on events.
        
        ## Table of contents
        - [Tebless](#tebless)
            - [Table of contents](#table-of-contents)
            - [How to install](#how-to-install)
            - [Example of usage](#example-of-usage)
            - [License](#license)
            - [Authors](#authors)
        ## How to install
        
        ```bash
        pip install tebless
        ```
        
        ## Example of usage
        This will render a label containing the text 'Hello world!', centered horizontally and vertically.
        
        ```python
        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
        
        ```python
        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()
        ```
        
        ## License
        Tebless is MIT licensed. See the [LICENSE](LICENSE) for details.
        
        ## Authors
        Please see the [AUTHORS](AUTHORS)
        
        
Keywords: cli
python
widgets
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console :: Curses
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
