[pygtk] Database query in a gobject.idle_add()?

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 10 08:02:24 WST 2009


Kim Adil wrote:
> Would you advise implementing the database 
> query using gobject.idle_add() or just create a separate thread 
> (gtk.threads_enter(), gtk.threads_leave(),etc)?

I would recommend using gobject.idle_add() if at all
possible. Best to avoid the hassles of dealing with
threads in a GUI context if you can.

-- 
Greg


More information about the pygtk mailing list