ChorusFruit-mani.f-0.0.1
توضیحات
This module is a replacement for curses module
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ChorusFruit-mani.f-0.0.1 |
| نام | ChorusFruit-mani.f |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Example Author <author@example.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ChorusFruit-mani.f/ |
| مجوز | - |
**This module is in alpha test!**
hi my name is mani, and i want to show you what you can do with 'ChorusFruit' python module
***This module is a replacement for curses module***
#Tutorial:
###Installation
****
you can just `pip install` it
or for source code You can download source code from [my Github](https:\\github.com\mani_farizi)
###Using it
****
#####First 'Hello World!'
Hello World is Very Simple
```python
#Importing module
import ChorusFruit
scr = ChorusFruit.Screen()
#Outputing on Screen with Y of 0 and x of 0
scr.write(0, 0, 'Hello World!')
#That means in First Line and First Column Type 'Hello World!'
```
or
```python
#Importing module
import ChorusFruit
def main(self)
#Outputing on Screen with Y of 0 and x of 0
self.write(0, 0, 'Hello World!')
#That means in First Line and First Column Type 'Hello World!'
ChorusFruit.RunDef(main)
#This Line Runs the Code
```
If You Want to print in Last Line you can
```python
self.write(None, None, 'Hello World!')
```
But If you Want to print on a X and Y you can
```python
self.write(X, Y, 'Hello World!')
```
#####Boxes and Lines
For crating a border around the screen you can
```python
self.boxborder('┌─┐││└─┘')
# With this Code You can Create a Border But if you resize the screen the code is not working corect
#for making it better you can
import ChorusFruit
def main(self):
while True:
self.boxborder('┌─┐││└─┘')
self.reset()
ChorusFruit.RunDef(main)
#This Code is Working Fine
```
```text
┌─────────────────────────────────────────────────────┐
│ │
│ │
│ │
│ │
│ │
│ │
└─────────────────────────────────────────────────────┘
```
it Works like this
For crating a box you can
```python
import ChorusFruit
def main(self):
self.box(0, 1, 10, 10, '┌─┐││└─┘')
ChorusFruit.RunDef(main)
```
This Code Returns this
```text
┌────────┐
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└────────┘
```
#####Others
Moving UP
```python
scr.UP()
```
Moving DOWN
```python
scr.DOWN()
```
Clearing Screen
```python
scr.clear()
```
writing a text with color:
```python
self.write(0, 0, 'This text is RED', 'fore_red')
```
##and so much More in the Future
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl ChorusFruit-mani.f-0.0.1:
pip install ChorusFruit-mani.f-0.0.1.whl
نصب پکیج tar.gz ChorusFruit-mani.f-0.0.1:
pip install ChorusFruit-mani.f-0.0.1.tar.gz