ActiveTcl User Guide
|
||
iwidgets::watch pathName ?options? itk::Widget <- iwid- gets::Watch
background cursor foreground relief
tions. See the Canvas manual entry for details on the above associated options.
the forms acceptable to Tk_GetColor. The default is White".
forms acceptable to Tk_GetBitmap. The default is ".
ceptable to Tk_GetPixels. The default height is 175 pixels.
dius from the center to the out perimeter of the clock. The val- ue 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".
tate as a percentage of the radius. The value must be a fraction
<= 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".
ceptable to Tk_GetPixels. The default height is 155 pixels. _________________________________________________________________
and second hands modifying the time value.
is pathName. This command may be used to invoke various opera- tions on the widget. It has the following general form:
pathName option ?arg arg ...?
pathName cget option Returns the current value of the configura- tion option given by option. Option may have any of the values accepted by the iwidgets::watch command. pathName configure ?op- tion? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_Con*- figureInfo for information on the format of this list). If op- tion 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 iwid*- gets::watch command. pathName get ?format? Returns the current time of the watch in a format of string or as an integer clock value using the -string and -clicks format options respectively.
information on obtaining time and its formats. pathName show time Changes the currently displayed time to be that of the 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 time and its format. pathName watch ?args? Evaluates the specifieds args against the canvas component.
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.
package require Iwidgets 4.0
iwidgets::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
}