[PyQt] Re: Signal problem with latest PyQt snapshot

Phil Thompson phil at riverbankcomputing.com
Mon Apr 13 11:03:28 BST 2009

On Sun, 12 Apr 2009 18:47:23 +0200, Detlev Offenbach
<detlev at die-offenbachs.de> wrote:
> Hi,
> I am observing an unlimited recursion problem in some eric4 code. In the 
> ViewManager I am connecting to a signal sent by the editor with this code
>     self.connect(editor, SIGNAL('bookmarkToggled'),
> In the method __bookmarkToggled I am doing some things and reemit the
> signal 
> with this line
>     self.emit(SIGNAL('bookmarkToggled'), editor)

That's not the same signal - one is a signal of editor, the other is a
signal of ViewManager.

> This seems to go into an infinite recursion because I get this error
> RuntimeError: maximum recursion depth exceeded

Can you trace the recursion path?


More information about the PyQt mailing list