Then try for objectName() directly. The name  "LeoQTreeWidget" suggests 
that it's a actual widget, not a wrapped one.

BTW, the way I learned that LeoQtBody had a widget attribute was to run 
dir() on it. "widget" showed up at the end of the list.

On Wednesday, August 20, 2025 at 6:29:08 PM UTC-4 jkn wrote:

> slightly teasing here:
>
> AttributeError: 'LeoQTreeWidget' object has no attribute 'widget'
>
> On Wednesday, August 20, 2025 at 11:02:31 PM UTC+1 Edward K. Ream wrote:
>
>> On Wed, Aug 20, 2025 at 5:00 PM Thomas Passin <[email protected]> wrote:
>>
>>>
>>> On Wednesday, August 20, 2025 at 1:00:59 PM UTC-4 jkn wrote:
>>>
>>> Heh...
>>>
>>> AttributeError: 'LeoQtBody' object has no attribute 'objectName'
>>>
>>>
>>> w.widget.objectName()
>>>
>>
>> Thanks, Thomas.  Apparently w is a Wrapper object.
>>
>> 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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/leo-editor/26753c70-ef35-4937-8c3e-a49756fb0f6an%40googlegroups.com.

Reply via email to