Prints a framed title
Project description
Framed Title
Prints a framed title
Install
pip install framed_title
Examples
-
Example 1
a = FramedTitle(['Framed Title', 'Longer subtitle in the 2nd row']) a.show()
-
Example 2
b = FramedTitle( ['Framed Title', 'Longer subtitle in the 2nd row'], 'double_stroke', ['green', 'dark'], 'black', bg_color='yellow') b.show()
-
Example 3
c = FramedTitle( ['Framed Title', 'Longer subtitle in the 2nd row'], 'stroke', 'red', text_align='right', padding=0) c.show()
-
Example 4
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
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 for color values
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
framed_title-0.0.3.tar.gz
(22.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file framed_title-0.0.3.tar.gz.
File metadata
- Download URL: framed_title-0.0.3.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdd454cb1f6bc723c2bf923c032ca779eaac2823c1c8df9c58a02add1b717057
|
|
| MD5 |
649fca6b72542aedbbc5f53f3797fa5f
|
|
| BLAKE2b-256 |
e0f80ce78a8d1b41183e22187fbe5e9c0c61f78a65d6ccab2eb165881ffadd68
|
File details
Details for the file framed_title-0.0.3-py3-none-any.whl.
File metadata
- Download URL: framed_title-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69ba194684f21dc0f2cff24c888d1eafe103a804873be8bb2359678a82846616
|
|
| MD5 |
0b4c8dd6b1a25e338eb54281d75d7570
|
|
| BLAKE2b-256 |
aa8f461cfe285747ecd2fb6502ac6762233f8168336bc91585b52390f8704b9e
|