watch - Create and manipulate time with a watch widgets
watch pathName ?options?
itk::Widget <- Watch
background cursor foreground relief
options.
options.
the forms acceptable to Tk_GetColor. The default is «White".
forms acceptable to Tk_GetBitmap. The default is «".
acceptable to Tk_GetPixels. The default height is 175 pixels.
radius from the center to the out perimeter of the clock. The value must be a fraction <= 1. The default is «.5".
radius from the center to the out perimeter of the clock. The value must be a fraction <= 1. The default is «.8".
of the forms acceptable to Tk_GetColor. The default is «White".
rotate as a percentage of the radius. The value must be a frac-
tion <= 1. The default is «.1".
radius from the center to the out perimeter of the clock. The value must be a fraction <= 1. The default is «.9".
any of the forms acceptable to Tcl_GetBoolean. The default is
yes.
normal state, the user can select and move the hands via mouse
button 1. The valid values are normal, and disabled. The defult
is normal.
any of the forms acceptable to Tk_GetColor. The default is
«Black".
acceptable to Tk_GetPixels. The default height is 155 pixels. _________________________________________________________________
hands modifying the time value.
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 watch
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 watch command.
pathName get ?format?
an integer clock value using the -string and -clicks format
options respectively. The default is by string. Reference the
clock command for more information on obtaining time and its for-
mats.
pathName show time
ment. The time may be specified either as a string, an integer
clock value or the keyword «now". Reference the clock command
for more information on obtaining time and its format.
pathName watch ?args?
are displayed. See the Frame widget manual entry for details.
«AM". See the Radiobutton widget manual entry for details.
«PM". See the Radiobutton widget manual entry for details.
watch .w -state disabled -showampm no -width 155 -height 155 pack .w -padx 10 -pady 10 -fill both -expand yes
while {1} {
after 1000
.w show
update
}
watch, hand, ticks, pivot, widget