%PDF- %PDF-
Direktori : /lib/python3/dist-packages/reportlab/graphics/__pycache__/ |
Current File : //lib/python3/dist-packages/reportlab/graphics/__pycache__/widgetbase.cpython-312.pyc |
� ��d�c � � � d Z dZddlmZ ddlmZ ddlmZ ddl� ddl � ddl mZ G d� d � Z G d � de ej � Z G d� d e� Zi Z G d� d� Z G d� de � Zd� Zd� Z G d� de � Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de � Zd � Zd!� Zed"k( r e� y#y#)$z3.3.0z-Base class for user-defined graphical widgets� )�shapes)� rl_config)�colors)�*)�refc �P � e Zd ZdZdZd� Zej r d� Zdd�Z d� Z d d�Zy) � PropHolderzBase for property holdersNc � � | j ��| j j � D ]( }|d dk7 s�d|�d| ��}|| j v r�#J |� � | j j � D ]` \ }}d|�d| ��}t | |� sJ |� �t | |� }||| j j f}|j |� r�XJ d|z � � yy) a0 If the _attrMap attribute is not None, this checks all expected attributes are present; no unwanted attributes are present; and (if a checking function is found) checks each attribute has a valid value. Either succeeds or raises an informative exception. Nr �_zUnexpected attribute z found in zMissing attribute z from z-Invalid value %s for attribute %s in class %s) �_attrMap�__dict__�keys�items�hasattr�getattr� __class__�__name__�validate)�self�key�msg�attr� metavalue�value�argss �?/usr/lib/python3/dist-packages/reportlab/graphics/widgetbase.py�verifyzPropHolder.verify s� � � �=�=�$��}�}�)�)�+� 5���q�6�S�=�CF��M�C��$�-�-�/�4��4�/� 5� $(�=�=�#6�#6�#8� i���i�8<�d�C���t�T�*�/�C�/�*���d�+���t�T�^�^�%<�%<�=�� �)�)�%�0�h�2a�dh�2h�h�0� i� %� c � � t | ||� y)zSBy default we verify. This could be off in some parallel base classes.N��validateSetattr�r �namer s r �__setattr__zPropHolder.__setattr__. s � � �D��e�,r c �* � ddl m} i }| j j � D ]m }|dd dk7 s�t | |� }|rO ||� rG|j |�� }|j � D ]! \ }}|d dk( r |||�|��<