dooberwah has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on writing an application that uses Tk for it's GUI. One of the functions of the program is to download content from a webpage. So far this is all fine and good, Tk handles the GUI and LWP takes care of the webpage-fetching. The problem is that while the webpage is being downloaded the Tk interface freezes up. It stops handling input or output and just turns into an annoying blob of a window. I'd like to know a way to download my webpage, while at the same time keeping the functionality of my Tk program intact.
I sifted through various nodes on in the monastary and looked at some modules on CPAN, but I couldn't find what I was looking for. Actually, it's not that I couldn't find what I was looking for; it was that I didn't know exactly what I was looking for. Two things that looked nice were Parallel::ForkManager and fork. Unfortunetaly I havn't used either, and I don't know their pro's and cons.
If you have any advice for me it would be more than welcome. Thanks.
-Ben Jacobs (dooberwah)
http://dooberwah.perlmonk.org
"one thing i can tell you is you got to be free"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Threading Tk
by {NULE} (Hermit) on May 17, 2002 at 23:40 UTC | |
|
Re: Threading Tk
by DamnDirtyApe (Curate) on May 18, 2002 at 21:58 UTC |