Code Comments
Programming Forum and web based access to our favorite programming groups.I have a Tcl/Tk GUI. The GUI needs to be able to accept updates to entry boxes once a second from a pthread running in a C library. Any pointers on how to get started with this? I tried Tcl_SetVar(), then calling an update back in the Tcl/Tk code, but I'm missing too many updates. Sometimes, as long as 30 seconds between updates appearing in the entry box on the GUI. Thanks, Randy
Post Follow-up to this messagerandy1200 wrote: > I have a Tcl/Tk GUI. > > The GUI needs to be able to accept updates to entry boxes once a second > from a pthread running in a C library. > Maybe I am missing something, but an entry is primarily intended for user input - why do you need to update it once a second? Are you sure it is an entry you should be updating? Ian
Post Follow-up to this messageAccording to Ian Bell <ruffrecords@yahoo.com>: :randy1200 wrote: :> The GUI needs to be able to accept updates to entry boxes once a second :> from a pthread running in a C library. :> :Maybe I am missing something, but an entry is primarily intended for user :input - why do you need to update it once a second? Are you sure it is an :entry you should be updating? I sure hope there is not much more than one or maybe at most two characters in that entry box - because otherwise, by the time someone tries to type something in the entry box, your pthread once a second update will have reset it to whatever value it has been using... -- <URL: http://wiki.tcl.tk/ > MP3 ID tag repair < http://www.fixtunes.com/?C=17038[/<...rg/NET/lvirden/ >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.