o
    3Gb                     @   s	  d dl Z d dlZd dlmZ ddlmZmZ ddlmZm	Z	 ddl
mZmZmZmZ ddlmZ d dlmZ ed	Zejd
kZejdkZejdkZg ZeZed e	Z	ed ercdZeee G dd deZed ester}dd Zed dd ZG dd de Z!G dd dej"Z"ee"Z"ed eserG dd dej#e"Z#ee#Z#ed ne Z#G dd dej$Z$ee$Z$ed eserG dd dej%Z%ee%Z%ed G d d! d!ej&Z&ee&Z&ed! G d"d# d#ej'Z'ee'Z'ed# G d$d% d%ej(Z(ee(Z(ed% G d&d' d'ej)e#Z)ee)Z)ed' es-er?G d(d) d)ej*Z*ee*Z*ed) esEerWG d*d+ d+ej+Z+ee+Z+ed+ es]eroG d,d- d-ej,Z,ee,Z,ed- d.d/ Z-G d0d1 d1ej.Z.ee.Z.ed1 erej/j0Z1n
eej/j0d2ed3d4Z1G d5d6 d6ej/Z/ee/Z/ed6 G d7d8 d8ej2e#Z2ee2Z2ed8 eserG d9d: d:ej3e2Z3ee3Z3ed: eserG d;d< d<ej4Z4ee4Z4ed< G d=d> d>ej5Z5ee5Z5ed> eserG d?d@ d@ej6Z6ee6Z6ed@ eser/G dAdB dBej7Z7ee7Z7edB G dCdD dDej8Z8ee8Z8edD esGerYG dEdF dFej9Z9ee9Z9edF G dGdH dHej:Z:ee:Z:edH G dIdJ dJej;Z;ee;Z;edJ G dKdL dLej<Z<ee<Z<edL G dMdN dNej=Z=ee=Z=edN G dOdP dPej>Z>ee>Z>edP G dQdR dRej?Z?ee?Z?edR eserG dSdT dTej@Z@ee@Z@edT G dUdV dVejAe>e?ZAeeAZAedV G dWdX dXe ZBedX G dYdZ dZe ZCedZ G d[d\ d\ejDZDeeDZDed\ G d]d^ d^ejEe>e?ZEeeEZEed^ G d_d` d`ejFe#ZFeeFZFed` G dadb dbejGZGeeGZGedb G dcdd ddejHZHeeHZHedd esnerG dedf dfejIe#ZIeeIZIedf G dgdh dhejJZJeeJZJedh G didj djejKZKeeKZKedj G dkdl dlejLZLeeLZLedl eserG dmdn dnejMe#ZMeeMZMedn G dodp dpejNZNeeNZNedp eserG dqdr drejOZOeeOZOedr G dsdt dtejPZPeePZPedt eser$G dudv dvejQZQeeQZQedv es*er`G dwdx dxejRZReeRZRedx G dydz dzejSZSeeSZSedz G d{d| d|ejTZTeeTZTed| G d}d~ d~ejUZUeeUZUed~ erG dd dejVZVeeVZVed erG dd dejWZWeeWZWed eserejXZYeejXdd ZXejZZ[eejZdd ZZesereej\Z\ed ere] Z^dS e]e j_\Z^Z_e`e_e __dS )    N)GObject   )wakeup_on_signalregister_sigint_fallback)Template_extract_handler_and_args)overridestrip_boolean_resultdeprecated_initwrap_list_store_sort_func)get_introspection_module)PyGIDeprecationWarningGtkz2.0z3.0z4.0r   r   aB  You have imported the Gtk 2.0 module.  Because Gtk 2.0 was not designed for use with introspection some of the interfaces and API will fail.  As such this is not supported by the pygobject development team and we encourage you to port your app to Gtk 3 or greater. PyGTK is the recomended python module to use with Gtk 2.0c                   @   s   e Zd ZdS )PyGTKDeprecationWarningN)__name__
__module____qualname__ r   r   2/usr/lib/python3/dist-packages/gi/overrides/Gtk.pyr   <   s    r   c                 C   s4   g }| D ]}t |tjstjj| }|| q|S )zCreate a list of TargetEntry items from a list of tuples in the form (target, flags, info)

        The list can also contain existing TargetEntry items in which case the existing entry
        is re-used in the return list.
        )
isinstancer   TargetEntrynewappend)targetstarget_entriesentryr   r   r   _construct_target_listD   s   r   c           
      C   s   t ||\}}|tjj@ }	|d ur-|	r |j|||g|R   d S |j|||g|R   d S |	r;|j||g|R   d S |j||g|R   d S N)r   r   ConnectFlagsAFTERconnect_object_afterconnect_objectconnect_afterconnect)
buildergobjsignal_namehandler_nameconnect_objflags
obj_or_maphandlerargsafterr   r   r   _builder_connect_callbackT   s   r.   c                   @   s$   e Zd Zdd Zdd Zdd ZdS )_FreezeNotifyManagerc                 C   s
   || _ d S r   )obj)selfr0   r   r   r   __init__e      
