[PyQt] PyQt4 dbus mainloop assertion error

Simon Edwards simon at simonzone.com
Wed Apr 25 19:13:38 BST 2007


Hi,

Ingmar Steen wrote:
> I'm trying to use the new PyQt4 dbus mainloop, but it crashes with an
> assertion error when I try to get an object from the bus. I'm using Sip 
> 4.6,
> PyQt4.2, Qt 4.2.3, Python 2.5.1, DBus 1.0.2 and dbus-python 0.80.1. Am I
> doing something fundamentally insane or wrong?
> 
> If I remove the QDBusQtMainLoop(set_as_default=True) line, it works just
> fine. The assertion also happens if app.exec_() and get the bus object from
> a QTimer event.

Here is some code which works for me. You'll have to strip it down 
yourself though. I'm lazy like that. ;-)

cheers,

-- 
Simon Edwards             | KDE-NL, Guidance tools, Guarddog Firewall
simon at simonzone.com       | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watchdogserver.py
Type: text/x-python
Size: 2884 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070425/b19ecd44/watchdogserver.py


More information about the PyQt mailing list