Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Tcl/Tk GUI and pthread
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


Report this thread to moderator Post Follow-up to this message
Old Post
randy1200
04-20-05 09:00 PM


Re: Tcl/Tk GUI and pthread
randy1200 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

Report this thread to moderator Post Follow-up to this message
Old Post
Ian Bell
04-21-05 09:00 PM


Re: Tcl/Tk GUI and pthread
According 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/ >

Report this thread to moderator Post Follow-up to this message
Old Post
lvirden@gmail.com
04-22-05 09:01 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:17 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.