z_FreezeNotifyManager.__init__c                 C   s   d S r   r   r1   r   r   r   	__enter__h      z_FreezeNotifyManager.__enter__c                 C   s   | j   d S r   )r0   thaw_child_notify)r1   exc_type	exc_value	tracebackr   r   r   __exit__k      z_FreezeNotifyManager.__exit__N)r   r   r   r2   r5   r;   r   r   r   r   r/   d   s    r/   c                       s   e Zd ZeejjZerdd Zdd Z	e
ser fddZe
s"er( fddZe
s,er2 fd	d
Ze
s6er?dddZ  ZS   ZS )Widgetc                 C   s   |t | v S r   )listr1   childr   r   r   __contains__t      zWidget.__contains__c                 c   s(    |   }|r|V  | }|sd S d S r   )get_first_childget_next_siblingr?   r   r   r   __iter__w   s   zWidget.__iter__c                    s   t t|   t| S r   )superr=   freeze_child_notifyr/   r4   	__class__r   r   rG   ~   s   zWidget.freeze_child_notifyc                    8   |d urt |tjstjt|}tt| | d S r   )r   r   
TargetListr   r   rF   r=   drag_dest_set_target_listr1   target_listrH   r   r   rL         z Widget.drag_dest_set_target_listc                    rJ   r   )r   r   rK   r   r   rF   r=   drag_source_set_target_listrM   rH   r   r   rP      rO   z"Widget.drag_source_set_target_listNc                 C   sN   |d u r|  |}|d u rtd| |f t|j}tj| || | S )Nz/Class "%s" does not contain style property "%s")	find_style_property
ValueErrorr   Value
value_typer   r=   style_get_property	get_value)r1   property_namevaluepropr   r   r   rU      s   
zWidget.style_get_propertyr   )r   r   r   r	   r   r=   translate_coordinatesGTK4rA   rE   GTK2GTK3rG   rL   rP   rU   __classcell__r   r   rH   r   r=   o   s    r=   c                   @   sV   e Zd Zdd Zdd Zdd Zdd ZeZdd
dZdd Z	dd Z
eejjZd	S )	Containerc                 C      t |  S r   )lenget_childrenr4   r   r   r   __len__   rB   zContainer.__len__c                 C   s   ||   v S r   )rb   r?   r   r   r   rA      rB   zContainer.__contains__c                 C   r`   r   )iterrb   r4   r   r   r   rE      rB   zContainer.__iter__c                 C      dS NTr   r4   r   r   r   __bool__   r6   zContainer.__bool__Nc                 C   sP   |d u r|  |}|d u rtd| |f t|j}tj| ||| | S )Nz/Class "%s" does not contain child property "%s")	find_child_propertyrR   r   rS   rT   r   r_   child_get_propertyrV   )r1   r@   rW   rX   rY   r   r   r   ri      s   
zContainer.child_get_propertyc                    s    fdd|D S )z<Returns a list of child property values for the given names.c                    s   g | ]}  |qS r   )ri   ).0namer@   r1   r   r   
<listcomp>   s    z'Container.child_get.<locals>.<listcomp>r   )r1   r@   
prop_namesr   rl   r   	child_get   s   zContainer.child_getc                 K   s0   |  D ]\}}|dd}| ||| qdS )z=Set a child properties on the given child to key/value pairs._-N)itemsreplacechild_set_property)r1   r@   kwargsrk   rX   r   r   r   	child_set   s   zContainer.child_setr   )r   r   r   rc   rA   rE   rg   __nonzero__ri   ro   rv   r	   r   r_   get_focus_chainr   r   r   r   r_      s    
r_   c                       s,   e Zd Z fddZeejjddZ  ZS )Editablec                    s   t t| |d|S N)rF   ry   insert_text)r1   textpositionrH   r   r   r|         zEditable.insert_textr   fail_ret)	r   r   r   r|   r	   r   ry   get_selection_boundsr^   r   r   rH   r   ry      s    ry   c                   @      e Zd ZeejjdedZdS )Actionrk   labeltooltipstock_id	arg_namescategoryN)r   r   r   r
   r   r   r2   r   r   r   r   r   r      
    
r   c                   @   r   )RadioActionrk   r   r   r   rX   r   N)r   r   r   r
   r   r   r2   r   r   r   r   r   r      r   r   c                   @   s<   e Zd ZeejjdedZd
ddZd
ddZ	ddd	Z
dS )ActionGroup)rk   r   Nc                    sJ   zt | W n ty   tdw d fdd	}|D ]}||  qdS )a  
            The add_actions() method is a convenience method that creates a number
            of gtk.Action  objects based on the information in the list of action
            entry tuples contained in entries and adds them to the action group.
            The entry tuples can vary in size from one to six items with the
            following information:

                * The name of the action. Must be specified.
                * The stock id for the action. Optional with a default value of None
                  if a label is specified.
                * The label for the action. This field should typically be marked
                  for translation, see the set_translation_domain() method. Optional
                  with a default value of None if a stock id is specified.
                * The accelerator for the action, in the format understood by the
                  gtk.accelerator_parse() function. Optional with a default value of
                  None.
                * The tooltip for the action. This field should typically be marked
                  for translation, see the set_translation_domain() method. Optional
                  with a default value of None.
                * The callback function invoked when the action is activated.
                  Optional with a default value of None.

            The "activate" signals of the actions are connected to the callbacks and
            their accel paths are set to <Actions>/group-name/action-name.
            entries must be iterableNc                    sL   t | |||d}|d urd u r|d| n|d|  || d S Nr   activate)r   r#   add_action_with_accel)rk   r   r   acceleratorr   callbackactionr1   	user_datar   r   _process_action  s   z0ActionGroup.add_actions.<locals>._process_action)NNNNNrd   	TypeErrorr1   entriesr   r   er   r   r   add_actions   s   

zActionGroup.add_actionsc                    sJ   zt | W n ty   tdw d fdd	}|D ]}||  qdS )a  
            The add_toggle_actions() method is a convenience method that creates a
            number of gtk.ToggleAction objects based on the information in the list
            of action entry tuples contained in entries and adds them to the action
            group. The toggle action entry tuples can vary in size from one to seven
            items with the following information:

                * The name of the action. Must be specified.
                * The stock id for the action. Optional with a default value of None
                  if a label is specified.
                * The label for the action. This field should typically be marked
                  for translation, see the set_translation_domain() method. Optional
                  with a default value of None if a stock id is specified.
                * The accelerator for the action, in the format understood by the
                  gtk.accelerator_parse() function. Optional with a default value of
                  None.
                * The tooltip for the action. This field should typically be marked
                  for translation, see the set_translation_domain() method. Optional
                  with a default value of None.
                * The callback function invoked when the action is activated.
                  Optional with a default value of None.
                * A flag indicating whether the toggle action is active. Optional
                  with a default value of False.

            The "activate" signals of the actions are connected to the callbacks and
            their accel paths are set to <Actions>/group-name/action-name.
            r   NFc                    sX   t j| |||d}|| |d ur$d u r|d| n|d|  || d S r   )r   ToggleAction
set_activer#   r   )rk   r   r   r   r   r   	is_activer   r   r   r   r   ?  s   
z7ActionGroup.add_toggle_actions.<locals>._process_action)NNNNNFr   r   r   r   r   add_toggle_actions  s   
zActionGroup.add_toggle_actionsc           	         s   zt | W n ty   tdw d}d fdd	}|D ]}||g|R  }|du r.|}q|durL|durN|du rC|d| dS |d|| dS dS dS )a  
            The add_radio_actions() method is a convenience method that creates a
            number of gtk.RadioAction objects based on the information in the list
            of action entry tuples contained in entries and adds them to the action
            group. The entry tuples can vary in size from one to six items with the
            following information:

                * The name of the action. Must be specified.
                * The stock id for the action. Optional with a default value of None
                  if a label is specified.
                * The label for the action. This field should typically be marked
                  for translation, see the set_translation_domain() method. Optional
                  with a default value of None if a stock id is specified.
                * The accelerator for the action, in the format understood by the
                  gtk.accelerator_parse() function. Optional with a default value of
                  None.
                * The tooltip for the action. This field should typically be marked
                  for translation, see the set_translation_domain() method. Optional
                  with a default value of None.
                * The value to set on the radio action. Optional with a default
                  value of 0. Should be specified in applications.

            The value parameter specifies the radio action that should be set
            active. The "changed" signal of the first radio action is connected to
            the on_change callback (if specified and not None) and the accel paths
            of the actions are set to <Actions>/group-name/action-name.
            r   Nr   c                    sB   t |||||d}tr||  |kr|d  || |S )Nr   T)r   r]   
join_groupr   r   )group_sourcerk   r   r   r   r   entry_valuer   r1   rX   r   r   r   q  s   

z6ActionGroup.add_radio_actions.<locals>._process_actionchanged)NNNNr   )rd   r   r#   )	r1   r   rX   	on_changer   first_actionr   r   r   r   r   r   add_radio_actionsN  s"   zActionGroup.add_radio_actionsr   )NNN)r   r   r   r
   r   r   r2   r   r   r   r   r   r   r   r   r      s    

-1r   c                   @   s   e Zd Zdd ZdddZdS )	UIManagerc                 C   *   t |ts	tdt|}tj| ||S Nzbuffer must be a string)r   strr   _get_utf8_lengthr   r   add_ui_from_stringr1   bufferlengthr   r   r   r        
zUIManager.add_ui_from_stringr{   c                 C   s   t j| ||S r   )r   r   insert_action_groupr   r   r   r   r     s   zUIManager.insert_action_groupNr{   )r   r   r   r   r   r   r   r   r   r     s    r   c                   @      e Zd ZeejjZdS )ComboBoxN)r   r   r   r	   r   r   get_active_iterr   r   r   r   r         r   c                   @   r   )Box)homogeneousspacingr   N)r   r   r   r
   r   r   r2   r   r   r   r   r   r     r   r   c                   @   s(   e Zd Zeejjddejjie	dZdS )	SizeGroup)moder   )r   deprecated_defaultsr   N)
r   r   r   r
   r   r   r2   SizeGroupModeVERTICALr   r   r   r   r   r     s    

r   c                   @   r   )MenuItemr   r   N)r   r   r   r
   r   r   r2   r   r   r   r   r   r     r   r   c                 C   s*   t | tsJ t | ts| d} t| S )Nzutf-8)r   r   bytesencodera   )stringr   r   r   r     s   

r   c                       sN   e Zd ZerddlmZ e Zd fdd	Zndd Zdd	 Z	d
d Z
  ZS )Builderr   )define_builder_scopeNc                    s*   t t|   |r| t| d S d S r   )rF   r   r2   	set_scopeBuilderScope)r1   scope_object_or_maprH   r   r   r2     s   zBuilder.__init__c                 C   s   |  t| dS )a  Connect signals specified by this builder to a name, handler mapping.

            Connect signal, name, and handler sets specified in the builder with
            the given mapping "obj_or_map". The handler/value aspect of the mapping
            can also contain a tuple in the form of (handler [,arg1 [,argN]])
            allowing for extra arguments to be passed to the handler. For example:

            .. code-block:: python

                builder.connect_signals({'on_clicked': (on_clicked, arg1, arg2)})
            N)connect_signals_fullr.   )r1   r*   r   r   r   connect_signals  s   zBuilder.connect_signalsc                 C   r   r   )r   r   r   r   r   r   add_from_stringr   r   r   r   r     r   zBuilder.add_from_stringc                 C   s,   t |ts	tdt|}tj| |||S r   )r   r   r   r   r   r   add_objects_from_string)r1   r   
object_idsr   r   r   r   r     s   
zBuilder.add_objects_from_stringr   )r   r   r   r[   _gtktemplater   r   r2   r   r   r   r^   r   r   rH   r   r     s    r   )type   )r   r   
stacklevelc                   @      e Zd Zdd ZdS )Windowc                 O   s&   t stdt| g|R i | d S )NzRGtk couldn't be initialized. Use Gtk.init_check() if you want to handle this case.)initializedRuntimeError_window_initr1   r,   ru   r   r   r   r2     s
   zWindow.__init__N)r   r   r   r2   r   r   r   r   r         r   c                   @   sd   e Zd Zeser,dZeejj	ddddde
dZdd	 Z	d
d Zedd Zedd Zdd ZdS )Dialog)titleparentr)   buttons_buttons_property)r   transient_forr)   add_buttonsr   )r)   r   r   r   )r   r   )r   ignoredeprecated_aliasesr   c                 O   s   |  }tt| j|}|| d}| jtkr#| jjtjkr#|d7 }|dd }|d urBt	|t
jsBtjdt|d |dd  nd }|dd}|rhtjdt|d |t
jj@ r^d	|d
< |t
jj@ rhd	|d< | j|i | |ry| j|  d S d S )Nr      r   zThe "buttons" argument must be a Gtk.ButtonsType enum value. Please use the "add_buttons" method for adding buttons. See: https://wiki.gnome.org/PyGObject/InitializerDeprecationsr   r)   r   zThe "flags" argument for dialog construction is deprecated. Please use initializer keywords: modal=True and/or destroy_with_parent=True. See: https://wiki.gnome.org/PyGObject/InitializerDeprecationsTmodaldestroy_with_parent)copydictzip_old_arg_namesupdaterI   r   r2   getr   r   ButtonsTypewarningswarnr   popDialogFlagsMODALDESTROY_WITH_PARENT_initr   )r1   r,   ru   
new_kwargs
old_kwargsr   r   r)   r   r   r   r2     s4   
zDialog.__init__c              	   O   s~   t | j0 t  tjj| g|R i |W  d    W  d    S 1 s(w   Y  W d    d S 1 s8w   Y  d S r   )r   destroyr   r   r   runr   r   r   r   r   F  s   "z
Dialog.runc                 C      |   S r   )get_action_areadialogr   r   r   <lambda>K      zDialog.<lambda>c                 C   r   r   )get_content_arear   r   r   r   r  L  r  c                 G   s*   dd }||D ]
\}}|  || qdS )a  
        The add_buttons() method adds several buttons to the Gtk.Dialog using
        the button data passed as arguments to the method. This method is the
        same as calling the Gtk.Dialog.add_button() repeatedly. The button data
        pairs - button text (or stock ID) and a response ID integer are passed
        individually. For example:

        .. code-block:: python

            dialog.add_buttons(Gtk.STOCK_OPEN, 42, "Close", Gtk.ResponseType.CLOSE)

        will add "Open" and "Close" buttons to dialog.
        c                 s   sT    | r(z
| dd \}}W n t y   t dw | dd  } ||fV  | sd S d S )Nr   r   z%Must pass an even number of arguments)rR   )btrr   r   r   _button\  s   
z#Dialog.add_buttons.<locals>._buttonN)
add_button)r1   r,   r  r}   responser   r   r   r   N  s   	zDialog.add_buttonsN)r   r   r   r\   r]   r   r
   r   r   r2   r   r   r   propertyaction_areavboxr   r   r   r   r   r     s     *r   c                   @   s6   e Zd ZeejjddddedZdd Zdd	 Z	d
S )MessageDialog)r   r)   message_typer   message_formatr  r   )r}   r  r   r   r   c                 C      |  dd |  d| d S )Nsecondary-use-markupFsecondary-textset_propertyr1   r  r   r   r   format_secondary_textv     z#MessageDialog.format_secondary_textc                 C   r  )Nr  Tr  r  r  r   r   r   format_secondary_markupz  r  z%MessageDialog.format_secondary_markupN)
r   r   r   r
   r   r  r2   r   r  r  r   r   r   r   r  n  s    r  c                   @   r   )ColorSelectionDialogr   r   N)r   r   r   r
   r   r  r2   r   r   r   r   r   r    r   r  c                   @   r   )FileChooserDialog)r   r   r   r   r   N)r   r   r   r
   r   r  r2   r   r   r   r   r   r    r   r  c                   @   r   )FontSelectionDialogr  r   N)r   r   r   r
   r   r  r2   r   r   r   r   r   r    r   r  c                   @   s$   e Zd ZeejjdddiedZdS )RecentChooserDialog)r   r   recent_managerr   r  managerr  N)r   r   r   r
   r   r  r2   r   r   r   r   r   r    s    
r  c                   @   sJ   e Zd Zesereejjde	dZe
ejjZe
ejjZe
ejjZdS )IconViewmodelr   N)r   r   r   r\   r]   r
   r   r!  r2   r   r	   get_item_at_posget_visible_rangeget_dest_item_at_posr   r   r   r   r!    s    r!  c                   @   r   )
ToolButton)r   r   N)r   r   r   r
   r   r'  r2   r   r   r   r   r   r'    r   r'  c                   @   r   )	IMContextN)r   r   r   r	   r   r(  get_surroundingr   r   r   r   r(    r   r(  c                   @   r   )
RecentInfoN)r   r   r   r	   r   r*  get_application_infor   r   r   r   r*    r   r*  c                   @   s^   e Zd ZdddZdddZddd	Zdd
dZdd Zdd ZdddZ	e
ejjddZdS )
TextBufferNc                 K   s&   t jdd|i|}|  | |S )a  Creates a tag and adds it to the tag table of the TextBuffer.

        :param str tag_name:
            Name of the new tag, or None
        :param **properties:
            Keyword list of properties and their values

        This is equivalent to creating a Gtk.TextTag and then adding the
        tag to the buffer's tag table. The returned tag is owned by
        the buffer's tag table.

        If ``tag_name`` is None, the tag is anonymous.

        If ``tag_name`` is not None, a tag called ``tag_name`` must not already
        exist in the tag table for this buffer.

        Properties are passed as a keyword list of names and values (e.g.
        foreground='DodgerBlue', weight=Pango.Weight.BOLD)

        :returns:
            A new tag.
        rk   Nr   )r   TextTagget_tag_tableadd)r1   tag_name
propertiestagr   r   r   
create_tag  s   zTextBuffer.create_tagFc                 C   s   t j| |||S r   )r   r,  create_mark)r1   	mark_namewhereleft_gravityr   r   r   r4       zTextBuffer.create_markr{   c                 C   s   t j| || d S r   )r   r,  set_textr1   r}   r   r   r   r   r9    r   zTextBuffer.set_textc                 C   s0   t |tstdt| tj| ||| d S Nztext must be a string, not %s)r   r   r   r   r   r,  insert)r1   rd   r}   r   r   r   r   r<    s   
zTextBuffer.insertc                 G   sB   |  }| || |sd S | |}|D ]	}| ||| qd S r   )
get_offsetr<  get_iter_at_offset	apply_tag)r1   rd   r}   tagsstart_offsetstartr2  r   r   r   insert_with_tags  s   
zTextBuffer.insert_with_tagsc                 G   sN   g }|D ]}|   |}|std| || q| j||g|R   d S )Nzunknown text tag: %s)r.  lookuprR   r   rC  )r1   rd   r}   r@  tag_objsr2  tag_objr   r   r   insert_with_tags_by_name
  s   z#TextBuffer.insert_with_tags_by_namec                 C   s.   t |tstdt| tj| || d S r;  )r   r   r   r   r   r,  insert_at_cursorr:  r   r   r   rH    s   
zTextBuffer.insert_at_cursorr   r   r   )Fr   )r   r   r   r3  r4  r9  r<  rC  rG  rH  r	   r   r,  r   r   r   r   r   r,    s    




r,  c                   @   s$   e Zd ZeejjZeejjZdS )TextIterN)r   r   r   r	   r   rI  forward_searchbackward_searchr   r   r   r   rI  "  s    rI  c                       s(  e Zd Zdd Zdd ZesereZdd Z fddZ	d	d
 Z
dd Zdd Zdd Zdd ZeejjZeejjZeejjZeejjZeejjedZ fddZ fddZ fddZdd Zdd Zdd Zd d! Z fd"d#Z fd$d%Z  fd&d'Z! fd(d)Z" fd*d+Z#  Z$S ),	TreeModelc                 C   s
   |  d S r   )iter_n_childrenr4   r   r   r   rc   ,  r3   zTreeModel.__len__c                 C   re   rf   r   r4   r   r   r   rg   /  r6   zTreeModel.__bool__c                 C   sx   t |tjr|S t |tr&|dk r&t| | }|dk r!td| | |S z| |}W |S  ty;   td| w )Nr   zrow index is out of bounds: %dzcould not find tree path '%s')r   r   TreeIterintra   
IndexErrorget_iterrR   )r1   keyindexaiterr   r   r   _getiter6  s   
zTreeModel._getiterc                    s&   t t| }t|dr| S t| S )Nsort_new_with_model)rF   rL  hasattrrV  TreeModelSortnew_with_model)r1   super_objectrH   r   r   rV  E  s   


zTreeModel.sort_new_with_modelc                 C   s   t |tjr|S t|S r   )r   r   TreePathr1   pathr   r   r   _coerce_pathL  s   zTreeModel._coerce_pathc                 C   s   |  |}t| |S r   )rU  TreeModelRowr1   rR  rT  r   r   r   __getitem__R  s   

zTreeModel.__getitem__c                 C   s   | | }|  |j| d S r   )set_rowrd   )r1   rR  rX   rowr   r   r   __setitem__V  s   zTreeModel.__setitem__c                 C   s   |  |}| | d S r   )rU  remover`  r   r   r   __delitem__Z  s   
zTreeModel.__delitem__c                 C   s   t | |  S r   )TreeModelRowIterget_iter_firstr4   r   r   r   rE   ^  r<   zTreeModel.__iter__zinvalid tree pathc                    s2   |  |}tt| |\}}|std| |S )Nzinvalid tree path '%s')r^  rF   rL  rQ  rR   )r1   r]  successrT  rH   r   r   rQ  h  s
   
