Example tooltips can be found in nav_qt.py (plugin) and in LeoPy.leo 
somewhere around the LeoTabbedTopLevel code, if I recall correctly.

Bolting those examples onto headlines is another matter. I spent a lot of 
time trying things and then "git stash" to restore functioning code.

Chris

On Wednesday, August 28, 2019 at 10:22:00 PM UTC-7, gar wrote:
>
> same with me. 
> looks like there's no way to do it easy. 
>
> 2019-08-28 18:15 GMT+03:00, Chris George <[email protected] <javascript:>>: 
>
> > At one point I spent a couple of hours trying to figure out how to add a 
> > tooltip to a headline. 
> > 
> > My poor python skills were simply not up to the task. 
> > 
> > Chris 
> > 
> > On Tue, Aug 27, 2019 at 9:40 PM gar <[email protected] <javascript:>> 
> wrote: 
> > 
> >> Tree pane with outline has some finite width. And outline text may 
> exceed 
> >> this width so that only some part of the text is only visible at the 
> >> moment. 
> >> Other tools/editors usually show popup/balloon with full text when 
> mouse 
> >> hovers over such a node. And this helps significantly. 
> >> But Leo user has to resize the whole pane to see the text - and even 
> that 
> >> may be not enough. 
> >> Selecting the node may help since status line tries to display the text 
> - 
> >> but it may be not enough too. 
> >> Then the only way to see what's in there is to copy the text and paste 
> it 
> >> to somewhere what can fit it all. 
> >> 
> >> Is there any way to see the whole text of the outline in the case it is 
> >> hidden cause of small pane's width 
> >> - *not* selecting the node 
> >> - *not* resizing the pane 
> >> - *not* copying the text in the clipboard and pasting it to text editor 
> >> (in the worst cases with really long lines like paths etc) 
> >> ? 
> >> 
> >> -- 
> >> 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] <javascript:>. 
> >> To view this discussion on the web visit 
> >> 
> https://groups.google.com/d/msgid/leo-editor/877a5a3d-00a4-48ed-a28f-15e37c4f021b%40googlegroups.com
>  
> >> <
> https://groups.google.com/d/msgid/leo-editor/877a5a3d-00a4-48ed-a28f-15e37c4f021b%40googlegroups.com?utm_medium=email&utm_source=footer>
>  
>
> >> . 
> >> 
> > 
> > -- 
> > 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] <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/leo-editor/CADWQas1McbHAYJCfFqbg2K3Sm-WzRf5BMHk8GZqXACiYgGxxwQ%40mail.gmail.com.
>  
>
> > 
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/leo-editor/7767da6e-15c0-4cfa-bef3-3db5cf5ccc0c%40googlegroups.com.

Reply via email to