Sweet. Great to have it back.

Thanks,
Kent

On Sun, May 16, 2010 at 1:15 PM, Terry Brown <[email protected]> wrote:
> Brain has been debugging, testing, googling, comparing for over two hours.
>
> Then Intuition wanders past and says, "oh, ha, why not try
>
>     def __init__ (self,c):
>         self.c = c
> +        c._prev_next = self
>         self.makeButtons()
>
> Sometimes, Brain doesn't like Intuition very much.
>
> Fortunately Brain was able to save some face, as
>
> -        act_l = QtGui.QAction(icon_l, 'prev', ib_w)
> -        act_r = QtGui.QAction(icon_r, 'next', ib_w)
> +        act_l = QtGui.QAction(icon_l, 'prev', ib_w, triggered=self.clickPrev)
> +        act_r = QtGui.QAction(icon_r, 'next', ib_w, triggered=self.clickNext)
>
> was also required.
>
> Seems like it was a bug from two simultaneously arising sources, the 
> reference to the class that contained the only references to the action 
> wasn't being kept, and the trigger signal wasn't being connected to the 
> action.
>
> Of course it worked before, so these things must have become problems because 
> of Python 2.6.4 -> 2.6.5 and PyQt 4.6 -> 4.7.2.  Perhaps better garbage 
> collection, and QToolButtons no longer emitting "clicked()", so some weird 
> combo. like that.
>
> Hmm, "act_r = QtGui.QAction(icon_r, 'next', ib_w, triggered=self.clickNext)" 
> might be a *Py*Qt only alternative to Qt's normal "act_r.connect(act_r, 
> QtCore.SIGNAL("triggered()"), self.clickNext)" pattern.  Oh well.
>
> Cheers -Terry
>
> On Sun, 16 May 2010 09:52:26 -0500
> Terry Brown <[email protected]> wrote:
>
>> On Sun, 16 May 2010 09:41:18 -0500
>> Terry Brown <[email protected]> wrote:
>>
>> > Confirmed, blerk.  I'll take a quick look, hard to imagine what it could 
>> > be though.
>>
>> Python 2.6.4 -> 2.6.5
>>
>> and
>>
>> PyQt 4.6 -> 4.7.2
>>
>> ...looking continues.
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "leo-editor" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/leo-editor?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to