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

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

src/g/r/gramps-3.4.2/src/plugins/textreport/DescendReport.py   Gramps(Download)
            p.set_top_margin(ReportUtils.pt2cm(f.get_size()*0.125))
            p.set_bottom_margin(ReportUtils.pt2cm(f.get_size()*0.125))
            p.set_first_indent(-0.5)
            p.set_left_margin(min(10.0, float(i-0.5)))
            p.set_description(_("The style used for the "

src/g/r/gramps-3.4.2/src/plugins/textreport/TableOfContents.py   Gramps(Download)
        para = ParagraphStyle()
        para.set_font(font)
        para.set_first_indent(0.5)
        para.set_description(_('The style used for second level headings.'))
        default_style.add_paragraph_style("TOC-Heading2", para)
 
        para = ParagraphStyle()
        para.set_font(font)
        para.set_first_indent(1)

src/g/r/gramps-3.4.2/src/plugins/lib/libcairodoc.py   Gramps(Download)
        #we split a paragraph, text should begin in correct position: no indent
        #as if the paragraph just continues from normal text
        new_style.set_first_indent(0)
        new_paragraph = GtkDocParagraph(new_style)
        #index is in bytecode in the text..