Hi, I have been going of the archive for a while now and I cant seem to
get this sorted.

I have an app, it dynamically impotts modules depending on the users
actions, and some (one of these) include modules that try to use
threads.

the main py prog does this:

#!/usr/bin/env python2
import threading
import sys
import gnome.ui
import gtk
from GearBox import *

gtk.threads_init()
gtk.threads_enter()

if __name__ == '__main__':
        app = GearBox()
        gtk.mainloop()
        gtk.threads_leave()

Now when I start teh module with the thread from teh main app the
gnome-system-monitor shows the thread, so it all looks good.  Then I
click on a ui button that askas the thread to update teh display (a tree
view) and teh whole UI freezes until it is done.

Argh! 

How do I get the thread to churn away updating teh view one row at a
time (the whole thing takes about 5 seconds)?  Is the problem that the
hole thing is in another module? 

Also, should I (can I) destroy the thread once the display is updated
and create a new one next tiem?  at the moment the thread just hangs
around waiting to be told to update the display.

Thanks

-- 

*
*  Rob Brown-Bayliss
*
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to