Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/g/r/gramps-3.4.2/src/gui/widgets/styledtextbuffer.py   Gramps(Download)
    StyledTextTagType.FONTFACE,
    StyledTextTagType.FONTSIZE,
    StyledTextTagType.LINK,
)
 
    StyledTextTagType.FONTFACE: 'family',
    StyledTextTagType.FONTSIZE: 'size-points',
    StyledTextTagType.LINK: 'link',
}
 

src/g/r/gramps-3.4.2/src/gui/widgets/styledtexteditor.py   Gramps(Download)
       StyledTextTagType.FONTCOLOR,
       StyledTextTagType.HIGHLIGHT,
       StyledTextTagType.LINK,
   )
 
            (str(StyledTextTagType.HIGHLIGHT), 'gramps-font-bgcolor', None, None,
             _('Background Color'), self._on_action_activate),
            (str(StyledTextTagType.LINK), gtk.STOCK_JUMP_TO, None, None,
             _('Link'), self._on_link_activate),
            ('clear', gtk.STOCK_CLEAR, None, None,

src/g/r/gramps-3.4.2/src/plugins/gramplet/WelcomeGramplet.py   Gramps(Download)
def linkst(text, url):
    """ Return text as link styled text
    """
    tags = [StyledTextTag(StyledTextTagType.LINK, url,
                            [(0, len(text))])]

src/g/r/gramps-3.4.2/src/plugins/quickview/LinkReferences.py   Gramps(Download)
 
    for styledtext_tag in tags:
        if int(styledtext_tag.name) == StyledTextTagType.LINK:
            if styledtext_tag.value.startswith("gramps://"):
                object_class, prop, value = styledtext_tag.value[9:].split("/", 2)

src/g/r/gramps-3.4.2/src/Utils.py   Gramps(Download)
        link_start = text.index(',') + 2
        link_end = len(text) - 1
        tag = gen.lib.StyledTextTag(gen.lib.StyledTextTagType.LINK,
                'gramps://Note/handle/%s' % explanation,
                [(link_start, link_end)])