setAlignment()
Set how the label's text lines up.
Parameters
Once an object label has been created, you can use the following function:
label.setAlignment(alignment)
| Parameter | Type | Default | Description |
|---|---|---|---|
alignment |
int |
required | The text alignment, one of LEFT, CENTER, or RIGHT. |