o
    ¹eæ  ã                   @   s(   d dl mZmZmZ G dd„ deƒZdS )é    )Úabsolute_importÚprint_functionÚunicode_literalsc                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚEventz"Represent events from the console.c                 C   s   d S )N© )ÚselfÚconsoleÚinputr   r   úID:\Projects\ConvertPro\env\Lib\site-packages\pyreadline3/console/event.pyÚ__init__   s   zEvent.__init__c              	   C   sÔ   | j dv r)| j}t|ƒtdƒk rd}d| j |t| jƒ| j| j| j| j| jf }|S | j dv r<d| j | j| j| jf }|S | j dkrMd| j | j	| j
f }|S | j d	v rW| j }|S | j d
krfd| j | jf }|S d}|S )zDisplay an event for debugging.)ZKeyPressZ
KeyReleaseÚAú?z<%s char='%s'%d keysym='%s' keycode=%d:%x state=%x keyinfo=%s)ZMotionZButtonz%s x=%d y=%d state=%xZ	Configurez%s w=%d h=%d)ZFocusInZFocusOutZMenuz%s state=%xzunknown event type)ÚtypeÚcharÚordZkeysymZkeycodeÚstateZkeyinfoÚxÚyÚwidthÚheight)r   ÚchrÚsr   r   r
   Ú__repr__
   s4   
ÿÿ
õÿ

ø
ú
üÿzEvent.__repr__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r
   r      s    r   N)Ú
__future__r   r   r   Úobjectr   r   r   r   r
   Ú<module>   s    