Ignore:
Timestamp:
02/20/13 14:45:04 (14 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Exclude the 'more...' link from the default 'Whats this' text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/registry/qt.py

    r11286 r11341  
    322322 
    323323 
    324 def whats_this_helper(desc): 
    325     """What's this construction helper. 
     324def whats_this_helper(desc, include_more_link=False): 
     325    """ 
     326    A `What's this` text construction helper. If `include_more_link` is 
     327    True then the text will include a `more...` link. 
     328 
    326329    """ 
    327330    title = desc.name 
     
    342345        template.append("<p>{0}</p>".format(escape(long_description[:100]))) 
    343346 
    344     if help_url: 
     347    if help_url and include_more_link: 
    345348        template.append("<a href='{0}'>more...</a>".format(escape(help_url))) 
    346349 
Note: See TracChangeset for help on using the changeset viewer.