Yes, it looks like some simple heuristic may be needed. And I am conscious 
that some plugins, that I may or may not be aware of, may add panes and 
complications.

Still, it's my own itch that I am scratching, for now anyway. Let's see 
what I come up with...

Thanks, J


On Thursday, August 21, 2025 at 10:42:30 AM UTC+1 Edward K. Ream wrote:

> On Thu, Aug 21, 2025 at 1:50 AM jkn <jkn...@nicorp.co.uk> wrote:
>
>> Sure - I was just pointing out that the calls seem to return different 
>> things for different 'focus parts' of the system.
>>
>
> Thanks to you and Thomas for your comments.
>
> My responses were hasty and not too helpful. The only sure reference is 
> the actual code :-)
>
> The signature in question is:  class 
> LeoQTreeWidget(QtWidgets.QTreeWidget):
>
> So yes, a LeoQTreeWidget *is* a QTreeWidget. And (indirectly!) a 
> QTreeWidget *is* a QWidget.
>
> I'm not going to change the code. Devs should decide whether 
> g.app.gui.get_focus or c.get_focus is appropriate.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/leo-editor/bda760fb-6f5b-48f0-a51b-c3d075a57aa3n%40googlegroups.com.

Reply via email to