[wxPython-users] Using DBUS in wxPython applications
Frank Aune
Frank.Aune at broadpark.no
Sat Nov 10 14:22:09 PST 2007
On Saturday 10 November 2007 23:01:01 Frank Aune wrote:
> Hi,
>
> Is it possible to use DBUS messaging in a wxPython application? I can't
> find examples on how to integrate the dbus mainloop into wx.App mainloop,
> or some other way of doing it.
>
> Best regards,
> Frank
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
Answering myself:
Just call
def initDBUS(self):
gobject.threads_init()
dbus.glib.threads_init()
from somewhere in your application, and your dbus connections will work fine
in a separate thread.
Cheers,
Frank
More information about the wxpython-users
mailing list