1.2. pymilestone.caption.py

Module containing the class for the Caption.

class pymilestone.caption.Caption(text, lines=1)

Class for the caption.

Parameters
  • text (str) – Text of the caption. Linebreaks must be added manually by inserting \n into the string.

  • lines (int, optional) – Number of lines. Defines the height of the caption. Must be adjusted, if line breaks are added.

lines

Number of lines. Defines the height of the caption.

text

Text of the caption.

type

The element type.