Note depending on what you are doing it also may be necessary to update your display 
so graphics are updated/displayed correctly. You can accomplish this with update 
idletasks command. The below illustrates the concept.

#--------------------------------------------------------
proc delay {pause} {
        after $pause
        update idletasks     ;# update measurement graphics
        }
#--------------------------------------------------------

set pause 5000
...delay $pause

* Bryan Kelly
* Senior Model Development & Characterization Engineer
* Phone: (503) 520-2772        Fax: (503) 643-3361
* Analogy, Inc.      Web: http://www.analogy.com

                -----Original Message-----
                From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
                Sent:   Tuesday, January 18, 2000 11:03 AM
                To:     [EMAIL PROTECTED]
                Subject:        Re: [vtcl] Pause in TCL?


                Use "after ms [args1 args2 ...]"

                With no args, program will sleep for ms milliseconds.

                > 
                > I need to have my application pause for a second or two before it
                > continues on to it's next action.  I've been unable to find a pause 
or
                > wait command in TCL.  Is there one?  Does anyone know of an eloquent
                > solution?
                > 
                > Thanks
                > 
                > Otto
                > [EMAIL PROTECTED]
                > 
---------------------------------------------------------------------------
                > To unsubscribe from the Visual Tcl mailing list, please send a 
message
                > to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in 
the
                > message body (where [EMAIL PROTECTED] is your e-mail address).
                > 


                -- 
                Jason Sheu (�\�@��)
                Quantum Effect Design      Phone:408-565-0370 
                Suite 200                  Fax:  408-565-0335
                3255-3 Scott Blvd.         email:[EMAIL PROTECTED] 
                Santa Clara, CA 95054      WWW: http://www.qedinc.com/
                
---------------------------------------------------------------------------
                To unsubscribe from the Visual Tcl mailing list, please send a message
                to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
                message body (where [EMAIL PROTECTED] is your e-mail address).
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to