
    fz                     @   S SK Jr  \" \\5      rS SKrS SKrS SKrS SKrSrS\R                  ;   a  \
" \5      eSSKJr  SSKJr  SSKJr  SS	KJr  SS
KJr  0 r\R$                  R'                  \R$                  R)                  \5      S5      r\R.                  " S5      r\\R                  \R                  '   \R2                  \l        \R4                  \l        \R4                  SS rSR8                  " \6 r\R<                  " 5          " S S\R.                  5      r\" S\5      \R                  S'   \" S\5      \R                  S'   \" S\5      \R                  S'   \" S\5      \R                  S'   \" S\5      \R                  S'   S r S r!S r"S r#SS jr$g)    )extend_pathNzWhen using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183gobject   )_gi)_API)
Repository)PyGIDeprecationWarning)PyGIWarning	overrideszgi._gobjectz{0}.{1}.{2}c                       \ rS rSrSrS rSrg)_DummyStaticModule=   Nc                      [        [        5      eN)AttributeError_static_binding_error)selfnames     -/usr/lib/python3/dist-packages/gi/__init__.py__getattr___DummyStaticModule.__getattr__@   s    233     )__name__
__module____qualname____firstlineno____path__r   __static_attributes__r   r   r   r   r   =   s    H4r   r   glibgiogtkzgtk.gdkc                     [        U [        5      (       a)  [        [        [        U R                  S5      5      5      nOU nU[        :  a  [        SU < S[        < S35      eg )N.zpygobject's version z! required, and available version z is not recent enough)	
isinstancestrtuplemapintsplitversion_info
ValueError__version__)versionversion_lists     r   check_versionr0   K   sS    '3SgmmC&89:l"*1;@ 
 	
 #r   c                    [         R                  " 5       n[        U[        5      (       d  [	        S5      eXR                  5       ;   a)  UR                  U 5      nX1:w  a  [	        SU < SU< 35      eU [        ;   a'  [        U    U:w  a  [	        SU < S[        U    < 35      eUR                  U 5      nU(       d  [	        SU -  5      eX;  a  [	        SU < SU< 35      eU[        U '   g)a  Ensures the correct versions are loaded when importing `gi` modules.

:param namespace: The name of module to require.
:type namespace: str
:param version: The version of module to require.
:type version: str
:raises ValueError: If module/version is already loaded, already required, or unavailable.

:Example:

.. code-block:: python

    import gi
    gi.require_version('Gtk', '3.0')

z'Namespace version needs to be a string.z
Namespace z  is already loaded with version z already requires version zNamespace %s not availablez not available for version N)	r   get_defaultr%   r&   r,   get_loaded_namespacesget_version	_versionsenumerate_versions)	namespacer.   
repositoryloaded_versionavailable_versionss        r   require_versionr;   X   s    " '')Jgs##BCC4466#//	:$'9 : : I)I"6'"A#Yy%9; < 	< $66yA5	ABB(#W. / 	/ #Iir   c                 L    U R                  5        H  u  p[        X5        M     g)a  Utility function for consolidating multiple `gi.require_version()` calls.

:param requires: The names and versions of modules to require.
:type requires: dict

:Example:

.. code-block:: python

    import gi
    gi.require_versions({'Gtk': '3.0', 'GLib': '2.0', 'Gio': '2.0'})
N)itemsr;   )requiresmodule_namemodule_versions      r   require_versionsrA      s      (0~~'7#4 (8r   c                 .    [         R                  U S 5      $ r   )r5   get)r7   s    r   get_required_versionrD      s    ==D))r   c                      [         R                  " X5        [
        R                  " SU 5        g! [         a  n[        [	        U5      5      eSnAff = f)ay  Ensure the given foreign marshaling module is available and loaded.

:param str namespace:
    Introspection namespace of the foreign module (e.g. "cairo")
:param symbol:
    Optional symbol typename to ensure a converter exists.
:type symbol: str or None
:raises: ImportError

:Example:

.. code-block:: python

    import gi
    import cairo
    gi.require_foreign('cairo')

Nzgi.repository)r   require_foreign	ExceptionImportErrorr&   	importlibimport_module)r7   symboles      r   rF   rF      sH    &"I. OY7  "#a&!!"s   0 
AAAr   )%pkgutilr   r   r   sysosrI   typesr   modulesrH    r   r   r   r	   r
   r5   pathjoindirname__file___overridesdir
ModuleType_gobject_PyGObject_APIpygobject_versionr+   formatr-   register_foreignr   r0   r;   rA   rD   rF   r   r   r   <module>r^      s  ,  x* 
 	  R  
+
,,    ' 	RWW__X6D M*!)H ,,  22 $$Q'""L1    4)) 4 )1FGF +I7LMI '/DEE '/DEE +I7LMI 

(#V5"*8r   