zTreeModel.get_iterc                    $   |  }tt| |}|r|S d S r   )r   rF   rL  	iter_next)r1   rT  	next_iterri  rH   r   r   rk  o  
   zTreeModel.iter_nextc                    rj  r   )r   rF   rL  iter_previous)r1   rT  	prev_iterri  rH   r   r   rn  u  rm  zTreeModel.iter_previousc                 C   sv   t |tr	td|  }t||krtdg }g }t|D ]\}}|d u r(q|| || || q||fS )Nz%Expected a list or tuple, but got strz1row sequence has the incorrect number of elements)	r   r   r   get_n_columnsra   rR   	enumerater   _convert_value)r1   rc  	n_columnsresultcolumnscur_colrX   r   r   r   _convert_row{  s   
zTreeModel._convert_rowc                 C   s.   |  |\}}|D ]}| ||||  q	d S r   )rw  	set_value)r1   treeiterrc  converted_rowru  columnr   r   r   rb    s   zTreeModel.set_rowc                 C   s"   t |tjr|S t| ||S )z5Convert value to a GObject.Value of the expected type)r   r   rS   get_column_type)r1   r{  rX   r   r   r   rr    s   zTreeModel._convert_valuec                 G   sZ   |   }g }|D ] }t|tstd|dk s||krtd|| || qt|S )Nzcolumn numbers must be intsr   zcolumn number is out of range)rp  r   rO  r   rR   r   rV   tuple)r1   ry  ru  rs  valuescolr   r   r   r     s   
zTreeModel.getc                       t t| | ||S r   )rF   rL  row_changedr^  r1   r]  rd   rH   r   r   r       zTreeModel.row_changedc                    r  r   )rF   rL  row_insertedr^  r  rH   r   r   r    r  zTreeModel.row_insertedc                    r  r   )rF   rL  row_has_child_toggledr^  r  rH   r   r   r    s   zTreeModel.row_has_child_toggledc                    s   t t| | |S r   )rF   rL  row_deletedr^  r\  rH   r   r   r       zTreeModel.row_deletedc                    s   t t| | |||S r   )rF   rL  rows_reorderedr^  )r1   r]  rd   	new_orderrH   r   r   r    s   zTreeModel.rows_reordered)%r   r   r   rc   rg   r\   r]   rw   rU  rV  r^  ra  rd  rf  rE   r	   r   rL  rh  iter_childreniter_nth_childiter_parentget_iter_from_stringrR   rQ  rk  rn  rw  rb  rr  r   r  r  r  r  r  r^   r   r   rH   r   rL  +  s>    rL  c                       s<   e Zd ZeejjddZd fdd	Zd fdd	Z  Z	S )	TreeSortable)NNr   Nc                       t t| ||| d S r   )rF   r  set_sort_func)r1   sort_column_id	sort_funcr   rH   r   r   r    r  zTreeSortable.set_sort_funcc                       t t| || d S r   )rF   r  set_default_sort_func)r1   r  r   rH   r   r   r    r  z"TreeSortable.set_default_sort_funcr   )
r   r   r   r	   r   r  get_sort_column_idr  r  r^   r   r   rH   r   r    s    r  c                   @   s:   e Zd ZeejjdedZeejdse	dd Z
dS dS )rX  r"  r   rY  c                 C   s
   t |S r   )rL  rV  )r1   child_modelr   r   r   rY       
