Label¶
-
class
pdfpug.modules.
Label
(**kwargs)¶ Label are useful for depicting classification categories and are analogous to tags. A group of labels are by default displayed horizontally. They can be customized in various colors and types.
>>> from pdfpug.modules.Label >>> from pdfpug.common import Color, LabelType >>> category = Label(text='Documentation', color=Color.blue) >>> tag = Label(text="v1.0", label_type=LabelType.tag)
Note
Do not mistake a Label element for UI labels that display paragraphs of text! That use case is covered by
Paragraph
element.Parameters: