Sets the position of a component within a dialog.
If `y` is `-1`, the component is placed at the same position as the last one. If no position is specified, components are placed below the last one.
planetcnc.dlg_comp_pos(component, x=None, y=None)
#! /usr/bin/env python import planetcnc # Move a component to position (50, 100) planetcnc.dlg_comp_pos(my_component, 50, 100) print("Component moved to (50, 100).") # Keep the same X position but place the component below the last one planetcnc.dlg_comp_pos(my_component, y=-1) print("Component positioned below the last one.")