Mini Shell

Direktori : /usr/lib/python3.6/site-packages/pyatspi/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/pyatspi/__pycache__/appevent.cpython-36.opt-1.pyc

3

���X��@s,ddlZGdd�de�ZGdd�de�ZdS)�Nc@seZdZdd�ZdS)�
_ELessListcCs&ytj||�Stk
r dSXdS)N)�list�__getitem__�
IndexError)�self�index�r�/usr/lib/python3.6/appevent.pyrsz_ELessList.__getitem__N)�__name__�
__module__�__qualname__rrrrr	rsrc@s>eZdZdZdZdd�Zd
dd�Zedd	��Zed
d��Z	dS)�	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
        �:cCsX|j|j�}|j|jd�}t|�|_|jd|_|jd|_|jd|_|jd|_dS)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 
                �r��N)	�strip�
_SEPARATOR�splitrZ
_separated�klass�major�minorZdetail)r�name�strippedZ	separatedrrr	�__init__0s

zEventType.__init__FcCsr|jr|j|jkrdS|jr,|j|jkr,dS|jrB|j|jkrBdS|rn|j|jkrn|j|jkrn|j|jkrndSdS)zq
                Determines if the passed event type is a subtype
                of this event.
                FT)rrr)rZ
event_typeZexcludeSelfrrr	�
is_subtypeCszEventType.is_subtypecCst|�S)N)�str)rrrr	rUszEventType.namecCst|�S)N)r)rrrr	�valueYszEventType.valueN)F)
r
rr�__doc__rrr�propertyrrrrrr	r
s
r
)�stringrrrr
rrrr	�<module>s