A slider widget is used to control the numeric value of a reactive variable that varies uniformly over some range.
tic_slider(
variable,
command,
from = 0,
to = 100,
bind = NULL,
pack = list(fill = "x"),
...
)reactive variable holding the slider value.
function to be invoked when slider value changes
numerical limits of the slider
bind commands to particular events on this element. This may be
a single result of bind_opts() or a list of them for multiple
events.
a named list of pack options for how to incorporate this element into its
parent container. Default: NULL means to use the standard packing.
See pack_opts() as a way of creating a valid list of pack options.
Other arguments are parsed as follows:
named argumentsFurther options to be used during the creation of this widget. See the tcl/tk documentation for all arguments possible for this widget.
unnamed argumentsContainer widgets (e.g. tic_frame()) treat any
unnamed arguments as child objects. Non-container widgets
(e.g tic_button()) will
raise an error if there are any unnamed widgets.
handle on the tcl/tk object. TODO: better language needed here.
The widget displays a slider that can be moved along over a trough, with the relative position of the slider over the trough indicating the value of the variable.
Note: In tcl/tk this widget is known as a ttk::scale widget.
See tcl/tk documentation for more information on this element https://www.tcl.tk/man/tcl8.6/TkCmd/ttk_scale.htm
Other widgets:
tic_button(),
tic_canvas(),
tic_checkbutton(),
tic_combobox(),
tic_label(),
tic_menubutton(),
tic_menuitem(),
tic_menu(),
tic_progressbar(),
tic_radiobutton(),
tic_separator(),
tic_sizegrip(),
tic_spinbox(),
tic_submenu(),
tic_textbox(),
tic_textentry()