ttk::spinbox
Selecting text field widget
- Provided by: tk8.6-doc (Version: 8.6.1-3ubuntu2)
- Source: tk8.6
- Report a bug
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 -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: -from Database Name: from Database Class: From
Command-Line Name: -to Database Name: to Database Class: To
Command-Line Name: -increment Database Name: increment Database Class: Increment
Command-Line Name: -values Database Name: values Database Class: Values
Command-Line Name: -wrap Database Name: wrap Database Class: Wrap
Command-Line Name: -format Database Name: format Database Class: Format
Command-Line Name: -command Database Name: command Database Class: Command
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>.
entry, spinbox, widget, text field