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 hashes)
Built Distribution
Close
Hashes for framed_title-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ba194684f21dc0f2cff24c888d1eafe103a804873be8bb2359678a82846616 |
|
MD5 | 0b4c8dd6b1a25e338eb54281d75d7570 |
|
BLAKE2b-256 | aa8f461cfe285747ecd2fb6502ac6762233f8168336bc91585b52390f8704b9e |