For Programmers: Free Programming Magazines  


Home > Archive > Tcl > May 2004 > tcl/tk periodic task









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/tk periodic task
jlinkels

2004-05-30, 1:17 pm

Greetings,

I am sure this is a very simple question, and the answer so obvious that no-one ever took the effort to post something about it :)

I want to write a simple user interface in Tk. It should show the status of a remote process. I want to query the remote process periodically (every 100 ms or so ) over a TCP connection. The Tk application should keep responding to events while waiting for the 100 ms to expire, or while waiting for the answer from the remote process.

I have a running application in TCL using TCP communication, no problem here.

I know how to set up a window and some widgets in Tk, no problem here either.

I just want to make my Tk app run a proc every 100 ms or so while the Tk GUI keeps responsive.

Any ideas?

Thanks
jlinkels
Sponsored Links







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

Copyright 2008 codecomments.com