/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/base.pyc (10016B)
Ñò ÞíáRc@sªdZddklZddkZddklZddklZlZl Z de fd„ƒYZ de fd „ƒYZ d e fd „ƒYZ d e fd „ƒYZdS(s7 The **BaseElement** is the root for all SVG elements. iÿÿÿÿ(tetreeN(t Parameter(tAutoIDt to_unicodetPYTHON3t BaseElementcBséeZdZdZd„Zd„Zd„Zed„ƒZed„ƒZ ed„ƒZ ed„ƒZ d „Z dd „Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zddd„Zd„ZRS(sª The **BaseElement** is the root for all SVG elements. The SVG attributes are stored in **attribs**, and the SVG subelements are stored in **elements**. t baseElementcKsÂ|iddƒ}|dj o|i|_n tƒ|_|iddƒ}|dj o||i_n|iddƒ}|dj o||i_ntƒ|_|i|ƒt ƒ|_ dS(sÿ :param extra: extra SVG attributes (keyword arguments) * add trailing '_' to reserved keywords: ``'class_'``, ``'from_'`` * replace inner '-' by '_': ``'stroke_width'`` SVG attribute names will be checked, if **debug** is `True`. workaround for removed **attribs** parameter in Version 0.2.2:: # replace element = BaseElement(attribs=adict) #by element = BaseElement() element.update(adict) tfactorytdebugtprofileN( tpoptNonet _parameterRRR tdicttattribstupdatetlisttelements(tselftextraRRR ((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyt__init__s      cCsLxE|iƒD]7\}}|idƒiddƒ}|i||ƒq WdS(sí Update SVG Attributes from `dict` attribs. Rules for keys: 1. trailing '_' will be removed (``'class_'`` -> ``'class'``) 2. inner '_' will be replaced by '-' (``'stroke_width'`` -> ``'stroke-width'``) t_t-N(titemstrstriptreplacet __setitem__(RRtkeytvalue((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyRHs cCsati|ƒ}ti|iƒ|_ti|iƒ|_d|ijo|iƒ|d/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyRWs cCs |iiS(N(R R(R((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyR_scCs |iiS(N(R R (R((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyR cscCs |iiS(N(R t validator(R((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyR!gscCs |iiƒS(N(R t get_version(R((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pytversionkscCs ||_dS(N(R (Rt parameter((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyt set_parameteroscCs ti|ƒS(N(RR(RR((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyRrscCs2d|ijo|iƒ|id/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pytget_iduscCsd|iƒS(sn Get the `IRI` reference string of the object. (i.e., ``'#id'``). :returns: `string` s#%s(R&(R((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pytget_iriscCsd|iƒS(sv Get the `FuncIRI` reference string of the object. (i.e. ``'url(#id)'``). :returns: `string` surl(%s)(R'(R((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyt get_funciri‡scCs |i|S(sz Get SVG attribute by `key`. :param string key: SVG attribute name :return: SVG attribute value (R(RR((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyt __getitem__scCs8|io|ii|i||ƒn||i|/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyR˜s cCs;|io|ii|i|iƒn|ii|ƒ|S(s Add an SVG element as subelement. :param element: append this SVG element :returns: the added element (RR!tcheck_valid_childrenR+Rtappend(Rtelement((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pytadd¥s cCs.|iƒ}ti|ddƒ}|idƒS(s† Get the XML representation as unicode `string`. :return: unicode XML string of this object and all its subelements tencodingsutf-8(tget_xmlRttostringtdecode(Rtxmlt xml_utf8_str((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyR2±s cCs¿ti|iƒ}|io|ii|i|iƒnxX|iiƒD]G\}}|dj o.|i |ƒ}|o|i ||ƒqqIqIWx$|i D]}|i |i ƒƒqžW|S(s‰ Get the XML representation as `ElementTree` object. :return: XML `ElementTree` of this object and all its subelements N(RtElementR+RR!tcheck_all_svg_attribute_valuesRRR tvalue_to_stringtsetRR-R1(RR4t attributeRR.((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyR1»s    cCsxt|ttfƒoX|io|ii|dƒnt|tƒo#|idjot|dƒ}qnnt|ƒS(s Converts *value* into a includes a value check, depending on :attr:`self.debug` and :attr:`self.profile`. tnumberttinyi( t isinstancetinttfloatRR!tcheck_svg_typeR troundR(RR((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyR8Ïs   cCsX|dj o|iidt|ƒƒn|dj o|iidt|ƒƒndS(sK Insert a **title** and/or a **desc** element as first subelement. iN(R RtinserttDesctTitle(Rttitletdesc((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pytset_descÜs  cCs§t|ƒ}t|iƒdjo|ii|ƒnnd}xQ|i|idjo9|d7}|t|iƒjo|ii|ƒdSq?W|ii||ƒdS(sN :param xmldata: an xml.etree.ElementTree - Element() object. iRERFiN(stitlesdesc(tMetadatatlenRR-R+RB(Rtxmldatatmetadatatpos((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyt set_metadataäs   N(t__name__t __module__t__doc__R+RRRtpropertyRR R!R#R%R RR&R'R(R)RR/R2R1R8RGRM(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyRs, +        RDcBs eZdZd„Zd„ZRS(REcCs+ti|iƒ|_t|ƒ|i_dS(N(RR6R+R4Rttext(RRR((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyRøscCs|iS(N(R4(R((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyR1üs(RNROR+RR1(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyRDõs RCcBseZdZRS(RF(RNROR+(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyRCsRHcBseZdZd„ZRS(RKcCs&tidƒ|_|ii|ƒdS(sN :param xmldata: an xml.etree.ElementTree - Element() object. RKN(RR6R4R-(RRJ((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyRs(RNROR+R(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyRHs(RPtsvgwrite.etreeRRtsvgwrite.paramsRtsvgwrite.utilsRRRtobjectRRDRCRH(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyt s á