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

dlg_comp_pos
dlg_comp_size
dlg_comp_color
dlg_comp_font
dlg_comp_name
dlg_comp_value
dlg_comp_callback