Metadata-Version: 2.1
Name: MyTUI
Version: 1.0.8
Summary: Easily create terminal user interface containing menus, text boxes and input fields for your projects
Author: Paulin-Dev
Project-URL: Homepage, https://github.com/Paulin-Dev/TUI
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: getkey
Copyright (c) 2022 Paulin-Dev.
Contact (Discord) : `Pekkos#9809`
MyTUI simplies for both users and developers terminal experience. It is inspired by the interface of the Rasberry Pi Software Configuration Tool (raspi-config). It is fully responsive to work with any terminals' size. It provides quick-to-implement functions to create interfaces such as :
- Text Boxes
- Menus
- Input Fields
- Yes/No Choice
Please note that it is still in development. There is no guarantee that everything will perfectly work.
If you have issues or ideas for this package, please contact the author.
## Requirements
Python 3 (not tested under version 3.6)
[getkey](https://pypi.org/project/getkey/) Package to get user's input
## Getting started
You won't need to import extra modules to make it work, simply import the MyTUI class and use its methods to create interfaces. These methods will return the output if there is one. You can then use the user's response to do whatever you want.
## Examples
As already mentioned, there are 4 different types of interface available at the moment plus the configuration. Here is how to use them.
### Config
You can use the `config` method to configure some options.
```python
from mytui import MyTUI
MyTUI.config(
text_center=True,
can_quit=True,
quit_key='q'
)
```
*You can always change this later*
The quit key will exit the program. The "back" string will be returned if the user presses escape.
### Text Box
This is the most basic interface, it creates a simple text box with its title and text. Press `Enter` to exit.
It returns `None`.
```python
from mytui import MyTUI
MyTUI.textbox(title="Your Title", text="Your text")
```
*you can use `\n` in the text fields*
Output :



