add method

On this page

add

Adds a formatted text fragment to the collection.

def add(self, text):
    ...
Parameter Type Description
text str The fragment text.

add

Adds a formatted text fragment to the collection.

def add(self, text, font):
    ...
Parameter Type Description
text str The fragment text.
font Font The font of the text.

add

Adds a formatted text fragment to the collection.

def add(self, text, font, foreground_color):
    ...
Parameter Type Description
text str The fragment text.
font Font The font of the text.
foreground_color Color The foreground color of the text.

add

Adds a formatted text fragment to the collection.

def add(self, text, font, foreground_color, background_color):
    ...
Parameter Type Description
text str The fragment text.
font Font The font of the text.
foreground_color Color The foreground color of the text.
background_color Color The background color of the text.

See Also

On this page