zTreeModelSort.new_with_modelN)r   r   r   r
   r   rX  r2   r   rW  classmethodrY  r   r   r   r   rX    s    rX  c                   @   s   e Zd Zdd ZeejdsejjZn
eejdsejjZdd Z	ddd	Z
dd
dZdddZdddZdddZdd Zdd ZdS )	ListStorec                 G      t j|  | | d S r   )r   r  r2   set_column_typesr1   column_typesr   r   r   r2        zListStore.__init__insert_with_valuesvinsert_with_valuesc                 C   s:   |d ur|  |\}}| |||}|S tj| |}|S r   )rw  r  r   r  r<  )r1   r~   rc  ru  ry  r   r   r   
_do_insert  s   zListStore._do_insertNc                 C   s   |r|  d|S tj| S rz   )r  r   r  r   r1   rc  r   r   r   r     s   zListStore.appendc                 C   s   |  d|S Nr   r  r  r   r   r   prepend  rB   zListStore.prependc                 C   s   |  ||S r   r  )r1   r~   rc  r   r   r   r<    rB   zListStore.insertc                 C   sB   |d ur|d u rd}n	|  | d }| ||S tj| |S rz   )get_pathget_indicesr  r   r  insert_beforer1   siblingrc  r~   r   r   r   r    s   zListStore.insert_beforec                 C   sF   |d ur|d u rd}n|  | d d }| ||S tj| |S Nr   r{   r   )r  r  r  r   r  insert_afterr  r   r   r   r    s   zListStore.insert_afterc                 C   "   |  ||}tj| ||| d S r   )rr  r   r  rx  r1   ry  r{  rX   r   r   r   rx       zListStore.set_valuec                    s    fdd}|rYt |d tr!||d d d |dd d  d S t |d ttfr?t|dkr4td||d |d  d S t |d trU|t|d |d   d S tdd S )Nc                    x   t | t |krtdg }g }t| |D ]\}}t|ts"td|| | || qtj	 || d S Nz7The number of columns do not match the number of valuesz0TypeError: Expected integer argument for column.)
ra   r   r   r   rO  r   rr  r   r  setcolsvalsru  r~  col_numrX   r1   ry  r   r   
_set_lists     

