My Tkinter Threading nightmare

Aahz aahz at pythoncraft.com
Thu Jan 25 10:26:13 EST 2007


In article <7xejpjuvwe.fsf at ruckus.brouhaha.com>,
Paul Rubin  <http://phr.cx@NOSPAM.invalid> wrote:
>
>   self.progressWindow.protocol('WM_DELETE_WINDOW', self.callback)
>
>becomes
>
>   gui.cmd_queue.put(self.progressWindow.protocol,
>                      ('WM_DELETE_WINDOW', self.callback))
>
>where gui is the Window object containing your gui.
>
>I think there are some recipes like this in ASPN, that give more
>detail about how to do this stuff.

You can find a simple example at http://pythoncraft.com/ in the threads
tutorial.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Help a hearing-impaired person: http://rule6.info/hearing.html



More information about the Python-list mailing list