Python decorators on dbus hotplugging

Frank Aune Frank.Aune at broadpark.no
Fri Oct 24 00:21:54 PDT 2008


On Thursday 23 October 2008 17:13:37 Rendy Anthony wrote:
> Hi,
>
> You need to add "gobject.threads_init()" before running your mainloop if
> you use threading in your application. This enables threading in the
> gobject module.
>
> Hope it helps.
>
> Regards,
> Rendy Anthony

Hi,

And thanks for the tip - however gobject was used in the attached example to 
set up a mainloop. In my application I'm using the wxPython mainloop and I 
use	

from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)

to get dbus to play along with wx mainloop. The result is the same as 
described in the attached example. Is there any similar option I have for 
this kind of setup?

Regards,
Frank


More information about the dbus mailing list