proc flash {widget {fg black} bg red}} {
$widget getValues
-background old_bg -foreground old_fg
$widget setValues \
-background $bg -foreground $fg
wait 0.1
$widget setValues \
-background $old_bg -foreground $old_fg
}
.frm.text setValues \
-background lightGray \
-foreground #111
Each widget class defines which resources may be set, the resource types, and their accepted values.
name Class type value
current
home
up
down
left
right
next
next_tab_group
previous_tab_group
For information about usage of these resouces, see the Core(3X) reference page.