On Fri, 12 Apr 2013 12:08:24 -0700 (PDT)
"Edward K. Ream" <[email protected]> wrote:

> @button buttons now always show toolTips, using docstrings if they exist, 
> otherwise a default toolTip.

Nice.

> I have not been able to get toolTips to work in the menus created by 
> @rclick nodes.  No toolTip is shown when action.setToolTip is called.  That 
> should be a minor issue.

http://qt-project.org/faq/answer/how_can_i_add_tooltips_to_actions_in_menus

I guess I agree with their reasoning.  Long command names in menus
don't chew up screen space, since they're only visible on demand, so
use descriptive names on @rclick nodes.

Cheers -Terry

> After some debate, I have chosen to have the text of the @rclick headline 
> continue to determine the menu item's text.  There seems to be no advantage 
> in preferring a docstring.
> 
> Leo gets the docstring using g.getDocString(), which does a simple-minded 
> text scan of the body text.  This is safer than importing the code, and 
> simpler than parsing the code.
> 
> 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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to