![]() |
![]()
| ![]() |
![]()
NAMEttk::spinbox - Selecting text field widget SYNOPSISttk::spinbox pathName ?options? DESCRIPTIONA 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. STANDARD OPTIONS-class -cursor -state -style -takefocus -xscrollcommand See the ttk_widget manual entry for details on the standard options. STANDARD OPTIONS-validate -validatecommand See the ttk_entry manual entry for details on the standard options. WIDGET-SPECIFIC OPTIONSCommand-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
INDICESSee the ttk::entry manual for information about indexing characters. VALIDATIONSee the ttk::entry manual for information about using the -validate and -validatecommand options. WIDGET COMMANDThe following subcommands are possible for spinbox widgets in addition to the commands described for the ttk::entry widget:
VIRTUAL EVENTSThe spinbox widget generates a <<Increment>> virtual event when the user presses <Up>, and a <<Decrement>> virtual event when the user presses <Down>. STYLING OPTIONSThe class name for a ttk::spinbox is TSpinbox. Dynamic states: active, disabled, focus, readonly. TSpinbox styling options configurable with ttk::style are: -arrowcolor color
For backwards compatibility, when using the aqua theme
(for macOS), this option behaves as an alias for the -fieldbackground
provided that no value is specified for -fieldbackground. Otherwise it
is ignored.
-bordercolor color
-darkcolor color -fieldbackground color -foreground color -insertcolor color -insertwidth amount -lightcolor color -padding padding -selectbackground color -selectforeground color Some options are only available for specific themes. See the ttk::style manual page for information on how to configure ttk styles. SEE ALSOttk::widget(n), ttk::entry(n), spinbox(n) KEYWORDSentry, spinbox, widget, text field
|