ttk::spinbox(3tk) | Tk Themed Widget | ttk::spinbox(3tk) |
ttk::spinbox - Selecting text field widget
ttk::spinbox pathName ?options?
A ttk::spinbox widget is a ttk::entry widget with built-in up and down buttons that are used to either modify a numeric value or to select among a set of values. The widget implements all the features of the ttk::entry widget including support of the -textvariable option to link the value displayed by the widget to a Tcl variable.
-class -cursor -state -style -takefocus -xscrollcommand
See the ttk_widget manual entry for details on the standard options.
-validate -validatecommand
See the ttk_entry manual entry for details on the standard options.
Command-Line Name: -command Database Name: command Database Class: Command
Command-Line Name: -format Database Name: format Database Class: Format
Command-Line Name: -from Database Name: from Database Class: From
Command-Line Name: -increment Database Name: increment Database Class: Increment
Command-Line Name: -to Database Name: to Database Class: To
Command-Line Name: -values Database Name: values Database Class: Values
Command-Line Name: -wrap Database Name: wrap Database Class: Wrap
See the ttk::entry manual for information about indexing characters.
See the ttk::entry manual for information about using the -validate and -validatecommand options.
The following subcommands are possible for spinbox widgets in addition to the commands described for the ttk::entry widget:
The spinbox widget generates a <<Increment>> virtual event when the user presses <Up>, and a <<Decrement>> virtual event when the user presses <Down>.
The class name for a ttk::spinbox is TSpinbox.
Dynamic states: active, disabled, focus, readonly.
TSpinbox styling options configurable with ttk::style are:
-arrowcolor color
-arrowsize amount
-background color
Some options are only available for specific themes.
See the ttk::style manual page for information on how to configure ttk styles.
entry, spinbox, widget, text field
8.5 | Tk |