Skip to main content

Prints a framed title

Project description

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

Project details


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)

Uploaded Source

Built Distribution

framed_title-0.0.3-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page