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

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

src/g/r/gramps-3.4.2/src/plugins/docgen/ODFDoc.py   Gramps(Download)
#
#-------------------------------------------------------------------------
from gen.plug.docgen import (BaseDoc, TextDoc, DrawDoc, graphicstyle,
                    FONT_SANS_SERIF, SOLID, PAPER_PORTRAIT,
                    INDEX_TYPE_TOC, PARA_ALIGN_CENTER, PARA_ALIGN_LEFT, 
                    'draw:textarea-vertical-align="middle" '
                    )
                if style.get_line_style() != SOLID:
                    #wrt('svg:fill-color="#ff0000" ')
                    wrt('draw:stroke="dash" draw:stroke-dash="gramps_%s" ' % style.get_dash_style_name())

src/g/r/gramps-3.4.2/src/plugins/lib/libcairodoc.py   Gramps(Download)
#
#------------------------------------------------------------------------
from gen.plug.docgen import (BaseDoc, TextDoc, DrawDoc, ParagraphStyle,
                        TableCellStyle, SOLID, FONT_SANS_SERIF, FONT_SERIF,
                        FONT_MONOSPACE, PARA_ALIGN_CENTER, PARA_ALIGN_LEFT)
        # TODO line style
        line_style = self._style.get_line_style()
        if line_style != SOLID:
            cr.set_dash(self._style.get_dash_style(line_style), 0)
        cr.move_to(*start)
        # TODO line style
        line_style = self._style.get_line_style()
        if line_style != SOLID:
            cr.set_dash(self._style.get_dash_style(line_style), 0)
        cr.stroke()
        # TODO line style
        line_style = self._style.get_line_style()
        if line_style != SOLID:
            cr.set_dash(self._style.get_dash_style(line_style), 0)
 

src/g/r/gramps-3.4.2/src/plugins/docgen/PSDrawDoc.py   Gramps(Download)
#-------------------------------------------------------------------------
from gen.plug.report import utils as ReportUtils
from gen.plug.docgen import BaseDoc, DrawDoc, FONT_SERIF, PAPER_PORTRAIT, SOLID
from gen.plug.utils import gformat
import Errors
            '%s setlinewidth\n' % gformat(stype.get_line_width())
            )
        if stype.get_line_style() == SOLID:
            self.file.write('[] 0 setdash\n')
        else:
            '%s setlinewidth\n' % gformat(stype.get_line_width())
            )
        if stype.get_line_style() == SOLID:
            self.file.write('[] 0 setdash\n')
        else:

src/g/r/gramps-3.4.2/src/plugins/docgen/SvgDrawDoc.py   Gramps(Download)
#
#-------------------------------------------------------------------------
from gen.plug.docgen import BaseDoc, DrawDoc, SOLID, FONT_SANS_SERIF
import Errors
 
        line_out += 'x2="%4.2fcm" y2="%4.2fcm" ' % (x2, y2)
        line_out += 'style="stroke:#%02x%02x%02x; ' % s.get_color()
        if s.get_line_style() != SOLID:
            line_out += 'stroke-dasharray: %s; ' % (
                ",".join(map(str, s.get_dash_style()))
        line_out = '<polygon fill="#%02x%02x%02x"' % stype.get_fill_color()
        line_out += ' style="stroke:#%02x%02x%02x; ' % stype.get_color()
        if stype.get_line_style() != SOLID:
            line_out += 'stroke-dasharray: %s; ' % (
                ",".join(map(str, stype.get_dash_style()))
        line_out += 'style="fill:#%02x%02x%02x; ' % box_style.get_fill_color()
        line_out += 'stroke:#%02x%02x%02x; ' % box_style.get_color()
        if box_style.get_line_style() != SOLID:
            line_out += 'stroke-dasharray: %s; ' % (
                ",".join(map(str, box_style.get_dash_style()))