a
    ñ»jù  ã                   @   s   G d d„ de ƒZdS )c                   @   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   ú?E:\soccer\ml_env\Lib\site-packages\pyreadline3/console/event.pyÚ__init__   s    zEvent.__init__c              	   C   sÊ   | j dv rP| j}t|ƒtdƒk r$d}d| j |t| jƒ| j| j| j| j| jf }nv| j dv rtd| j | j| j| jf }nR| j dkr”d| j | j	| j
f }n2| j d	v r¦| j }n | j d
krÂd| j | jf }n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__   s0    
ø




zEvent.__repr__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s   r   N)Úobjectr   r   r   r   r   Ú<module>   ó    