setText()
Set the text in the area.
By default the area keeps its size, since its text often changes while in use.
Parameters
Once an object area has been created, you can use the following functions:
area.setText(text)
area.setText(text, resize)
| Parameter | Type | Default | Description |
|---|---|---|---|
text |
str |
required | The new contents of the area. |
resize |
bool |
False |
True to resize the area to fit the new text, or False to keep its current size. |