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

Create an editable text box or edit control with spin buttons. This text box type is preferentially used for the input of integers.

pyui.create_text_spin(dialog, col_spec [,text])
dialog:create_text_spin(col_spec [,text])

Parameters

Type Description
dialog dialog_handle Dialog where the control is created
col_spec integer or {first, last} Index of the column or specification of the column-span, where the control is placed.
text string Optional: Initial text-content of the control

Return value

Type Description
control_handle A handle to the newly created control

Note

When the user changes the text in the control, the on_change handler is called.

By default the range of the spin button is set from 1 to 100. To change this range use set_control_range.

See also

Control Gallery, set_control_text, set_control_range, set_on_change_handler, create_text_display, create_label