/opt/alt/python27/lib/python2.7/site-packages/svgwrite
NameSizeModeActions
data/-0755rm
animate.py66300644editdlrm
animate.pyc77910644editdlrm
animate.pyo77910644editdlrm
base.py80640644editdlrm
base.pyc100160644editdlrm
base.pyo100160644editdlrm
container.py90220644editdlrm
container.pyc109450644editdlrm
container.pyo109450644editdlrm
drawing.py43440644editdlrm
drawing.pyc49400644editdlrm
drawing.pyo49400644editdlrm
elementfactory.py21990644editdlrm
elementfactory.pyc29640644editdlrm
elementfactory.pyo29640644editdlrm
etree.py13610644editdlrm
etree.pyc13000644editdlrm
etree.pyo13000644editdlrm
filters.py78990644editdlrm
filters.pyc136550644editdlrm
filters.pyo136550644editdlrm
gradients.py47190644editdlrm
gradients.pyc60300644editdlrm
gradients.pyo60300644editdlrm
image.py24450644editdlrm
image.pyc30210644editdlrm
image.pyo30210644editdlrm
masking.py18270644editdlrm
masking.pyc22930644editdlrm
masking.pyo22930644editdlrm
mixins.py104460644editdlrm
mixins.pyc130410644editdlrm
mixins.pyo130410644editdlrm
params.py18800644editdlrm
params.pyc27910644editdlrm
params.pyo27910644editdlrm
path.py35910644editdlrm
path.pyc37430644editdlrm
path.pyo37430644editdlrm
pattern.py19500644editdlrm
pattern.pyc23470644editdlrm
pattern.pyo23470644editdlrm
shapes.py58580644editdlrm
shapes.pyc67560644editdlrm
shapes.pyo67560644editdlrm
text.py81290644editdlrm
text.pyc97290644editdlrm
text.pyo97290644editdlrm
utils.py62180644editdlrm
utils.pyc75440644editdlrm
utils.pyo75440644editdlrm
validator2.py60730644editdlrm
validator2.pyc71120644editdlrm
validator2.pyo71120644editdlrm
__init__.py24490644editdlrm
__init__.pyc32260644editdlrm
__init__.pyo32260644editdlrm
Edit: /opt/alt/python27/lib/python2.7/site-packages/svgwrite/drawing.pyc (4940B)
Ñò #8oRc@sedZddklZddkZddklZlZddklZdeefd„ƒYZ dS(uï The *Drawing* object is the overall container for all SVG elements. It provides the methods to store the drawing into a file or a file-like object. If you want to use stylesheets, the reference links to this stylesheets were also stored (`add_stylesheet`) in the *Drawing* object. set/get SVG attributes:: element['attribute'] = value value = element['attribute'] The Drawing object also includes a defs section, add elements to the defs section by:: drawing.defs.add(element) iÿÿÿÿ(tunicode_literalsN(tSVGtDefs(tElementFactorytDrawingcBsPeZdZdd d„Zd„Zddd„Zd„Zd „Zd „ZRS( uÍ This is the SVG drawing represented by the top level *svg* element. A drawing consists of any number of SVG elements contained within the drawing element, stored in the *elements* attribute. A drawing can range from an empty drawing (i.e., no content inside of the drawing), to a very simple drawing containing a single SVG element such as a *rect*, to a complex, deeply nested collection of container elements and graphics elements. u noname.svgu100%cKs2tt|ƒid||||_g|_dS(u“ :param string filename: filesystem filename valid for :func:`open` :param 2-tuple size: width, height :param keywords extra: additional svg-attributes for the *SVG* object Important (and not SVG Attributes) **extra** parameters: :param string profile: ``'tiny | full'`` - define the SVG baseProfile :param bool debug: switch validation on/off tsizeN(tsuperRt__init__tfilenamet _stylesheets(tselfRRtextra((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/drawing.pyR*s  cCsf|i}|i}d|id :param string title: name of stylesheet :param string alternate: ``'yes'|'no'`` :param string media: ``'all | aureal | braille | embossed | handheld | print | projection | screen | tty | tv'`` N(R tappend(R threfttitlet alternatetmedia((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/drawing.pytadd_stylesheetJs cCsO|idƒd}x"|iD]}|i||ƒqW|i|iƒƒdS(uÆ Write XML string to **fileobj**. :param fileobj: a *file-like* object Python 3.x - set encoding at the open command:: open('filename', 'w', encoding='utf-8') u( uR N(twriteR ttostring(R tfileobjtstylesheet_templatet stylesheet((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/drawing.pyRUs  cCs9ti|iddddƒ}|i|ƒ|iƒdS(u' Write the XML string to **filename**. tmodeuwtencodinguutf-8N(tiotopenRRtclose(R R((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/drawing.pytsaveks cCs||_|iƒdS(u{ Write the XML string to **filename**. :param string filename: filesystem filename valid for :func:`open` N(RR (R R((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/drawing.pytsaveasqs (u100%u100%( t__name__t __module__t__doc__RRRRR R!(((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/drawing.pyR s    ( R$t __future__RRtsvgwrite.containerRRtsvgwrite.elementfactoryRR(((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/drawing.pyts