awsc.termui.control.Border

class awsc.termui.control.Border(style=None, color=None, title=None, title_color=None, title_info=None, title_info_color=None)

Defines the border of a control.

Attributes:
styleawsc.termui.control.BorderStyle

The border style character set.

colorawsc.termui.color.Color

The color of the border.

titlestrs

The main title to display in the title bar of the border.

title_colorawsc.termui.color.Color

The color of the main title text.

title_infostr

The additional information to display in the title bar of the border.

title_info_colorawsc.termui.color.Color

The color of the additional title info text.

Methods

paint(block)

Paint hook for a border.

__init__(style=None, color=None, title=None, title_color=None, title_info=None, title_info_color=None)

Initializes a Border object.

Parameters:
styleawsc.termui.control.BorderStyle

The border style character set.

colorawsc.termui.color.Color

The color of the border.

titlestr, optional

The main title to display in the title bar of the border.

title_colorawsc.termui.color.Color, optional

The color of the main title text.

title_infostr, optional

The additional information to display in the title bar of the border.

title_info_colorawsc.termui.color.Color, optional

The color of the additional title info text.

Methods

__init__([style, color, title, title_color, ...])

Initializes a Border object.

paint(block)

Paint hook for a border.