[ Team LiB ] Previous Section Next Section

The cget Operation

All widgets support a cget operation that returns the current value of the specified configuration option. The following two commands are equivalent:

lindex [$w config option] 4
$w cget option

Nothing breaks with this change, but you should enjoy this feature.

    [ Team LiB ] Previous Section Next Section