[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] dbus and PyKDE
From:       Jonathan Riddell <jriddell () ubuntu ! com>
Date:       2008-04-01 14:44:01
Message-ID: 20080401144401.GE3001 () muse ! 19inch ! net
[Download RAW message or body]

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
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic