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

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/g/r/gramps-3.4.2/src/gen/lib/styledtext.py   Gramps(Download)
#
#-------------------------------------------------------------------------
from gen.lib.styledtexttag import StyledTextTag
 
#-------------------------------------------------------------------------
 
            for tag in self._tags:
                new_tag = StyledTextTag(int(tag.name), tag.value)
                for (start_tag, end_tag) in tag.ranges:
                    start = max(start_string, start_tag)
        #self._tags = [StyledTextTag().unserialize(tag) for tag in the_tags]
        for tag in the_tags:
            stt = StyledTextTag()
            stt.unserialize(tag)
            self._tags.append(stt)
if __name__ == '__main__':
    from styledtexttagtype import StyledTextTagType
    T1 = StyledTextTag(StyledTextTagType(1), 'v1', [(0, 2), (2, 4), (4, 6)])
    T2 = StyledTextTag(StyledTextTagType(2), 'v2', [(1, 3), (3, 5), (0, 7)])
 

src/g/r/gramps-3.4.2/src/gen/lib/__init__.py   Gramps(Download)
 
# Text
from gen.lib.styledtexttag import StyledTextTag
from gen.lib.styledtext import StyledText