framed-title-0.0.3
توضیحات
Prints a framed title
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | framed-title-0.0.3 |
| نام | framed-title |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | xelorabb |
| ایمیل نویسنده | xelorabb@gmail.com |
| آدرس صفحه اصلی | https://github.com/xelorabb/framed_title |
| آدرس اینترنتی | https://pypi.org/project/framed-title/ |
| مجوز | MIT |
## Framed Title
[](https://pypi.org/project/framed_title/)
[]((https://pypi.org/project/framed_title/))
[](https://github.com/xelorabb/framed_title/blob/master/LICENSE)
Prints a framed title
#### Install
`pip install framed_title`
#### Examples
* ##### Example 1
```python
a = FramedTitle(['Framed Title', 'Longer subtitle in the 2nd row'])
a.show()
```

* ##### Example 2
```python
b = FramedTitle(
['Framed Title', 'Longer subtitle in the 2nd row'],
'double_stroke',
['green', 'dark'],
'black',
bg_color='yellow')
b.show()
```

* ##### Example 3
```python
c = FramedTitle(
['Framed Title', 'Longer subtitle in the 2nd row'],
'stroke',
'red',
text_align='right',
padding=0)
c.show()
```

* ##### Example 4
```python
d = FramedTitle(
['Framed Title', 'Longer subtitle in the 2nd row'],
'simple',
['cyan', 'dark'],
['blue', 'dark'],
'left',
'gray')
d.set_margin(2,4,2,4)
d.set_padding(2,4)
d.show()
# OR #################################
d = FramedTitle(
['Framed Title', 'Longer subtitle in the 2nd row'],
'simple',
['cyan', 'dark'],
['blue', 'dark'],
'left',
'gray',
[2, 4, 2, 4],
[2, 4])
d.show()
```

#### Constructor Arguments
```python
def __init__(self,
titles,
frame_type = 'hash',
frame_color = 'white',
text_color = 'white',
text_align = 'center',
bg_color = None,
margin = 0,
padding = 1
):
```
###### Argument Values
* `frame_type`: [ _stroke_ | _double_stroke_ | _simple_ | _hash_ ]
* `text_align`: [ _left_ | _center_ | _right_ ]
* See [here](https://github.com/xelorabb/yatts#color-palette) for color values
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.0 | yatts |
نحوه نصب
نصب پکیج whl framed-title-0.0.3:
pip install framed-title-0.0.3.whl
نصب پکیج tar.gz framed-title-0.0.3:
pip install framed-title-0.0.3.tar.gz