On 4/25/07, <b class="gmail_sendername">Simon Edwards</b> &lt;<a href="mailto:simon@simonzone.com">simon@simonzone.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>Ingmar Steen wrote:<br>&gt; I&#39;m trying to use the new PyQt4 dbus mainloop, but it crashes with an<br>&gt; assertion error when I try to get an object from the bus. I&#39;m using Sip<br>&gt; 4.6,<br>&gt; PyQt4.2
, Qt 4.2.3, Python 2.5.1, DBus 1.0.2 and dbus-python 0.80.1. Am I<br>&gt; doing something fundamentally insane or wrong?<br>&gt;<br>&gt; If I remove the QDBusQtMainLoop(set_as_default=True) line, it works just<br>&gt; fine. The assertion also happens if 
app.exec_() and get the bus object from<br>&gt; a QTimer event.<br><br>Here is some code which works for me. You&#39;ll have to strip it down<br>yourself though. I&#39;m lazy like that. ;-)<br><br>cheers,<br><br>--<br>Simon Edwards&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | KDE-NL, Guidance tools, Guarddog Firewall
<br><a href="mailto:simon@simonzone.com">simon@simonzone.com</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <a href="http://www.simonzone.com/software/">http://www.simonzone.com/software/</a><br>Nijmegen, The Netherlands | &quot;ZooTV? You made the right choice.&quot;
<br><br>_______________________________________________<br>PyQt mailing list&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">
http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br><br></blockquote></div><br><br>Yes, that&#39;s a perfect example of an application that assumes Qt4 with glib mainloop integration. But that&#39;s not really what I&#39;m looking for. Thanks for the reply though!
<br><br>Ps. You could easily modify that script to not require PyQt4 at all. The only thing you&#39;re using it for right now is set_timer / timerEvent which gobject also provides.<br><br>Ingmar.<br><br>