![]() |
ActiveTcl User Guide
|
![]() |
iwidgets::spintime - Create and manipulate time spinner widgets
iwidgets::spintime pathName ?options?
itk::Widget <- iwidgets::Spintime
background cursor foreground relief
options.
textBackground textFont
ciated options.
associated options.
arrowOrient repeatDelay repeatInterval
ated options.
ous spinners: n, e, s, or w. The default is w.
default is «Hour".
the forms acceptable to Tcl_GetBoolean. The default is true.
acceptable to Tcl_GetPixels. The default is 3 pixels.
forms acceptable to Tcl_GetBoolean. The default is true.
default is «Minute".
the forms acceptable to Tcl_GetBoolean. The default is true.
acceptable to Tcl_GetPixels. The default is 3 pixels.
ners: vertical or horizontal. The default is horizontal.
default is «Second"
the forms acceptable to Tcl_GetBoolean. The default is true.
acceptable to Tcl_GetPixels. The default is 3 pixels.
spinners is any of the forms accpetable to Tcl_GetPixels.
The default is 1 pixel.
_________________________________________________________________
in time value entry. The set includes an hour, minute, and sec- ond spinner widget.
name is pathName. This command may be used to invoke various operations on the widget. It has the following general form:
pathName option ?arg arg ...?
pathName cget option
option. Option may have any of the values accepted
by the iwid- gets::spintime command.
pathName configure ?option? ?value
option value ...?
option is specified, returns a list describing all of the
avail- able options for pathName (see
Tk_ConfigureInfo for information on the format of this
list). If option is specified with no value, then the
command returns a list describing the one named option (this list
will be identical to the corresponding sublist of the value
returned if no option is specified). If one or more
option-value pairs are specified, then the command modifies
the given widget option(s) to have the given value(s); in this case
the command returns an empty string. Option may have any of
the values accepted by the iwidgets::spintime command.
pathName get ?format?
of string or as an integer clock value using the -string and -clicks format options respectively. The default is by string.
time and its formats.
pathName show time
argument. The time may be specified either as a string, an inte- ger clock value or the keyword «now". Reference the clock com- mand for more information on obtaining times and its format.
the SpinInt widget manual entry for details on the hour
component item.
component item.
component item.
package require Iwidgets 4.0
iwidgets::spintime .st
pack .st -padx 10 -pady 10
spintime, spinint, spinner, entryfield, entry, widget