z!ListStore.set.<locals>._set_listsr   r   r   Too many argumentsArgument list must be in the form of (column, value, ...), ((columns,...), (values, ...)) or {column: value}.  No -1 termination is needed.)r   rO  r}  r>   ra   r   r   r~  r1   ry  r,   r  r   r  r   r       "zListStore.setr   )r   r   r   r2   rW  r   r  r  r  r  r   r  r<  r  r  rx  r  r   r   r   r   r    s    

	





r  c                   @   s|   e Zd Zdd Zedd Zedd Zedd Zed	d
 Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd ZdS )r_  c                 C   sh   t |tjstdt|j || _t |tjr ||| _	d S t |tj
r+|| _	d S tdt|j )Nz expected Gtk.TreeModel, %s foundz/expected Gtk.TreeIter or Gtk.TreePath, %s found)r   r   rL  r   r   r   r#  r[  rQ  rd   rN  )r1   r#  iter_or_pathr   r   r   r2   ?  s   
zTreeModelRow.__init__c                 C   s   | j | jS r   )r#  r  rd   r4   r   r   r   r]  K  s   zTreeModelRow.pathc                 C   r   r   )get_nextr4   r   r   r   nextO     zTreeModelRow.nextc                 C   r   r   )get_previousr4   r   r   r   previousS  r  zTreeModelRow.previousc                 C   r   r   )
get_parentr4   r   r   r   r   W  r  zTreeModelRow.parentc                 C   "   | j | j}|rt| j |S d S r   )r#  rk  rd   r_  )r1   rl  r   r   r   r  [     zTreeModelRow.get_nextc                 C   r  r   )r#  rn  rd   r_  )r1   ro  r   r   r   r  `  r  zTreeModelRow.get_previousc                 C   r  r   )r#  r  rd   r_  )r1   parent_iterr   r   r   r  e  r  zTreeModelRow.get_parentc                    s   t |tr#| j krtd| |dk r |} j j|S t |trK|	 j \}}}g }t
|||D ]}| j j| q;|S t |trY fdd|D S tdt|j )N!column index is out of bounds: %dr   c                    s   g | ]} | qS r   r   )rj   kr4   r   r   rm   x  s    z,TreeModelRow.__getitem__.<locals>.<listcomp>z0indices must be integers, slice or tuple, not %s)r   rO  r#  rp  rP  _convert_negative_indexrV   rd   sliceindicesranger   r}  r   r   r   )r1   rR  rB  stopstepalistir   r4   r   ra  j  s"   



