pyui.set_control_selection - pytha-3d-cad/pytha-lua-api GitHub Wiki

Selects a given item in a control (for those controls that allow item selection).

pyui.set_control_selection(control, index)
control:set_control_selection(index)

Parameters

Type Description
control control_handle Control handle
index integer Index of the item to be selected

Return value

None

Note

The on_change handler is not invoked when the index is changed programmatically with this function.

See also

Control Gallery, insert_control_item, set_control_text, set_on_change_handler, create_text_box, create_label