+
    <i  c                   s:    ^ RI t  ! R R]4      t ! R R]4      tR# )i    Nc                   s&   a  ] tR t^t o R tRtV tR# )
_ELessListc                sR     \         P                  W4      #   \         d     R # i ; iN)list__getitem__Z
IndexError)selfZindexs   &&5/usr/lib/python3.14/site-packages/pyatspi/appevent.pyr   Z_ELessList.__getitem__   s*    $#//<<! $#$s    && N)__name__
__module____qualname____firstlineno__r   __static_attributes____classdictcell__Z__classdict__   @r   r    r       s     	$ 	$    r    c                   sX   a  ] tR t^t o RtRtR tR	R lt]R 4       t	]R 4       t
RtV tR# )
	EventTypea  
Wraps the AT-SPI event type string so its components can be accessed 
individually as klass (can't use the keyword class), major, minor, and detail 
(klass_major_minor_detail).

@note: All attributes of an instance of this class should be considered 
        public readable as it is acting a a struct.
@ivar klass: Most general event type identifier (object, window, mouse, etc.)
@type klass: string
@ivar major: Second level event type description
@type major: string
@ivar minor: Third level event type description
@type minor: string
@ivar detail: Lowest level event type description
@type detail: string
@ivar name: Full, unparsed event name as received from AT-SPI
@type name: string
@cvar format: Names of the event string components
@type format: 4-tuple of string
Z:c                sT   VP                  V P                  4      pVP                  V P                  ^4      p\        V4      V n        V P                  ^ ,          V n        V P                  ^,          V n        V P                  ^,          V n        V P                  ^,          V n        R# )a:  
Parses the full AT-SPI event name into its components
(klass:major:minor:detail). If the provided event name is an integer
instead of a string, then the event is really a device event.

@param name: Full AT-SPI event name
@type name: string
@raise AttributeError: When the given event name is not a valid string 
N)	Zstrip
_SEPARATORZsplitr    
_separatedklassmajorminordetail)r   nameZstrippedZ	separateds   &&  r   __init__ZEventType.__init__0   sv      ::doo6$NN4??A>	",Y"7!__Q/
!__Q/
!__Q/
"ooa0r   c                s   VP                   '       d   VP                   V P                   8w  d   R# VP                  '       d   VP                  V P                  8w  d   R# VP                  '       d   VP                  V P                  8w  d   R# V'       dT   VP                   V P                   8X  d9   VP                  V P                  8X  d   VP                  V P                  8X  d   R# R# )zA
Determines if the passed event type is a subtype
of this event.
FT)r   r   r   )r   Z
event_typeZexcludeSelfs   &&&r   
is_subtypeZEventType.is_subtypeC   s    
 ###
(8(8TZZ(G$%+++
0@0@DJJ0N',#-#3#3#3
8H8HDJJ8V/4J$4$4

$B"((DJJ6:;K;Ktzz;Y$r   c                    \        V 4      # r   strr      &r   r   ZEventType.nameU       4y r   c                r   r   r   r   r   r   valueZEventType.valueY   r   r   )r   r   r   r   r   N)F)r   r   r	   r
   Z__doc__r   r   r   Zpropertyr   r    r   r   r   r   r   r   r      sC     	* 
	1&	$ 
	! 
	! 
	! 
	!r   r   )Zstringr   r    r   r   r   r   r   <module>r!      s$    $ $C! C!r   