zTreeModelRow.__getitem__c           
      C   s0  t |tr&|| j krtd| |dk r| |}| j| j|| d S t |trf|	| j \}}}t
|||}t|t|krPtdt|t|f t|D ]\}}| j| j|||  qTd S t |trt|t|krtdt|t|f t||D ]\}	}|| |	< qd S tdt|j )Nr  r   z9attempt to assign sequence of size %d to slice of size %dz<attempt to assign sequence of size %d to sequence of size %dz2indices must be an integer, slice or tuple, not %s)r   rO  r#  rp  rP  r  rx  rd   r  r  r  ra   rR   rq  r}  r   r   r   r   )
r1   rR  rX   rB  r  r  	indexListr  vr  r   r   r   rd  }  s>   




zTreeModelRow.__setitem__c                 C   s&   | j  | }|dk rtd| |S )Nr   r  )r#  rp  rP  )r1   rS  	new_indexr   r   r   r    s   z$TreeModelRow._convert_negative_indexc                 C   s   | j | j}t| j |S r   )r#  r  rd   rg  )r1   
child_iterr   r   r   iterchildren  s   zTreeModelRow.iterchildrenN)r   r   r   r2   r
  r]  r  r  r   r  r  r  ra  rd  r  r  r   r   r   r   r_  =  s"    



r_  c                   @   s0   e Zd Zdd Zdd ZesereZdd ZdS )rg  c                 C   s   || _ || _d S r   )r#  rd   )r1   r#  rT  r   r   r   r2     s   
zTreeModelRowIter.__init__c                 C   s,   | j stt| j| j }| j| j | _ |S r   )rd   StopIterationr_  r#  rk  r  r   r   r   __next__  s
   zTreeModelRowIter.__next__c                 C   s   | S r   r   r4   r   r   r   rE     r6   zTreeModelRowIter.__iter__N)	r   r   r   r2   r  r\   r]   r  rE   r   r   r   r   rg    s    rg  c                       sv   e Zd ZdddZ fddZdd Zdd	 Zd
d Zdd Zdd Z	dd Z
dd Zdd Zdd Zdd Z  ZS )r[  r   c                 C   sr   t |tr
t|}nt |tsddd |D }t|dkr%td| zt|W S  ty8   td| w )N:c                 s   s    | ]}t |V  qd S r   )r   )rj   valr   r   r   	<genexpr>  s    z#TreePath.__new__.<locals>.<genexpr>r   z-could not parse subscript '%s' as a tree path)r   rO  r   joinra   r   r[  new_from_string)clsr]  r   r   r   __new__  s   


