Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/openpyxl/comments/__pycache__/comments.cpython-37.pyc
Назад
B �5�g� � @ s G d d� de �ZdS )c @ sh e Zd ZdZddd�Zedd� �Zdd � Zd d� Zdd � Z dd� Z dd� Zedd� �Zej dd� �ZdS )�CommentN�O � c C s || _ || _|| _|| _d S )N)�content�author�height�width)�self�textr r r � r �P/home/digitalm-up/venv/lib/python3.7/site-packages/openpyxl/comments/comments.py�__init__ s zComment.__init__c C s | j S )N)�_parent)r r r r �parent s zComment.parentc C s | j |j ko| j|jkS )N)r r )r �otherr r r �__eq__ s zComment.__eq__c C s d� | j| j�S )NzComment: {0} by {1})�formatr r )r r r r �__repr__ s zComment.__repr__c C s | � | j| j| j| j�}|S )z'Create a detached copy of this comment.)� __class__r r r r )r �cloner r r �__copy__ s zComment.__copy__c C s@ |dk r6| j dk r6| j |kr6d}t|�|j|jj���|| _ dS )z3 Bind comment to a particular cell Nz_Comment already assigned to {0} in worksheet {1}. Cannot assign a comment to more than one cell)r �AttributeErrorr Z coordinater �title)r �cell�fmtr r r �bind$ s zComment.bindc C s d| _ dS )z. Unbind a comment from a cell N)r )r r r r �unbind. s zComment.unbindc C s | j S )z> Any comment text stripped of all formatting. )r )r r r r r 5 s zComment.textc C s || _ d S )N)r )r �valuer r r r <