The cget Operation

   

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
     



    Practical Programming in Tcl and Tk
    Practical Programming in Tcl and Tk (4th Edition)
    ISBN: 0130385603
    EAN: 2147483647
    Year: 1999
    Pages: 478

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net