zTreePath.__new__c                    s   t t|   d S r   )rF   r[  r2   r   rH   r   r   r2     r8  zTreePath.__init__c                 C   s   |   pdS )N )	to_stringr4   r   r   r   __str__  rB   zTreePath.__str__c                 C   s   |d uo
|  |dk S r  comparer1   otherr   r   r   __lt__  r  zTreePath.__lt__c                 C   s   |d uo
|  |dkS r  r  r  r   r   r   __le__  r  zTreePath.__le__c                 C   s   |d uo
|  |dkS r  r  r  r   r   r   __eq__  r  zTreePath.__eq__c                 C   s   |d u p
|  |dkS r  r  r  r   r   r   __ne__  r  zTreePath.__ne__c                 C   s   |d u p
|  |dkS r  r  r  r   r   r   __gt__  r  zTreePath.__gt__c                 C   s   |d u p
|  |dkS r  r  r  r   r   r   __ge__  r  zTreePath.__ge__c                 C   r`   r   )rd   r  r4   r   r   r   rE     rB   zTreePath.__iter__c                 C   r   r   )	get_depthr4   r   r   r   rc     s   zTreePath.__len__c                 C   s   |   | S r   )r  )r1   rS  r   r   r   ra    rB   zTreePath.__getitem__)r   )r   r   r   r  r2   r  r  r  r  r  r  r  rE   rc   ra  r^   r   r   rH   r   r[    s    
r[  c                   @   s^   e Zd Zdd Zdd ZdddZddd	Zdd
dZdddZdddZ	dd Z
dd ZdS )	TreeStorec                 G   r  r   )r   r  r2   r  r  r   r   r   r2     r  zTreeStore.__init__c                 C   s>   |d ur|  |\}}| ||||}|S tj| ||}|S r   )rw  r  r   r  r<  )r1   r   r~   rc  ru  ry  r   r   r   r    s   zTreeStore._do_insertNc                 C      |  |d|S rz   r  r1   r   rc  r   r   r   r     r<   zTreeStore.appendc                 C   r  r  r  r  r   r   r   r    r<   zTreeStore.prependc                 C   s   |  |||S r   r  )r1   r   r~   rc  r   r   r   r<    r<   zTreeStore.insertc                 C   sX   |d ur$|d u rd}n|d u r|  |}| | d }| |||S tj| ||S rz   )r  r  r  r  r   r  r  r1   r   r  rc  r~   r   r   r   r    s   
zTreeStore.insert_beforec                 C   s\   |d ur&|d u rd}n|d u r|  |}| | d d }| |||S tj| ||S r  )r  r  r  r  r   r  r  r  r   r   r   r    s   
zTreeStore.insert_afterc                 C   r  r   )rr  r   r  rx  r  r   r   r   rx  #  r  zTreeStore.set_valuec                    s    fdd}|rYt |d tr!||d d d |dd d  d S t |d ttfr?t|dkr4td||d |d  d S t |d trU||d  |d   d S tdd S )Nc                    r  r  )
ra   r   r   r   rO  r   rr  r   r  r  r  r  r   r   r  (  r  z!TreeStore.set.<locals>._set_listsr   r   r   r  r  )	r   rO  r}  r>   ra   r   r   keysr~  r  r   r  r   r  '  r  zTreeStore.setr   )r   r   r   r2   r  r   r  r<  r  r  rx  r  r   r   r   r   r    s    
	



r  c                       s   e Zd Zesereejjde	dZe
ejjZe
ejjZe
ejjZes'er- fddZes1er7 fddZd fd
d	Zd fdd	Zd fdd	Zdd Z  ZS )TreeViewr"  r   c                    s    t |}tt| ||| d S r   )r   rF   r  enable_model_drag_source)r1   start_button_maskr   actionsr   rH   r   r   r  S  s
   z!TreeView.enable_model_drag_sourcec                    s   t |}tt| || d S r   )r   rF   r  enable_model_drag_dest)r1   r   r  r   rH   r   r   r  Z  s   zTreeView.enable_model_drag_destNF        c                    s0   t |tjs
t|}tt| ||||| d S r   )r   r   r[  rF   r  scroll_to_cell)r1   r]  r{  	use_align	row_align	col_alignrH   r   r   r  _  s   zTreeView.scroll_to_cellc                    s,   t |tjs
t|}tt| ||| d S r   )r   r   r[  rF   r  
set_cursor)r1   r]  r{  start_editingrH   r   r   r  d  s   zTreeView.set_cursorc                    s&   t |tjs
t|}tt| ||S r   )r   r   r[  rF   r  get_cell_area)r1   r]  r{  rH   r   r   r  i  s   zTreeView.get_cell_areac                 K   s>   t  }|| ||d | || |j|fi | d S NF)TreeViewColumn	set_title
pack_startinsert_columnset_attributes)r1   r~   r   cellru   r{  r   r   r   insert_column_with_attributesn  s
   
z&TreeView.insert_column_with_attributes)NFr  r  r   r   )r   r   r   r\   r]   r
   r   r  r2   r   r	   get_path_at_posr%  get_dest_row_at_posr  r  r  r  r  r  r^   r   r   rH   r   r  H  s"    r  c                       s@   e Zd Z		d	ddZeejjZd
 fdd	Zdd Z	  Z
S )r  r  Nc                 K   sD   t jj| |d |r| |d | D ]\}}| ||| qd S )Nr  T)r   r  r2   r  rr   add_attribute)r1   r   cell_renderer
attributesrk   rX   r   r   r   r2   {  s   zTreeViewColumn.__init__c                    r  r   )rF   r  set_cell_data_func)r1   r  func	func_datarH   r   r   r    r  z!TreeViewColumn.set_cell_data_funcc                 K   s6   t j| | | D ]\}}t j| ||| qd S r   )r   
CellLayoutclear_attributesrr   r
  )r1   r  r  rk   rX   r   r   r   r    s   zTreeViewColumn.set_attributes)r  Nr   )r   r   r   r2   r	   r   r  cell_get_positionr  r  r^   r   r   rH   r   r  z  s    

r  c                       s4   e Zd Z fddZ fddZ fddZ  ZS )TreeSelectionc                    s(   t |tjs
t|}tt| | d S r   )r   r   r[  rF   r  select_pathr\  rH   r   r   r    s   zTreeSelection.select_pathc                    s(   t t|  \}}}|r||fS |d fS r   )rF   r  get_selected)r1   ri  r#  rT  rH   r   r   r    s   zTreeSelection.get_selectedc                    s   t t|  \}}||fS r   )rF   r  get_selected_rows)r1   rowsr#  rH   r   r   r    s   zTreeSelection.get_selected_rows)r   r   r   r  r  r  r^   r   r   rH   r   r    s    	r  c                   @   sV   e Zd ZeejjddeddZdd Ze	ej
drdd	 Ze	ej
d
r)dd ZdS dS )Button)r   stock	use_stockuse_underline)r  r   )r   r   r   r   c                 O   sv   d|v r1|d r1t jdtdd | }|d |d< d|d< d|d< |d= tjj| fi | d S | j|i | d S )	Nr  zKStock items are deprecated. Please use: Gtk.Button.new_with_mnemonic(label)r   r   r   Tr  r  )r   r   r   r   r   r  r2   r   )r1   r,   ru   r   r   r   r   r2     s   zButton.__init__set_focus_on_clickc                 O      t jj| g|R i |S r   )r   r=   r  r   r   r   r   r       zButton.set_focus_on_clickget_focus_on_clickc                 O   r  r   )r   r=   r  r   r   r   r   r    r  zButton.get_focus_on_clickN)r   r   r   r
   r   r  r2   r   r   rW  r=   r  r  r   r   r   r   r    s    r  c                   @   r   )
LinkButton)urir   r   N)r   r   r   r
   r   r   r2   r   r   r   r   r   r     r   r   c                   @   r   )Labelr   r   N)r   r   r   r
   r   r"  r2   r   r   r   r   r   r"    r   r"  c                   @   s8   e Zd Zesereejjdddde	ddZ
dd Zd	S )

Adjustment)rX   lowerupperstep_incrementpage_increment	page_size	page_incr	step_incr)r'  r&  r   )r   r   r   r   c                 O   s   t str*| j|i | d|v r| |d  d S t|dkr(| |d  d S d S tjj| g|R i | d|v rD| |d  d S d S )NrX   r   r   )r\   r]   r   rx  ra   r   r#  r2   r   r   r   r   r2     s   zAdjustment.__init__N)r   r   r   r\   r]   r
   r   r#  r2   r   r   r   r   r   r   r#    s    r#  c                   @   sP   e Zd ZeejjddddedZejj	ejj
B ejj	ejj
B ddfddZd	S )
Table)n_rowsrs  r   r  ru  )r,  rs  r  r   c
           
      C   s"   t j| |||||||||	
 d S r   )r   r+  attach)
r1   r@   left_attachright_attach
top_attachbottom_attachxoptionsyoptionsxpaddingypaddingr   r   r   r-    s   "zTable.attachN)r   r   r   r
   r   r+  r2   r   AttachOptionsEXPANDFILLr-  r   r   r   r   r+    s    .r+  c                   @   r   )ScrolledWindowhadjustmentvadjustmentr   N)r   r   r   r
   r   r9  r2   r   r   r   r   r   r9    r   r9  c                   @   r   )
HScrollbar
adjustmentr   N)r   r   r   r
   r   r=  r2   r   r   r   r   r   r=  !  r   r=  c                   @   r   )
VScrollbarr>  r   N)r   r   r   r
   r   r@  r2   r   r   r   r   r   r@  )  r   r@  c                       s,   e Zd Zd fdd	Zd fdd	Z  ZS )	PanedFTc                    r  r   )rF   rA  pack1r1   r@   resizeshrinkrH   r   r   rB  4  r  zPaned.pack1c                    r  r   )rF   rA  pack2rC  rH   r   r   rF  7  r  zPaned.pack2)FT)TT)r   r   r   rB  rF  r^   r   r   rH   r   rA  3  s    rA  c                   @   r   )Arrow)
arrow_typeshadow_typer   N)r   r   r   r
   r   rG  r2   r   r   r   r   r   rG  ?  r   rG  c                       s&   e Zd ZdddZ fddZ  ZS )IconSetNc                 C   s8   |d urt jdtdd tj|}|S tj| }|S )NzXGtk.IconSet(pixbuf) has been deprecated. Please use: Gtk.IconSet.new_from_pixbuf(pixbuf)r   r   )r   r   r   r   rJ  new_from_pixbufr  )r  pixbuficonsetr   r   r   r  H  s   zIconSet.__new__c                    s   t t|  S r   )rF   rJ  r2   r   rH   r   r   r2   R  r<   zIconSet.__init__r   )r   r   r   r  r2   r^   r   r   rH   r   rJ  G  s    

rJ  c                   @   r   )Viewportr:  r   N)r   r   r   r
   r   rN  r2   r   r   r   r   r   rN  X  r   rN  c                       s&   e Zd Zd fdd	Zdd Z  ZS )TreeModelFilterNc                    r  r   )rF   rO  set_visible_func)r1   r  datarH   r   r   rP  b  r  z TreeModelFilter.set_visible_funcc                 C   s    |  |}|  ||| d S r   )convert_iter_to_child_iter	get_modelrx  )r1   rd   r{  rX   r   r   r   rx  e  s   
zTreeModelFilter.set_valuer   )r   r   r   rP  rx  r^   r   r   rH   r   rO  a  s    rO  c                       s,   e Zd ZedddZd fdd	Z  ZS )CustomSorterNc                 C   s$   |d ur	t |}nd }tj||S r   )r   r   rT  r   )r  r  r   compare_funcr   r   r   r   q  s   
zCustomSorter.newc                    s(   |d ur	t |}nd }tt| ||S r   )r   rF   rT  r  )r1   r  r   rU  rH   r   r   r  z  s   
zCustomSorter.set_sort_funcr   )r   r   r   r  r   r  r^   r   r   rH   r   rT  o  s    rT  c                   @   r   )Menuc              	   C   s   |  d |||||| d S r   )popup_for_device)r1   parent_menu_shellparent_menu_itemr  rQ  buttonactivate_timer   r   r   popup  s   z
Menu.popupN)r   r   r   r\  r   r   r   r   rV    r   rV  c                  G   s
   t   d S r   )_Gtk_main_quit)r,   r   r   r   	main_quit  r  r^  c               	   O   sr   t tj* t  t| i |W  d    W  d    S 1 s"w   Y  W d    d S 1 s2w   Y  d S r   )r   r   r^  r   	_Gtk_main)r,   ru   r   r   r   main  s   "r`  stock_lookup)asysr   gi.repositoryr   _ossighelperr   r   r   r   r   	overridesr   r	   r
   r   moduler   gir   r   _versionr\   r]   r[   __all__r   warn_msgr   RuntimeWarningr   r   r.   objectr/   r=   r_   ry   r   r   r   r   r   r   r   r   r   r   r   r2   r   r   r  r  r  r  r  r!  r'  r(  r*  r,  rI  rL  r  rX  r  r_  rg  r[  r  r  r  r  r  r   r"  r#  r+  r9  r=  r@  rA  rG  rJ  rN  rO  rT  rV  r^  r]  r`  r_  ra  
init_checkr   argvr>   r   r   r   r   <module>   s  






,
(



 





*

	
X









J

 



X

g
1
P
.


%



	















