관리-도구
편집 파일: params.cpython-37.opt-1.pyc
B ��]( � @ s d dl mZ G dd� de�ZdS )� )� get_validatorc @ sh e Zd ZdZdddgZddd�Zd d � Zedd� �Zej d d� �Zdd� Z edd� �Zej dd� �ZdS )� 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�_profileT�fullc C s || _ || _d S )N)r �profile)�self�debugr � r �@/opt/alt/python37/lib/python3.7/site-packages/svgwrite/params.py�__init__! s zParameter.__init__c C s t | j| j�| _d S )N)r r r r )r r r r �_init_validator% s zParameter._init_validatorc C s | j S )N)r )r r r r r ( s zParameter.debugc C s || _ | �� d S )N)r r )r r r r r r , s c C s | j dkrdS dS d S )N�tinyz1.2z1.1)r )r r r r �get_version1 s zParameter.get_versionc C s | j S )N)r )r r r r r 7 s zParameter.profilec C s0 |� � }|dkr || _| �� ntd| ��dS )zt :param string profile: name of the SVG profile, valid profiles are: ``'full|basic|tiny'`` )r Zbasicr z'%s' is not a valid profile.N)�lowerr r � ValueError)r r r r r r ; s N)Tr )�__name__� __module__�__qualname__�__doc__� __slots__r r �propertyr �setterr r r r r r r s r N)Zsvgwrite.validator2r �objectr r r r r �<module> s