add method
Leave feedback
On this page
Adds a formatted text fragment to the collection.
def add(self, text):
...
| Parameter | Type | Description |
|---|---|---|
| text | str |
The fragment text. |
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. |
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. |
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. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.