Border#

class Border[source]#

Class Border which represents the border of a frame. By default, there is no border i.e. all pens have an extent of 0.0

__init__(top_pen: ~PDFReport.pen.Pen = <PDFReport.pen.Pen object>, left_pen: ~PDFReport.pen.Pen = <PDFReport.pen.Pen object>, right_pen: ~PDFReport.pen.Pen = <PDFReport.pen.Pen object>, bottom_pen: ~PDFReport.pen.Pen = <PDFReport.pen.Pen object>)[source]#

Defines a new border with the given pens. All parameters are optional. Default is no borderlines at all.

Parameters:
  • top_pen – Pen object for the top line

  • left_pen – Pen object for the left line

  • right_pen – Pen object for the right line

  • bottom_pen – Pen object for the bottom line

property top_pen: Pen#

The pen object of the top borderline

Getter:

Returns the pen of the top borderline

Setter:

Sets the pen for the top borderline

property left_pen: Pen#

The pen object of the left borderline

Getter:

Returns the pen of the left borderline

Setter:

Sets the pen for the left borderline

property right_pen: Pen#

The pen object of the right borderline

Getter:

Returns the pen of the right borderline

Setter:

Sets the pen for the right borderline

property bottom_pen: Pen#

The pen object of the bottom borderline

Getter:

Returns the pen of the bottom borderline

Setter:

Sets the pen for the bottom borderline