On 4/25/07, <b class="gmail_sendername">Simon Edwards</b> <<a href="mailto:simon@simonzone.com">simon@simonzone.com</a>> 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>> I'm trying to use the new PyQt4 dbus mainloop, but it crashes with an<br>> assertion error when I try to get an object from the bus. I'm using Sip<br>> 4.6,<br>> PyQt4.2
, Qt 4.2.3, Python 2.5.1, DBus 1.0.2 and dbus-python 0.80.1. Am I<br>> doing something fundamentally insane or wrong?<br>><br>> If I remove the QDBusQtMainLoop(set_as_default=True) line, it works just<br>> fine. The assertion also happens if
app.exec_() and get the bus object from<br>> a QTimer event.<br><br>Here is some code which works for me. You'll have to strip it down<br>yourself though. I'm lazy like that. ;-)<br><br>cheers,<br><br>--<br>Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall
<br><a href="mailto:simon@simonzone.com">simon@simonzone.com</a> | <a href="http://www.simonzone.com/software/">http://www.simonzone.com/software/</a><br>Nijmegen, The Netherlands | "ZooTV? You made the right choice."
<br><br>_______________________________________________<br>PyQt mailing list <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's a perfect example of an application that assumes Qt4 with glib mainloop integration. But that's not really what I'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're using it for right now is set_timer / timerEvent which gobject also provides.<br><br>Ingmar.<br><br>