Skip to main content

Framed Title

PyPI PyPI - Downloads GitHub

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_01

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

    example_02

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

    example_03

  • 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()
    

    example_04

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

Release files for framed-title 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for framed-title 0.0.3
File Size Uploaded
framed_title-0.0.3.tar.gz 22.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for framed-title 0.0.3
File Interpreter ABI Platform
framed_title-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 26.3 kB

Release files / framed_title-0.0.3.tar.gz

Download URL framed_title-0.0.3.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cdd454cb1f6bc723c2bf923c032ca779eaac2823c1c8df9c58a02add1b717057
BLAKE2b-256 checksum
How to use checksums
e0f80ce78a8d1b41183e22187fbe5e9c0c61f78a65d6ccab2eb165881ffadd68
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / framed_title-0.0.3-py3-none-any.whl

Download URL framed_title-0.0.3-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69ba194684f21dc0f2cff24c888d1eafe103a804873be8bb2359678a82846616
BLAKE2b-256 checksum
How to use checksums
aa8f461cfe285747ecd2fb6502ac6762233f8168336bc91585b52390f8704b9e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page