U
    fw%ZE  ã                   @   s   d dl Z G dd„ de jƒZdS )é    Nc                   @   s,   e Zd ZdZdZdd„ Zdd„ Zdd„ Zd	S )
ÚPathnamezeDisplay a pathname.

    If it won't fit completely, truncate from the beginning of the string.

    Fc                 C   s   || _ d| _d S ©NÚ )Ú_keyÚpathname)ÚselfÚkey© r	   ú4/usr/lib/python3/dist-packages/ttystatus/pathname.pyÚ__init__   s    zPathname.__init__c                 C   s   | j | d … S )N)r   )r   Úwidthr	   r	   r
   Úrender"   s    zPathname.renderc                 C   s   |  | jd¡| _d S r   )Úgetr   r   )r   Zmasterr	   r	   r
   Úupdate%   s    zPathname.updateN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Zstatic_widthr   r   r   r	   r	   r	   r
   r      s
   r   )Z	ttystatusZWidgetr   r	   r	   r	   r
   Ú<module>   s   