blob: 4c30756b8164537147a87571378bb427ef818eca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# ----------------------------------------------------------------------
# DEMO: watch in [incr Widgets]
# ----------------------------------------------------------------------
package require Iwidgets 4.0
set tk_strictMotif 1
iwidgets::watch .w -state disabled -showampm no -width 155 -height 155
pack .w -padx 10 -pady 10 -fill both -expand yes
proc fix_time {} {
if {! [winfo exists .w]} return
.w show
after 1000 fix_time
}
fix_time
|