Skip to content

pyui.create_slider

fabian-flassig edited this page Jul 31, 2026 · 2 revisions

Create a slider for the user to select an integer value within a range by dragging a handle.

pyui.create_slider(dialog, col_spec)
dialog:create_slider(col_spec)

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.

Return value

Type Description
control_handle A handle to the newly created control

Note

Use set_control_range to define the value range of the slider. When the user moves the slider, the on_change handler is called.

See also

Control Gallery, set_control_range, set_on_change_handler, create_text_spin

Clone this wiki locally