Metadata-Version: 2.2
Name: xemonity
Version: 3.0
Summary: Libraly for simple menu with chosing
Home-page: https://github.com/MurzikYEET/Xemonity
Author: murzik_kukushnik
Author-email: siniykoshara@gmail.com
Project-URL: GitHub, https://github.com/MurzikYEET/Xemonity
Keywords: menu choose choice
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

# Xemonity
Xemonity - Python3 lib for simple choose menu ~~mained on pynput ~~
## How to use?
Code look as 
```python
import Xemonity #import lib
am = Xemonity.XemonityAM(elements=['one','two','three'],'Its a title') #make class with elements and title
result = am.show_sync() #show menu (only sync) and return choosed string as str()
print(result) #print result to screen
```
If you run this code, then you see next:
```
Test menu
>>One
Two
Three
:Cancel
```
`Test menu` is title. `>>` is choosen element. `:Cancel` for exit with output `:CANCELED` 
## Classes and methods
`Xemonity.XemonityAM(elements:list,title:str)`
Main class for menu
1. `XemonityAM.cursor` : int var : return a current selected element index
2. `XemonityAM.title` : str var : just a title, shows before elements
3. `XemonityAM.elements` : list var : list of elements (this is not recommended for modification)
4. `XemonityAM.relist(newlist:list)` : None func : change list of elements
5. `XemonityAM.show_sync()` : str func : show menu and return choosed element, if choosen ":Cancel" then method returns ":CANCELED"
Other methods not for you
## Credits
~~[https://pypi.org/user/moses.palmer/] : made pynput lib~~ Pynput not more used
## License
Licensed under MIT license
