setX()
Set the object's horizontal position.
button.setX(x)
Parameters
button.setX(x)
| Parameter | Type | Default | Description |
|---|---|---|---|
x |
int or float |
required | The new horizontal position, in pixels. |
Set the object's horizontal position.
button.setX(x)
button.setX(x)
| Parameter | Type | Default | Description |
|---|---|---|---|
x |
int or float |
required | The new horizontal position, in pixels. |