• File: params.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/svgwrite/__pycache__/params.cpython-37.pyc
  • Date Modified: 11/23/2019 5:57 PM
  • File size: 2.07 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

s]@s ddlmZGdddeZdS))
get_validatorc@sheZdZdZdddgZdddZd	d
ZeddZej	d
dZddZ
eddZej	ddZdS)	Parametera
    .. attribute:: Parameter.debug

       *read/write* property

       * *True* : debug mode is on, all SVG attributes are checked if valid
         in the element context. Also the included SVG subelements will be
         checked if they are valid for the parent SVG element.

       * *False*: no validation checks will be done, but program execution is
         faster.

    .. attribute:: Parameter.profile

       *read/write* property

       name of the SVG profile, valid profiles are: ``'full|basic|tiny'``
    _debug	validator_profileTfullcCs||_||_dS)N)rprofile)selfdebugrr
/params.py__init__ szParameter.__init__cCst|j|j|_dS)N)rrr
r)r	rrr_init_validator$szParameter._init_validatorcCs|jS)N)r)r	rrrr
'szParameter.debugcCs||_|dS)N)rr)r	r
rrrr
+scCs|jdkrdSdSdS)Ntinyz1.2z1.1)r)r	rrrget_version0s
zParameter.get_versioncCs|jS)N)r)r	rrrr6szParameter.profilecCs0|}|dkr ||_|ntd|dS)zt
        :param string profile: name of the SVG profile, valid profiles are:
        ``'full|basic|tiny'``

        )rZbasicrz'%s' is not a valid profile.N)lowerrr
ValueError)r	rrrrr:s

N)Tr)__name__
__module____qualname____doc__	__slots__r
rpropertyr
setterrrrrrrrs

rN)Zsvgwrite.validator2robjectrrrrr<module>s