Practical Programming in Tcl and Tk (4th Edition)

   

Practical Programming in Tcl & Tk, Third Edition

By Brent B. Welch

Table of Contents
Chapter 48.  Tcl 7.4/Tk 4.0

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.


       
    Top
     

    Категории