For Programmers: Free Programming Magazines  


Home > Archive > Tcl > April 2005 > Tcl_SetVar and Looping









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Tcl_SetVar and Looping
randy1200

2005-04-20, 4:00 am

I have a Tcl/Tk GUI and a C library.

I can click a button on the GUI to call a C library function. The C
library function calculates a value, and writes the value back to an entry
box textvariable with Tcl_SetVar. This works great:

Tcl_SetVar(interp, "valAlignment", s, 0);

One of my C functions loops once a second, then writes back to 6 different
textvariables. I'm only seeing the updates from the loops maybe once every
10 seconds. Is there a way "flush" Tcl_SetVar from the C library, so that
I see every update?

Thanks,
Randy


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com