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

List:       pykde
Subject:    Re: [PyQt] PyQt4 dbus mainloop assertion error
From:       "Ingmar Steen" <iksteen () gmail ! com>
Date:       2007-04-25 18:38:14
Message-ID: e9f72e1c0704251138u3ee564c6k9d37e2b01da6df0b () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 4/25/07, Simon Edwards <simon@simonzone.com> wrote:
>
> 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@simonzone.com       | http://www.simonzone.com/software/
> Nijmegen, The Netherlands | "ZooTV? You made the right choice."
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>

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!

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.

Ingmar.

[Attachment #5 (text/html)]

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>



_______________________________________________
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