[Tkinter-discuss] single button threading
Cameron Laird
Cameron at phaseit.net
Sun Jun 17 22:55:50 CEST 2007
On Sun, Jun 17, 2007 at 09:41:25PM +0100, Brill IanT wrote:
.
.
.
> I am writing an application which fetches and parses a large number of urls for hyperlinks.
>
> My problem is that when the prog is in the middle of the 'fetching' stage, the gui becomes almost completely unresponsive.
>
> This is not at all what I want. I want the user to be able to interact with the gui while this process is going on. Even if just one button, a 'stop' button, is the only thing working, I would be satisfied with that.
>
> Is there a way to perhaps thread a button or two while urllib2 is busy fetching a big list of urls? I ask this with some trepidation because I know how thread unfriendly tkinter is.
>
> If there is no solution to this, can anyone tell me if reconstructing the gui with wx would help with this matter? I don't want to do this because I am familiar with tk and find it far easier to work with, but I really have to find a way of solving this problem.
>
> Thank you very much for reading, and I hope someone can help me out.
.
.
.
There are several ways to achieve the responsiveness you describe
within Tkinter. I'll be tied up the next couple of days; I hope
an answer that delayed still helps you.
More information about the Tkinter-discuss
mailing list