Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Keeping the user informed: A Tk/Threads question

by BrowserUk (Pope)
on Jul 07, 2004 at 15:35 UTC ( #372421=note: print w/replies, xml ) Need Help??


in reply to Keeping the user informed: A Tk/Threads question

There is nothing to stop you from using Tk and threads in the same program. Just don't use Tk on more than one thread.

I'd offer a some sample code to prove this, but I can't find a suitable Tk starting point. Lot's of sample code, but none that actually does anything other than maintain the interface.

If you can provide a sample app that puts up a window with a ProgressBar that actually move without manual intervention, then I'll modify it to run a long running process in a thread and have the progress bar update as a result.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon
  • Comment on Re: Keeping the user informed: A Tk/Threads question

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://372421]
help
Chatterbox?
[Corion]: I wonder, maybe the time is right to offer a CD burn service - you send the files, I burn them onto CD-R and mail it to whoever you specified. A printed CD costs extra ;)
[Corion]: Just because there are things that you can't do/share via Facebook. Or even better, you mail me the iPhoto / Facebook page and I create and mail a Photo CD from them ;)
[Discipulus]: where is the best place to fill in a cpan client bug?
[Corion]: Maybe the RT page of the CPAN module?
[Discipulus]: cdaas.com Corion?
[Corion]: Discipulus: Oooh, a nice name even ;)
[Discipulus]: in german even better (you put four cd in line, a bit overlapped): cdaas.com .. das cd

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-11-20 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (291 votes). Check out past polls.

    Notices?