[PyQt] dbus and PyKDE

Jonathan Riddell jriddell at ubuntu.com
Tue Apr 1 15:44:01 BST 2008


On Sun, Mar 30, 2008 at 08:12:07PM -0800, Jim Bublitz wrote:
> On Thursday 27 March 2008 10:11, Jonathan Riddell wrote:
> > I'm trying to get a printer applet into KDE (see kde-core-devel),
> > however I can't actually use pyKDE because oxygen style and
> > KApplication load QtDbus which causes the application to freeze when
> > I'm using python-dbus.
> >
> > For example this app freezes when using KApplication but not when
> > using QApplication.
> >
> > http://kubuntu.org/~jriddell/tmp/minimal.py
> >
> > Does anyone have any ideas on how to work around this?
> 
> I get the same result for KApplication as QApplication (exception, no hang) if 
> I make set_as_default=False in the statement that sets up mainloop. Seems to 
> make no difference which way it's set with QApplication.

Right, with QApplication QtDbus doesn't get loaded and everything
works, with KApplication QtDbus does get loaded and it freezes if
using python-dbus with the Qt mainloop (setting set_as_default=False
makes it use the glib mainloop, no freeze but you won't get any dbus
signals either).

Trolltech tell me they can't recreate it in Qt 4.4 RC 1 so maybe this
has been magically fixed, we should find out tomorrow.

Jonthan


More information about the PyQt mailing list