Standard Dialogs

   

Practical Programming in Tcl & Tk, Third Edition
By Brent B. Welch

Table of Contents
Chapter 50.  Tcl 7.6/Tk 4.2


Several standard dialogs were added to Tk. These let you display alerts, prompt the user, choose colors, and select files using dialogs that are implemented in native look for each platform. For example, to ask the user a yes/no question:

 tk_messageBox -type yesno \     -message "Ok to proceed?" \     -icon question => yes 

To open an existing file:

 set file [tk_getOpenFile] 

The standard dialogs are described in Chapter 36 starting at page 515.


       
    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