
    ȡcR                     V    d dl mZ d Zd Zd Z ed            ed           d ZdS )	    )NoSymbolc                 V    t                                          d| z   t                    S )zReturn the (16 bit) numeric code of keysym.

    Given the name of a keysym as a string, return its numeric code.
    Don't include the 'XK_' prefix, just use the base, i.e. 'Delete'
    instead of 'XK_Delete'.XK_)globalsgetr   keysyms    J/var/www/api.educacionweb.es/myenv/lib/python3.11/site-packages/Xlib/XK.pystring_to_keysymr      s      99==222    c                     d| v rt          d| z            t                      }t          d| z  |t                      | g          }d t	          |          D             }|D ]}|j        |         ||<   ~dS )zLoad all the keysyms in group.

    Given a group name such as 'latin1' or 'katakana' load the keysyms
    defined in module 'Xlib.keysymdef.group-name' into this XK module..zinvalid keysym group name: %szXlib.keysymdef.%sc                 <    g | ]}|                     d           |S )r   )
startswith).0ns     r
   
<listcomp>z%load_keysym_group.<locals>.<listcomp>/   s)    :::Qall5&9&9:q:::r   N)
ValueErrorr   
__import__localsdir__dict__)groupGmodkeysymsr	   s        r
   load_keysym_groupr   !   s    
 e||85@AAA		A (50!VXXw
G
GC ;:#c((:::G  ) )L(&		 	r   c                     dS )zkeysym definition modules need no longer call Xlib.XK._load_keysyms_into_XK().
    You should remove any calls to that function from your keysym modules.N )r   s    r
   _load_keysyms_into_XKr    9   s	     	Dr   
miscellanylatin1c           	          | dz  dk    rt          | dz            S | t          t          t          t          t
          t          t          t          fv rt          | dz            S dS )zTranslate a keysym (16 bit number) into a python string.

    This will pass 0 to 0xff as well as XK_BackSpace, XK_Tab, XK_Clear,
    XK_Return, XK_Pause, XK_Scroll_Lock, XK_Escape, XK_Delete. For other
    values it returns None.i   r      N)	chrXK_BackSpaceXK_TabXK_Clear	XK_ReturnXK_PauseXK_Scroll_Lock	XK_Escape	XK_Deleter   s    r
   keysym_to_stringr.   C   sd     !6D=!!!,)NIyB B B6D=!!! 4r   N)Xlib.Xr   r   r   r    r.   r   r   r
   <module>r0      s   .      3 3 3  0	 	 	  ,     (       r   