[Tkinter-discuss] single button threading

Brill IanT woswwf at yahoo.co.uk
Sun Jun 17 22:41:25 CEST 2007


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.

       
---------------------------------
 Yahoo! Answers - Get better answers from someone who knows. Tryit now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20070617/200aed12/attachment.htm 


More information about the Tkinter-discuss mailing list