python bindings & gmainloop

Sean Meiners sean.meiners at
Wed Sep 14 15:11:54 PDT 2005

Is there any way, at all, to use the python bindings without the gmainloop?  
The reason I as is that I'm writing a couple of apps in pykde/qt and find 
that entering the gmainloop prevents the python interpreter from servicing 
any other threads (both python threads and QThreads).  I've worked around 
this issue temporarily by creating a function that sleeps for a short time 
and passing it to gobject.timeout_add.  This seems to give enough time back 
to the interpreter to service other threads, but it just doesn't feel like 
the right way to go about it (time-slicing is the kernel's job).  I would 
much prefer to use a python thread (or the Qt event loop if necessary) to 
service the dbus signal receivers. Is this currently possible?

Sean Meiners
sean.meiners at

Perl - $Just @when->$you ${thought} s/yn/tax/ &couldn\'t %get $worse;

More information about the dbus mailing list