dlg_comp_size()
Sets the size of a component within a dialog.
Syntax
planetcnc.dlg_comp_size(component, width=None, height=None)
Parameters
| Parameter | Type | Description | Comment |
| component | capsule | Capsule object representing the component. | |
| width | int | Width of the component (optional). | optional |
| height | int | Height of the component (optional). | optional |
Return Value
Examples
#! /usr/bin/env python
import planetcnc
# Set a component size to 200x100
planetcnc.dlg_comp_size(my_component, 200, 100)
print("Component resized to 200x100.")
See also