+
    hvh,  c                   s   ^ RI t ^ RIt^ RIHtHt ^RIHtHt ^RIH	t	H
t
 ^RIHtHtHtHt ^RIHt ^ RIHtHt ]! R4      t]P,                  R	8H  t]P,                  R
8H  t. t]	t	]P5                  R4       ]
t
]P5                  R4        ! R R]4      t]P5                  R4       ]'       d   R t]P5                  R4       R t ! R R4      t ! R R]P>                  4      t]! ]4      t]P5                  R4       ]'       d1    ! R R]P@                  ]4      t ]! ] 4      t ]P5                  R4       M]!t  ! R R]PD                  4      t"]! ]"4      t"]P5                  R4       ]'       d    ! R R]PF                  4      t#]! ]#4      t#]P5                  R4        ! R R]PH                  4      t$]! ]$4      t$]P5                  R4        ! R R]PJ                  4      t%]! ]%4      t%]P5                  R4        ! R  R!]PL                  4      t&]! ]&4      t&]P5                  R!4        ! R" R#]PN                  ] 4      t']! ]'4      t']P5                  R#4       ]'       d/    ! R$ R%]PP                  4      t(]! ](4      t(]P5                  R%4       ]'       d/    ! R& R']PR                  4      t)]! ])4      t)]P5                  R'4       ]'       d/    ! R( R)]PT                  4      t*]! ]*4      t*]P5                  R)4       R* t+ ! R+ R,]PX                  4      t,]! ],4      t,]P5                  R,4       ]'       d   ]PZ                  P\                  t/M ]! ]PZ                  P\                  R]^R-7      t/ ! R. R/]PZ                  4      t-]! ]-4      t-]P5                  R/4        ! R0 R1]P`                  ] 4      t0]! ]04      t0]P5                  R14       ]'       d0    ! R2 R3]Pb                  ]04      t1]! ]14      t1]P5                  R34       ]'       d]    ! R4 R5]Pd                  4      t2]! ]24      t2]P5                  R54        ! R6 R7]Pf                  4      t3]! ]34      t3]P5                  R74       ]'       d/    ! R8 R9]Ph                  4      t4]! ]44      t4]P5                  R94       ]'       d/    ! R: R;]Pj                  4      t5]! ]54      t5]P5                  R;4        ! R< R=]Pl                  4      t6]! ]64      t6]P5                  R=4       ]'       d/    ! R> R?]Pn                  4      t7]! ]74      t7]P5                  R?4        ! R@ RA]Pp                  4      t8]! ]84      t8]P5                  RA4        ! RB RC]Pr                  4      t9]! ]94      t9]P5                  RC4        ! RD RE]Pt                  4      t:]! ]:4      t:]P5                  RE4        ! RF RG]Pv                  4      t;]! ];4      t;]P5                  RG4        ! RH RI]Px                  4      t<]! ]<4      t<]P5                  RI4        ! RJ RK]Pz                  4      t=]! ]=4      t=]P5                  RK4       ]'       d/    ! RL RM]P|                  4      t>]! ]>4      t>]P5                  RM4        ! RN RO]P~                  ]<]=4      t?]! ]?4      t?]P5                  RO4        ! RP RQ4      t@]P5                  RQ4        ! RR RS4      tA]P5                  RS4        ! RT RU]P                  4      tB]! ]B4      tB]P5                  RU4        ! RV RW]P                  ]<]=4      tC]! ]C4      tC]P5                  RW4        ! RX RY]P                  ] 4      tD]! ]D4      tD]P5                  RY4        ! RZ R[]P                  4      tE]! ]E4      tE]P5                  R[4        ! R\ R]]P                  4      tF]! ]F4      tF]P5                  R]4       ]'       d    ! R^ R_]P                  ] 4      tG]! ]G4      tG]P5                  R_4        ! R` Ra]P                  4      tH]! ]H4      tH]P5                  Ra4        ! Rb Rc]P                  4      tI]! ]I4      tI]P5                  Rc4        ! Rd Re]P                  4      tJ]! ]J4      tJ]P5                  Re4       ]'       d^    ! Rf Rg]P                  ] 4      tK]! ]K4      tK]P5                  Rg4        ! Rh Ri]P                  4      tL]! ]L4      tL]P5                  Ri4       ]'       d]    ! Rj Rk]P                  4      tM]! ]M4      tM]P5                  Rk4        ! Rl Rm]P                  4      tN]! ]N4      tN]P5                  Rm4       ]'       d/    ! Rn Ro]P                  4      tO]! ]O4      tO]P5                  Ro4       ]'       d    ! Rp Rq]P                  4      tP]! ]P4      tP]P5                  Rq4        ! Rr Rs]P                  4      tQ]! ]Q4      tQ]P5                  Rs4        ! Rt Ru]P                  4      tR]! ]R4      tR]P5                  Ru4        ! Rv Rw]P                  4      tS]! ]S4      tS]P5                  Rw4       ]'       g	   ]'       d/    ! Rx Ry]P                  4      tT]! ]T4      tT]P5                  Ry4       ]'       d/    ! Rz R{]P                  4      tU]! ]U4      tU]P5                  R{4       ]'       d/    ! R| R}]P                  4      tV]! ]V4      tV]P5                  R}4       ]'       d   ]P                  tX]! ]P                  4      R~ 4       tW]P                  tZ]! ]P                  4      R 4       tY]P                  t\]P                  t^]! ]P                  4      R 4       t[]! ]P                  4      R 4       t]]'       d$   ]! ]P                  4      t_]P5                  R4       ]! R4      '       g   Rt`R# ]'       d   ]P                  4       t`R# ]P                  ] P                  4      w  t`tb]c! ]b4      ] nb        R# )    N)GObjectGLib)register_sigint_fallbackget_event_loop)Template_extract_handler_and_args)overridestrip_boolean_resultdeprecated_initwrap_list_store_sort_func)get_introspection_module)PyGIDeprecationWarning
get_optionGtkz3.0z4.0r   r   c                   s    ] tR t^2tRtR# )PyGTKDeprecationWarning N)__name__
__module____qualname____firstlineno____static_attributes__r       7/usr/lib64/python3.14/site-packages/gi/overrides/Gtk.pyr   r   2   s    r   r   c                s    . pV  FR  p\        V\        P                  4      '       g   \        P                  P                  ! V!  pVP	                  V4       KT  	  V# )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   ZTargetEntrynewappend)targetstarget_entriesZentry   &  r   _construct_target_listr   ;   sN     EeS__55++U3!!%(  r   r   c                 s:   \        Wc4      w  rxV\        P                  P                  ,          p	Ve7   V	'       d   VP                  ! W'V.VO5!   R # VP
                  ! W'V.VO5!   R # V	'       d   VP                  ! W'.VO5!   R # VP                  ! W'.VO5!   R # N)r   r   ZConnectFlagsZAFTERZconnect_object_afterZconnect_objectZconnect_afterconnect)
ZbuilderZgobjZsignal_nameZhandler_nameZconnect_objflags
obj_or_mapZhandlerargsZafters
   &&&&&&&   r   _builder_connect_callbackr$   K   s     .jGMGG((...E%%kKO$OkIDI{;d;LL55r   c                   s2   a  ] tR t^]t o R tR tR tRtV tR# )_FreezeNotifyManagerc                s    Wn         R # r   obj)selfr'      &&r   __init__Z_FreezeNotifyManager.__init__^   s    r   c                    R # r   r   r(      &r   	__enter__Z_FreezeNotifyManager.__enter__a   s    r   c                s:    V P                   P                  4        R # r   )r'   Zthaw_child_notify)r(   Zexc_typeZ	exc_valueZ	traceback   &&&&r   __exit__Z_FreezeNotifyManager.__exit__d   s    ""$r   r&   N)	r   r   r   r   r*   r.   r0   r   __classdictcell____classdict__   @r   r%   r%   ]   s     % %r   r%   c                   s   a a ] tR t^ht o]! ]P                  P                  4      t]'       d   R t	R t
]'       d   V 3R lt]'       d   V 3R lt]'       d   V 3R lt]'       d   RR ltRtVtV ;t# RtVtV ;t# )	Widgetc                s    V\        V 4      9   # r   )listr(   childr)   r   __contains__ZWidget.__contains__m   s    DJ&&r   c              #  sj   "   V P                  4       pV'       d   Vx  VP                  4       pK  R # 5ir   )Zget_first_childZget_next_siblingr7      & r   __iter__ZWidget.__iter__p   s.     ((*E..0 s   33c                s6   < \         SV `  4        \        V 4      # r   )superfreeze_child_notifyr%   )r(   	__class__s   &r   r=   ZWidget.freeze_child_notifyx   s    G')'--r   c                   < VeI   \        V\        P                  4      '       g)   \        P                  P                  \	        V4      4      p\
        SV `  V4       R # r   )r   r   
TargetListr   r   r<   drag_dest_set_target_listr(   Ztarget_listr>      &&r   rA   Z Widget.drag_dest_set_target_list~   sA    '{CNN;;!nn001G1TUG-k:r   c                r?   r   )r   r   r@   r   r   r<   drag_source_set_target_listrB   rC   r   rD   Z"Widget.drag_source_set_target_list   sA    '{CNN;;!nn001G1TUG/<r   c                s    VfH   V P                  V4      pVf   \        RV  RV R24      h\        P                  ! VP                  4      p\
        P                  P                  WV4       VP                  4       # )NClass "z#" does not contain style property "")	Zfind_style_property
ValueErrorr   Value
value_typer   r5   style_get_property	get_value)r(   property_namevalueprop   &&& r   rJ   ZWidget.style_get_property   sr    }//><$!$'J=/YZ[   doo6JJ))$uE??$$r   r   r   )r   r   r   r   r   r   r5   Ztranslate_coordinatesGTK4r9   r;   GTK3r=   rA   rD   rJ   r   r1   __classcell__r>   r3      @@r   r5   r5   h   sY     01Q1QR	'	1 	. 	; 	= 
	% 
	% r   r5   c                   s   a  ] tR t^t o R tR tR tR tR
R ltR t	R t
]! ]P                  P                  4      tR	tV tR# )	Containerc                4    \        V P                  4       4      # r   )lenget_childrenr,   r-   r   __len__ZContainer.__len__   s    t((*++r   c                s&    WP                  4       9   # r   )rX   r7   r)   r   r9   ZContainer.__contains__   s    --///r   c                rV   r   )iterrX   r,   r-   r   r;   ZContainer.__iter__   s    ))+,,r   c                r+   Tr   r,   r-   r   __bool__ZContainer.__bool__   s    r   Nc                s    VfH   V P                  V4      pVf   \        RV  RV R24      h\        P                  ! VP                  4      p\
        P                  P                  WW#4       VP                  4       # )NrE   z#" does not contain child property "rF   )	Zfind_child_propertyrG   r   rH   rI   r   rU   child_get_propertyrK   )r(   r8   rL   rM   rN      &&&& r   r]   ZContainer.child_get_property   sr    }//><$!$'J=/YZ[   doo6MM,,T-O??$$r   c                sL    V Uu. uF  q0P                  W4      NK  	  up# u upi )z<Returns a list of child property values for the given names.)r]   )r(   r8   Z
prop_namesnames   &&* r   	child_getZContainer.child_get   s#    EOPZT++E8ZPPPs   !c                s    VP                  4        F)  w  r4VP                  RR4      pV P                  WV4       K+  	  R# )z=Set a child properties on the given child to key/value pairs.Z_Z-N)itemsZreplaceZchild_set_property)r(   r8   kwargsr_   rM      &&,  r   	child_setZContainer.child_set   s4    %||~||C-''U;  .r   r   r   )r   r   r   r   rY   r9   r;   r\   r]   r`   rd   r   r   rU   Zget_focus_chainr   r1   r2   r4   r   rU   rU      s?     	,	0	-	
	%	Q	< /s}}/L/LMr   rU   c                   sn   a a ] tR t^t oV 3R lt]! ]P                  P                  RR7      tRt	Vt
V ;t# )Editablec                s&   < \         SV `  VRV4      #    )r<   insert_text)r(   textpositionr>      &&&r   ri   ZEditable.insert_text   s    w"4X66r   Zfail_retr   )r   r   r   r   ri   r   r   re   get_selection_boundsr   r1   rR   rS   rT   r   re   re      s)     7 0))Br   re   c                   sT    ] tR t^t]! ]P                  P                  R]R7      tRt	R# )Action	arg_namescategoryr   Nr_   labeltooltipstock_id)
r   r   r   r   r	   r   ro   r*   r   r   r   r   r   ro   ro      s    "JJ>,
r   ro   c                   sT    ] tR t^t]! ]P                  P                  R]R7      tRt	R# )RadioActionrp   r   Nr_   rt   ru   rv   rM   )
r   r   r   r   r	   r   rw   r*   r   r   r   r   r   rw   rw      s    "OO$$G,
r   rw   c                   s|   a  ] tR t^t o ]! ]P                  P                  R]R7      tRR lt	RR lt
R	R ltRtV tR# )
ActionGrouprp   Nc                   a a  \        V4       RT T3R llpT F	  pT! T!   K  	  R#   \         d    \        R4      hi ; i)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                 s   < \        WWAR 7      pVe+   Sf   VP                  RV4       MVP                  RVS4       SP                  Wc4       R# rs   NZactivate)ro   r    add_action_with_accel)	r_   rv   rt   acceleratorru   callbackactionr(   	user_datas	   &&&&&& r   _process_actionZ0ActionGroup.add_actions.<locals>._process_action  sN      G ' (z8<z8YG**6?r   )NNNNNrZ   	TypeErrorr(   entriesr   r   e   f&f  r   add_actionsZActionGroup.add_actions   sL    2<W@ @& # -  < :;;<	   ) A c                rz   )aa  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{   Nc                 s   < \         P                  WWAR 7      pVP                  V4       Ve+   S	f   VP                  RV4       MVP                  RVS	4       SP	                  Ws4       R# r|   )r   ZToggleAction
set_activer    r}   )
r_   rv   rt   r~   ru   r   Z	is_activer   r(   r   
   &&&&&&& r   r   Z7ActionGroup.add_toggle_actions.<locals>._process_actionM  sg     ))G *  !!),' (z8<z8YG**6?r   )NNNNNFr   r   r   r   add_toggle_actionsZActionGroup.add_toggle_actions-  sL    6<W@ @* # 1  < :;;<r   c                s  a a  \        V4       RpRT T3R llpT F  pT! T.TO5!  pTe   K  TpK  	  Te3   Te-   Tf   TP                  RT4       R# TP                  RY44       R# R# R#   \         d    \        R4      hi ; i)at  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{   Nc                 s   < \        VVVVVR 7      p\        '       d   VP                  V 4       S	V8X  d   VP                  R4       SP	                  Wt4       V# )rx   T)rw   rQ   Z
join_groupr   r}   )
Zgroup_sourcer_   rv   rt   r~   ru   Zentry_valuer   r(   rM   r   r   r   Z6ActionGroup.add_radio_actions.<locals>._process_action  s\     %#%% 4%%l3K'%%d+**6?r   Zchanged)NNNNr    )rZ   r   r    )	r(   r   rM   Z	on_changer   Zfirst_actionr   r   r   s	   f&f&&    r   add_radio_actionsZActionGroup.add_radio_actionsf  s    :<W  L 4 (::'#)L	  'I,A$ ((I> ((II	 -B'K  < :;;<s   A- -Br   )r_   r   )NNN)r   r   r   r   r	   r   ry   r*   r   r   r   r   r   r1   r2   r4   r   ry   ry      s<     "OO$$,
3	$j7	$rH	J H	Jr   ry   c                   s0   a  ] tR tRt o R tRR ltRtV tR# )	UIManageri  c                    \        V\        4      '       g   \        R 4      h\        V4      p\        P
                  P                  WV4      # zbuffer must be a string)r   strr   _get_utf8_lengthr   r   add_ui_from_stringr(   bufferlength   && r   r   ZUIManager.add_ui_from_string  s<    fc** 9::%f-F==33D&IIr   c                sB    \         P                  P                  WV4      # r   )r   r   insert_action_groupr      &&&r   r   ZUIManager.insert_action_group  s    ==44T6JJr   r   Nrh   )r   r   r   r   r   r   r   r1   r2   r4   r   r   r     s     	J	K 	Kr   r   c                   N    ] tR tRt]! ]P                  P                  4      tRtR# )ComboBoxi  r   N)	r   r   r   r   r   r   r   Zget_active_iterr   r   r   r   r   r     s    *3<<+G+GHOr   r   c                   T    ] tR tRt]! ]P                  P                  R]R7      tRt	R# )Boxi  rp   r   N)homogeneousZspacing)
r   r   r   r   r	   r   r   r*   r   r   r   r   r   r   r     s    "GG0,
r   r   c                   s    ] tR tRt]! ]P                  P                  RR]P                  P                  /]
R7      tRtR# )	SizeGroupi  mode)rq   Zdeprecated_defaultsrr   r   N)r   )r   r   r   r   r	   r   r   r*   ZSizeGroupModeZVERTICALr   r   r   r   r   r   r     s3    "MM""!'):):)C)C D,	
r   r   c                   r   )MenuItemi  rp   r   Nrt   )
r   r   r   r   r	   r   r   r*   r   r   r   r   r   r   r     s    "LL!! ,
r   r   c                 sf    \        V \        4      '       g   V P                  R 4      p \        V 4      # )utf-8)r   bytesencoderW   )Zstringr-   r   r   r     s'    fe$$w'v;r   c                   st   a a ] tR tRt o]'       d   ^RIHt ]! 4       tRV 3R lltMR t	R t
R tRtVtV ;t# )	Builderi  )define_builder_scopec                s   < \         SV `  4        V'       d'   V P                  \        P	                  V4      4       R # R # r   )r<   r*   Z	set_scoper   BuilderScope)r(   Zscope_object_or_mapr>   rC   r   r*   ZBuilder.__init__   s.    G"w334GHI #r   c                s2    V P                  \        V4       R# )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)Zconnect_signals_fullr$   )r(   r"   r)   r   connect_signalsZBuilder.connect_signals  s     %%&?Lr   c                r   r   )r   r   r   r   r   r   add_from_stringr   r   r   r   ZBuilder.add_from_string  s<    &#&&566!&){{**4@@r   c                s    \        V\        4      '       g   \        R 4      h\        V4      p\        P
                  P                  WW24      # r   )r   r   r   r   r   r   add_objects_from_string)r(   r   Z
object_idsr   rO   r   r   ZBuilder.add_objects_from_string  s<    &#&&566!&){{224TTr   r   r   )r   r   r   r   rP   _gtktemplater   r   r*   r   r   r   r   r1   rR   rS   rT   r   r   r     s7     7+-	J 	J	MAU Ur   r   )rq   rr   
stacklevelc                   &   a  ] tR tRt o R tRtV tR# )Windowi8  c                st    \         '       g   \        R 4      '       d   \        R4      h\        V .VO5/ VB  R# )legacy_autoinitzRGtk couldn't be initialized. Use Gtk.init_check() if you want to handle this case.N)initializedr   ZRuntimeError_window_initr(   r#   rb      &*,r   r*   ZWindow.__init__9  s9    {z*;<<H  	T+D+F+r   r   N)r   r   r   r   r*   r   r1   r2   r4   r   r   r   8  s     , ,r   r   c            	       s   a  ] tR tRt o ]'       d@   Rt]! ]P                  P                  RRRRRR/]
R7      tR t	R t]! R	 4      t]! R
 4      tR tRtV tR# )DialogiF  parentbuttons_buttons_propertytransient_for)rq   ignoredeprecated_aliasesrr   c                s\   VP                  4       p\        \        V P                  V4      4      pVP	                  V4       ^pV P
                  \        8w  d3   V P
                  P                  \        P                  8w  d
   V^,          pVP                  R4      pVeQ   \        V\        P                  4      '       g1   \        P                  ! R\        VR7       VP                  RR4       MRpVP                  R^ 4      pV'       dv   \        P                  ! R\        VR7       V\        P                   P"                  ,          '       d   RVR&   V\        P                   P$                  ,          '       d   RVR	&   V P&                  ! V/ VB  V'       d   V P(                  ! V!   R# R# )
   r   NzThe "buttons" argument must be a Gtk.ButtonsType enum value. Please use the "add_buttons" method for adding buttons. See: https://wiki.gnome.org/Projects/PyGObject/InitializerDeprecations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/Projects/PyGObject/InitializerDeprecationsTZmodalZdestroy_with_parent)copydictzip_old_arg_namesZupdater>   r   r*   getr   r   ZButtonsTypewarningswarnr   ZpopZDialogFlagsZMODALZDESTROY_WITH_PARENT_initadd_buttons)r(   r#   rb   
new_kwargsZ
old_kwargsr   r   r!   s   &*,     r   r*   ZDialog.__init__T  sM   Jc$"5"5t<=Jf% J~~'DNN,C,Cv,Va

 %..3K&z+s/W/W] ,) y$/"NN7A.E] ,) 3??0000*.Jw'3??>>>>8<J45JJ+
+  +. r   c           	     s   \        V P                  4      ;_uu_ 4        \        \        P                  P                  4       4      P                  V P                  4      ;_uu_ 4        \        P                  P                  ! V .VO5/ VB uuR R R 4       uuR R R 4       #   + '       g   i     M; i R R R 4       R #   + '       g   i     R # ; ir   )
r   Zdestroyr   r   MainContextdefaultrunningr   r   runr   r   r   r   Z
Dialog.run  s~    (66t//779:BB4<<PPzz~~d<T<V< QP 76PPP 7666s$   A	B>'$B 	
B> B0+B>>C	c                "    V P                  4       # r   )Zget_action_areaZdialogr-   r   <lambda>Dialog.<lambda>  s    f.D.D.Fr   c                r   r   )Zget_content_arear   r-   r   r   r     s    v'>'>'@r   c                sP    R pV! V4       F  w  r4V P                  W44       K  	  R# )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              3   s   "   V '       d    V R ,          w  rT R,          p Y3x  K$  R#   \          d    \        R4      hi ; i5i):r    r   Nz%Must pass an even number of arguments:r   NNN)rG   )ZbZtZrr   r   _buttonZ#Dialog.add_buttons.<locals>._button  sN     NS6DA bEd
  " N$%LMMNs   A) AA  AN)Z
add_button)r(   r#   r   rj   Zresponses   &*   r   r   ZDialog.add_buttons  s%    	 &dmNDOOD+ ,r   r   N)titler   r!   r   r   )r   r   r!   r   r   )r!   r   )r   r   r   r   rQ   r   r	   r   r   r*   r   r   r   propertyZaction_areaZvboxr   r   r1   r2   r4   r   r   r   F  sl     UJJS+.  -	
-	/^	= FG@A, ,r   r   c                   st   a  ] tR tRt o ]! ]P                  P                  RRRRR/]R7      tR t	R t
R	tV tR
# )MessageDialogi  message_typemessage_formatrj   typerq   r   rr   c                N    V P                  R R4       V P                  RV4       R# )secondary-use-markupFsecondary-textNZset_propertyr(   r   r)   r   format_secondary_textZ#MessageDialog.format_secondary_text  s$    4e<.?r   c                r   )r   Tr   Nr   r   r)   r   format_secondary_markupZ%MessageDialog.format_secondary_markup  s$    4d;.?r   r   N)r   r!   r   r   r   )r   r   r   r   r	   r   r   r*   r   r   r   r   r1   r2   r4   r   r   r     sC     "&&V &(8.&Q,	
	@	@ 	@r   r   c                   r   )ColorSelectionDialogi  rp   r   Nr   )
r   r   r   r   r	   r   r   r*   r   r   r   r   r   r   r     s!    "$$-- ,
r   r   c                   r   )FileChooserDialogi  rp   r   N)r   r   r   r   )
r   r   r   r   r	   r   r   r*   r   r   r   r   r   r   r     s!    "!!**>,
r   r   c                   r   )FontSelectionDialogi  rp   r   Nr   )
r   r   r   r   r	   r   r   r*   r   r   r   r   r   r   r     s!    "##,, ,
r   r   c                   sZ    ] tR tRt]! ]P                  P                  RRR/]R7      tRt	R# )RecentChooserDialogi  recent_managerZmanagerr   r   N)r   r   r   r   )
r   r   r   r   r	   r   r   r*   r   r   r   r   r   r   r     s+     ###,,F 0)<,	
r   r   c                   s   ] tR tRt]'       d    ]! ]P                  P                  R]	R7      t]
! ]P                  P                  4      t]
! ]P                  P                  4      t]
! ]P                  P                  4      tRtR# )IconViewi  rp   r   Nmodel)r   r   r   r   rQ   r	   r   r   r*   r   r   Zget_item_at_posget_visible_rangeZget_dest_item_at_posr   r   r   r   r   r     sb    "LL!! ,
 +3<<+G+GHO,S\\-K-KL/0Q0QRr   r   c                   r   )
ToolButtoni	  rp   r   N)rv   )
r   r   r   r   r	   r   r   r*   r   r   r   r   r   r   r   	  s    "NN###,
r   r   c                   r   )	IMContexti  r   N)	r   r   r   r   r   r   r   Zget_surroundingr   r   r   r   r   r     s    *3==+H+HIOr   r   c                   r   )
RecentInfoi  r   N)	r   r   r   r   r   r   r   Zget_application_infor   r   r   r   r   r     s    /0S0STr   r   c                   s   a  ] tR tRt o RR ltRR ltRR ltRR ltR tR t	RR	 lt
]! ]P                  P                  RR
7      tRtV tR# )
TextBufferi$  Nc                st    \         P                  ! RRV/VB pV P                  4       P                  V4       V# )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.
r_   r   )r   ZTextTagget_tag_tableZadd)r(   Ztag_nameZ
propertiestags   &&, r   
create_tagZTextBuffer.create_tag%  s6    . kk6x6:6  %
r   c                sB    \         P                  P                  WW#4      # r   )r   r   create_mark)r(   Z	mark_nameZwhereZleft_gravityr/   r   r   ZTextBuffer.create_mark@  s    ~~))$5OOr   c                sF    \         P                  P                  WV4       R # r   )r   r   set_textr(   rj   r   r   r   r   ZTextBuffer.set_textC  s    F3r   c                s    \        V\        4      '       g   \        R \        V4       24      h\        P
                  P                  WW#4       R# ztext must be a string, not N)r   r   r   r   r   r   insert)r(   rZ   rj   r   r/   r   r   ZTextBuffer.insertF  s:    $$$9$t*FGGd$7r   c                s    VP                  4       pV P                  W4       V'       g   R # V P                  V4      pV F  pV P                  WeV4       K  	  R # r   )Z
get_offsetr   Zget_iter_at_offsetZ	apply_tag)r(   rZ   rj   tagsZstart_offsetstartr      &&&*   r   insert_with_tagsZTextBuffer.insert_with_tagsL  sH    (D''5CNN3t, r   c                s    . pV FI  pV P                  4       P                  V4      pV'       g   \        R V 24      hVP                  V4       KK  	  V P                  ! W.VO5!   R# )zunknown text tag: N)r   ZlookuprG   r   r   )r(   rZ   rj   r   Ztag_objsr   Ztag_objr   r   insert_with_tags_by_nameZ#TextBuffer.insert_with_tags_by_nameX  sa    C((*11#6G #5cU!;<<OOG$	  	d484r   c                s    \        V\        4      '       g   \        R \        V4       24      h\        P
                  P                  WV4       R# r   )r   r   r   r   r   r   insert_at_cursorr   r   r   r   ZTextBuffer.insert_at_cursorc  s:    $$$9$t*FGG''F;r   rm   r   r   )Fr   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   rn   r   r1   r2   r4   r   r   r   $  sE     6P48
-	5< 0++br   r   c                   s    ] tR tRt]! ]P                  P                  4      t]! ]P                  P                  4      tRt	R# )TextIterir  r   N)
r   r   r   r   r   r   r   Zforward_searchZbackward_searchr   r   r   r   r   r   r  s*    )#,,*E*EFN*3<<+G+GHOr   r   c                   s  a a ] tR tRt oR tR tR tV 3R ltR tR t	R t
R	 tR
 t]! ]P                  P                   4      t]! ]P                  P"                  4      t]! ]P                  P$                  4      t]! ]P                  P&                  4      t]! ]P                  P(                  ]R4      tV 3R ltV 3R ltV 3R ltR tR tR tR tV 3R ltV 3R ltV 3R ltV 3R lt V 3R lt!Rt"Vt#V ;t$# )	TreeModeli{  c                s$    V P                  R 4      # r   )Ziter_n_childrenr,   r-   r   rY   ZTreeModel.__len__|  s    ##D))r   c                r+   r[   r   r,   r-   r   r\   ZTreeModel.__bool__  s    r   c                sZ   \        V\        P                  4      '       d   V# \        V\        4      '       dC   V^ 8  d<   \	        V 4      V,           pV^ 8  d   RVR 2p\        V4      hV P                  V4      #  V P                  V4      pV#   \         d    \        RT R24      hi ; i)r    zrow index is out of bounds: dzcould not find tree path '')r   r   TreeIterintrW   
IndexErrorget_iterrG   )r(   keyindexmsgaiters   &&   r   _getiterZTreeModel._getiter  s    c3<<((Jc3C!GIOEqy4SG< o%==''	BMM#&E   	B9#a@AA	Bs   <B B*c                s   < \        4       p\        VR 4      '       d   VP                  4       # \        P	                  V 4      # )sort_new_with_model)r<   hasattrr
  TreeModelSortnew_with_model)r(   Zsuper_objectr>   s   & r   r
  ZTreeModel.sort_new_with_model  s8    w<!6773355++D11r   c                s\    \        V\        P                  4      '       d   V# \        V4      # r   )r   r   TreePath)r(   pathr)   r   _coerce_pathZTreeModel._coerce_path  s"    dCLL))K~r   c                s:    V P                  V4      p\        W4      # r   )r	  TreeModelRowr(   r  r  r   r   __getitem__ZTreeModel.__getitem__  s    c"D((r   c                sN    W,          pV P                  VP                  V4       R # r   )set_rowrZ   )r(   r  rM   rowrO   r   __setitem__ZTreeModel.__setitem__  s    iSXXu%r   c                sJ    V P                  V4      pV P                  V4       R # r   )r	  Zremover  r   r   __delitem__ZTreeModel.__delitem__  s    c"Er   c                s4    \        W P                  4       4      # r   )TreeModelRowIterget_iter_firstr,   r-   r   r;   ZTreeModel.__iter__  s    &9&9&;<<r   zinvalid tree pathc                sz   < V P                  V4      p\        SV `	  V4      w  r#V'       g   \        R V R24      hV# )zinvalid tree path 'r   )r  r<   r  rG   )r(   r  successr  r>      &&  r   r  ZTreeModel.get_iter  sA      &)$/24&:;;r   c                Z   < VP                  4       p\        SV `	  V4      pV'       d   V# R # r   )r   r<   	iter_next)r(   r  	next_iterr  r>   r  r   r  ZTreeModel.iter_next  s)    JJL	'#I.r   c                r  r   )r   r<   iter_previous)r(   r  	prev_iterr  r>   r  r   r  ZTreeModel.iter_previous  s)    JJL	''	2r   c                s>   \        V\        4      '       d   \        R 4      hV P                  4       p\	        V4      V8w  d   \        R4      h. p. p\        V4       F<  w  rVVf   K  VP                  V P                  WV4      4       VP                  V4       K>  	  W43# )z%Expected a list or tuple, but got strz1row sequence has the incorrect number of elements)	r   r   r   get_n_columnsrW   rG   	enumerater   _convert_value)r(   r  	n_columnsZresultcolumnsZcur_colrM   s   &&     r   _convert_rowZTreeModel._convert_row  s     c3CDD&&(	s8y PQQ'nNG}MM$--g=>NN7# -   r   c                sn    V P                  V4      w  r4V F  pV P                  WW%,          4       K  	  R # r   )r&  	set_value)r(   treeiterr  Z_converted_rowr%  columns   &&&   r   r  ZTreeModel.set_row  s/    "&"3"3C"8FNN8S[9 r   c                s    \        V\        P                  4      '       d   V# \        P                  ! V P                  V4      V4      # )z6Convert value to a GObject.Value of the expected type.)r   r   rH   Zget_column_type)r(   r)  rM   r   r   r#  ZTreeModel._convert_value  s4    eW]]++L}}T11&95AAr   c                s    V P                  4       p. pV F\  p\        V\        4      '       g   \        R 4      hV^ 8  g   WS8  d   \	        R4      hVP                  V P                  W4      4       K^  	  \        V4      # )zcolumn numbers must be intszcolumn number is out of range)r!  r   r  r   rG   r   rK   tuple)r(   r(  r%  r$  valuesZcols   &&*   r   r   ZTreeModel.get  sq    &&(	Cc3'' =>>Qw#* !@AAMM$..78  V}r   c                B   < \         SV `  V P                  V4      V4      # r   )r<   row_changedr  r(   r  rZ   r>   rl   r   r-  ZTreeModel.row_changed  s     w"4#4#4T#:DAAr   c                r,  r   )r<   row_insertedr  r.  rl   r   r/  ZTreeModel.row_inserted  s     w#D$5$5d$;TBBr   c                r,  r   )r<   row_has_child_toggledr  r.  rl   r   r0  ZTreeModel.row_has_child_toggled  s     w,T->->t-DdKKr   c                s@   < \         SV `  V P                  V4      4      # r   )r<   row_deletedr  r(   r  r>   rC   r   r1  ZTreeModel.row_deleted  s    w"4#4#4T#:;;r   c                sB   < \         SV `  V P                  V4      W#4      # r   )r<   rows_reorderedr  )r(   r  rZ   Z	new_orderr>      &&&&r   r3  ZTreeModel.rows_reordered  s     w%d&7&7&=tOOr   r   )%r   r   r   r   rY   r\   r	  r
  r  r  r  r  r;   r   r   r   r  iter_childrenZiter_nth_childiter_parentZget_iter_from_stringrG   r  r  r  r&  r  r#  r   r-  r/  r0  r1  r3  r   r1   rR   rS   rT   r   r   r   {  s     *2
)&= *#--*F*FGN()D)DEM)#--*F*FGN&s}}'@'@AK/**J8K!(:
B$BCL<P Pr   r   c                   s   a a ] tR tRt o]! ]P                  P                  RR7      tRV 3R lltRV 3R llt	Rt
VtV ;t# )TreeSortablei  rm   c                (   < \         SV `  WV4       R # r   )r<   set_sort_func)r(   Zsort_column_id	sort_funcr   r>   r4  r   r9  ZTreeSortable.set_sort_func  s    nCr   c                &   < \         SV `  W4       R # r   )r<   set_default_sort_func)r(   r:  r   r>   rl   r   r<  Z"TreeSortable.set_default_sort_func  s    %i;r   r   )NNr   )r   r   r   r   r   r   r7  Zget_sort_column_idr9  r<  r   r1   rR   rS   rT   r   r7  r7    s3      .++lD< <r   r7  c                   s   a  ] tR tRt o ]! ]P                  P                  R]R7      t]	! ]P                  R4      '       g   ]
R 4       tRtV tR# RtV tR# )r  i!  rp   r  c                s,    \         P                  V4      # r   )r   r
  )r(   Zchild_modelr)   r   r  ZTreeModelSort.new_with_model*  s     44[AAr   r   Nr   )r   r   r   r   r	   r   r  r*   r   r  classmethodr  r   r1   r2   r4   r   r  r  !  sS     "&& ,
 s((*:;;B B <r   r  c                   s(  a  ] tR tRt o R t]! ]P                  R4      '       g   ]P                  P                  t	M/]! ]P                  R4      '       g   ]P                  P                  tR t
RR ltRR ltRR	 ltRR
 ltRR ltR tR tRtV tR# )	ListStorei2  c                f    \         P                  P                  V 4       V P                  V4       R # r   )r   r>  r*   set_column_typesr(   Zcolumn_types   &*r   r*   ZListStore.__init__3  "    t$l+r   insert_with_valuesvinsert_with_valuesc                s    Ve(   V P                  V4      w  r#V P                  WV4      pV# \        P                  P	                  W4      pV# r   )r&  rE  r   r>  r   )r(   rk   r  r%  r(  s   &&&  r   
_do_insertZListStore._do_insert>  sM    ?,,S1LC..x#FH  }}++D;Hr   Nc                st    V'       d   V P                  RV4      # \        P                  P                  V 4      # rf   )rF  r   r>  r   r(   r  r)   r   r   ZListStore.appendG  s-    ??2s++ }}##D))r   c                s&    V P                  ^ V4      # r    rF  rG  r)   r   prependZListStore.prependN  s    q#&&r   c                s$    V P                  W4      # r   rI  )r(   rk   r  r   r   r   ZListStore.insertQ  s    x--r   c                s    Ve?   Vf   RpM&V P                  V4      P                  4       R,          pV P                  W24      # \        P                  P                  W4      # Nrh   )get_pathget_indicesrF  r   r>  insert_beforer(   siblingr  rk   rO   r   rN  ZListStore.insert_beforeT  sQ    ?==1==?C??811}}**499r   c                s    VeF   Vf   ^ pM-V P                  V4      P                  4       R,          ^,           pV P                  W24      # \        P                  P                  W4      # rK  )rL  rM  rF  r   r>  insert_afterrO  rO   r   rQ  ZListStore.insert_after^  sV    ?==1==?CaG??811}}))$88r   c                h    V P                  W#4      p\        P                  P                  WW#4       R # r   )r#  r   r>  r'  r(   r(  r)  rM   r/   r   r'  ZListStore.set_valueh  &    ##F2>r   c                s  a a V V3R  lpV'       d   \        V^ ,          \        4      '       d   V! VR,          VR,          4       R# \        V^ ,          \        \        34      '       d5   \	        V4      ^8w  d   \        R4      hV! V^ ,          V^,          4       R# \        V^ ,          \        4      '       d1   V! \        V^ ,          4      V^ ,          P                  4       4       R# \        R4      hR# )c                 f  < \        V 4      \        V4      8w  d   \        R 4      h. p. p\        W4       FW  w  rE\        V\        4      '       g   \        R4      hVP                  V4       VP                  SP                  WE4      4       KY  	  \        P                  P                  SSW#4       R# z7The number of columns do not match the number of valuesz0TypeError: Expected integer argument for column.N)
rW   r   r   r   r  r   r#  r   r>  setZcolsZvalsr%  r+  Zcol_numrM   r(   r(     &&    r   
_set_listsZ!ListStore.set.<locals>._set_listsm      4yCI%M  GF"%d/!'3//#$VWWw'd11'AB #2 MMdHg>r   NNr   rg   Nr   Too many argumentsArgument list must be in the form of (column, value, ...), ((columns,...), (values, ...)) or {column: value}.  No -1 termination is needed.N)r   r  r*  r6   rW   r   r   r+  r(   r(  r#   rZ     ff* r   rW  ZListStore.setl  s    	?" $q'3''49d4j1DGeT]33t9>#$89947DG,DGT**4Q=$q'..*:; b  r   r   r   )r   r   r   r   r*   r  r   r>  rE  rD  rF  r   rJ  r   rN  rQ  r'  rW  r   r1   r2   r4   r   r>  r>  2  s}     , 3=="788!mm>>S]]$899 ]]>>*'.:9? r   r>  c                   s   a  ] tR tRt o R t]R 4       t]R 4       t]R 4       t]R 4       t	R t
R tR	 tR
 tR tR tR tRtV tR# )r  i  c                s   \        V\        P                  4      '       g#   \        R \	        V4      P
                   R24      hWn        \        V\        P                  4      '       d   VP                  V4      V n	        R# \        V\        P                  4      '       d	   W n	        R# \        R\	        V4      P
                   R24      h)zexpected Gtk.TreeModel, z foundz'expected Gtk.TreeIter or Gtk.TreePath, N)r   r   r   r   r   r   r   r  r  rZ   r  )r(   r   Ziter_or_pathr   r   r*   ZTreeModelRow.__init__  s    %//6tE{7K7K6LFSTT
lCLL11|4DIcll33$I9%../v7 r   c                sL    V P                   P                  V P                  4      # r   )r   rL  rZ   r,   r-   r   r  ZTreeModelRow.path  s    zz""499--r   c                r   r   )get_nextr,   r-   r   nextZTreeModelRow.next  s    }}r   c                r   r   )get_previousr,   r-   r   previousZTreeModelRow.previous  s      ""r   c                r   r   )
get_parentr,   r-   r   r   ZTreeModelRow.parent  s      r   c                    V P                   P                  V P                  4      pV'       d   \        V P                   V4      # R # r   )r   r  rZ   r  )r(   r  r:   r   rb  ZTreeModelRow.get_next  s1    JJ((3	

I66r   c                rg  r   )r   r  rZ   r  )r(   r   r:   r   rd  ZTreeModelRow.get_previous  s1    JJ,,TYY7	

I66r   c                rg  r   )r   r6  rZ   r  )r(   Zparent_iterr:   r   rf  ZTreeModelRow.get_parent  s1    jj,,TYY7

K88r   c                s   \        V\        4      '       dn   WP                  P                  4       8  d   R VR 2p\	        V4      hV^ 8  d   V P                  V4      pV P                  P                  V P                  V4      # \        V\        4      '       dl   VP                  V P                  P                  4       4      w  r4p\        W4V4       Uu. uF(  q`P                  P                  V P                  V4      NK*  	  up# \        V\        4      '       d   V Uu. uF  qpV,          NK  	  up# \        R\        V4      P                   24      hu upi u upi )column index is out of bounds: r   z.indices must be integers, slice or tuple, not )r   r  r   r!  r  _convert_negative_indexrK   rZ   sliceindicesranger*  r   r   r   )r(   r  r  r   stopstepiks   &&      r   r  ZTreeModelRow.__getitem__  s$   c3jj..007Aw? o%Qw2237::''		377c5!! #DJJ,D,D,F GE<A%t<T<Tq

$$TYY2<T  c5!!%()SGGS))<T#Y=O=O<PQ
 	
 *s   .EEc                s   \        V\        4      '       dp   WP                  P                  4       8  d   R VR 2p\	        V4      hV^ 8  d   V P                  V4      pV P                  P                  V P                  W4       R# \        V\        4      '       d   VP                  V P                  P                  4       4      w  rEp\        WEV4      p\        V4      \        V4      8w  d)   R\        V4      R R\        V4      R R2p\        V4      h\        V4       F2  w  rV P                  P                  V P                  WV,          4       K4  	  R# \        V\        4      '       d[   \        V4      \        V4      8w  d(   R\        V4      R R\        V4      R 2p\        V4      h\        W4       F	  w  rWV
&   K  	  R# \!        R\#        V4      P$                   24      h)rh  r   z#attempt to assign sequence of size z to slice of size z to sequence of size z0indices must be an integer, slice or tuple, not N)r   r  r   r!  r  ri  r'  rZ   rj  rk  rl  rW   rG   r"  r*  r   r   r   r   )r(   r  rM   r  r   rm  rn  Z	indexListro  Zvrp  s   &&&        r   r  ZTreeModelRow.__setitem__  s   c3jj..007Aw? o%Qw2237JJ  C7U## #DJJ,D,D,F GEe40I9~U+;CJq>I[\_`i\jkl[mmno o%!),

$$TYY8< -U##3x3u:%;CJq>I^_bcf_ghi^jk o%CQ ( B49CUCUBVW r   c                sx    V P                   P                  4       V,           pV^ 8  d   RVR 2p\        V4      hV# )r    rh  r   )r   r!  r  )r(   r  Z	new_indexr  s   &&  r   ri  Z$TreeModelRow._convert_negative_index  s>    JJ,,.6	q=3E!9=CS/!r   c                sx    V P                   P                  V P                  4      p\        V P                   V4      # r   )r   r5  rZ   r  )r(   Z
child_iterr:   r   iterchildrenZTreeModelRow.iterchildren  s+    ZZ--dii8


J77r   rZ   r   N)r   r   r   r   r*   r   r  rc  re  r   rb  rd  rf  r  r  ri  rq  r   r1   r2   r4   r   r  r    s      . .   # # ! !
&88 8r   r  c                   s2   a  ] tR tRt o R tR tR tRtV tR# )r  i   c                s    Wn         W n        R # r   )r   rZ   )r(   r   r  r   r   r*   ZTreeModelRowIter.__init__  s    
	r   c                s    V P                   '       g   \        h\        V P                  V P                   4      pV P                  P	                  V P                   4      V n         V# r   )rZ   ZStopIterationr  r   r  rG  r:   r   __next__ZTreeModelRowIter.__next__  sD    yyy4::tyy1JJ((3	
r   c                s    V # r   r   r,   r-   r   r;   ZTreeModelRowIter.__iter__  s    r   rr  N)	r   r   r   r   r*   rs  r;   r   r1   r2   r4   r   r  r     s      r   r  c                   sx   a a ] tR tRt oRR ltV 3R ltR tR tR tR t	R t
R	 tR
 tR tR tR tRtVtV ;t# )r  i  c                sH   \        V\        4      '       d   \        V4      pM.\        V\        4      '       g   R P                  R V 4       4      p\	        V4      ^ 8X  d   \        RV R24      h \        P                  V4      #   \
         d    \        RT R24      hi ; i)Z:c              3   s8   "   T F  p\        V4      x  K  	  R # 5ir   )r   )Z.0Zvalr:   r   Z	<genexpr>Z#TreePath.__new__.<locals>.<genexpr>  s     5CHHs   zcould not parse subscript 'z' as a tree path)r   r  r   ZjoinrW   r   r  Znew_from_string)clsr  r)   r   __new__ZTreePath.__new__  s    dC  t9DD#&&88555Dt9>9$?OPQQ	R++D11 	R9$?OPQQ	Rs   1B B!c                s$   < \         SV `  4        R # r   r<   r*   r(   r#   rb   r>      &*,r   r*   ZTreePath.__init__!  s    r   c                s6    V P                  4       ;'       g    R # ) )Z	to_stringr,   r-   r   __str__ZTreePath.__str__$  s    ~~%%2%r   c                sB    VR J;'       d    V P                  V4      ^ 8  # r   Zcomparer(   Zotherr)   r   __lt__ZTreePath.__lt__'  s#    D <<T\\%%81%<<r   c                sB    VR J;'       d    V P                  V4      ^ 8*  # r   r{  r|  r)   r   __le__ZTreePath.__le__*  #    D ==T\\%%8A%==r   c                sB    VR J;'       d    V P                  V4      ^ 8H  # r   r{  r|  r)   r   __eq__ZTreePath.__eq__-  r  r   c                sB    VR J ;'       g    V P                  V4      ^ 8g  # r   r{  r|  r)   r   __ne__ZTreePath.__ne__0  "    }88U 3q 88r   c                sB    VR J ;'       g    V P                  V4      ^ 8  # r   r{  r|  r)   r   __gt__ZTreePath.__gt__3  s"    }77U 3a 77r   c                sB    VR J ;'       g    V P                  V4      ^ 8  # r   r{  r|  r)   r   __ge__ZTreePath.__ge__6  r  r   c                rV   r   )rZ   rM  r,   r-   r   r;   ZTreePath.__iter__9  s    D$$&''r   c                r   r   )Z	get_depthr,   r-   r   rY   ZTreePath.__len__<  s    ~~r   c                s0    V P                  4       V,          # r   )rM  )r(   r  r)   r   r  ZTreePath.__getitem__?  s    !%((r   r   rH  )r   r   r   r   ru  r*   rz  r}  r~  r  r  r  r  r;   rY   r  r   r1   rR   rS   rT   r   r  r    sG     R&=>>989( ) )r   r  c                   sj   a  ] tR tRt o R tR tRR ltRR ltRR ltRR lt	RR	 lt
R
 tR tRtV tR# )	TreeStoreiG  c                r?  r   )r   r  r*   r@  rA  rB  r   r*   ZTreeStore.__init__H  rC  r   c                s    Ve(   V P                  V4      w  r4V P                  WWC4      pV# \        P                  P	                  WV4      pV# r   )r&  rE  r   r  r   )r(   r   rk   r  r%  r(  s   &&&&  r   rF  ZTreeStore._do_insertL  sO    ?,,S1LC..vNH  }}++D(CHr   Nc                s(    V P                  VRV4      # rf   rI  r(   r   r  r   r   r   ZTreeStore.appendU  s    vr3//r   c                s(    V P                  V^ V4      # rH  rI  r  r   r   rJ  ZTreeStore.prependX  s    vq#..r   c                s&    V P                  WV4      # r   rI  )r(   r   rk   r  r/   r   r   ZTreeStore.insert[  s    v55r   c                s    VeU   Vf   RpM;Vf   V P                  V4      pV P                  V4      P                  4       R,          pV P                  WV4      # \        P
                  P                  WV4      # rK  )r6  rL  rM  rF  r   r  rN  r(   r   rP  r  rk   r^   r   rN  ZTreeStore.insert_before^  sj    ?>!--g6F==1==?C??6S99}}**4AAr   c                s    Ve\   Vf   ^ pMBVf   V P                  V4      pV P                  V4      P                  4       R,          ^,           pV P                  WV4      # \        P
                  P                  WV4      # rK  )r6  rL  rM  rF  r   r  rQ  r  r^   r   rQ  ZTreeStore.insert_afterj  so    ?>!--g6F==1==?CaG??6S99}}))$@@r   c                rR  r   )r#  r   r  r'  rS  r/   r   r'  ZTreeStore.set_valuev  rT  r   c                s  a a V V3R  lpV'       d   \        V^ ,          \        4      '       d   V! VR,          VR,          4       R# \        V^ ,          \        \        34      '       d5   \	        V4      ^8w  d   \        R4      hV! V^ ,          V^,          4       R# \        V^ ,          \        4      '       d6   V! V^ ,          P                  4       V^ ,          P                  4       4       R# \        R4      hR# )c                 rU  rV  )
rW   r   r   r   r  r   r#  r   r  rW  rX  rY  r   rZ  Z!TreeStore.set.<locals>._set_lists{  r[  r   r\  r]  r^  r_  N)	r   r  r*  r6   rW   r   r   Zkeysr+  r`  ra  r   rW  ZTreeStore.setz  s    	?" $q'3''49d4j1DGeT]33t9>#$89947DG,DGT**47<<>47>>+;< b  r   r   r   )r   r   r   r   r*   rF  r   rJ  r   rN  rQ  r'  rW  r   r1   r2   r4   r   r  r  G  s9     ,0/6
B
A? r   r  c                   s  a a ] tR tRt o]'       d    ]! ]P                  P                  R
]	R7      t]
! ]P                  P                  4      t]
! ]P                  P                  4      t]
! ]P                  P                  4      t]'       d   V 3R lt]'       d   V 3R ltRV 3R lltRV 3R lltRV 3R lltR tR	tVtV ;t# )TreeViewi  rp   c                s>   < \        V4      p\        SV `	  WV4       R # r   )r   r<   enable_model_drag_source)r(   Zstart_button_maskr   actionsr   r>   s   &&&& r   r  Z!TreeView.enable_model_drag_source  s    3G<NG,->PWXr   c                s<   < \        V4      p\        SV `	  W24       R # r   )r   r<   enable_model_drag_dest)r(   r   r  r   r>      &&& r   r  ZTreeView.enable_model_drag_dest  s    3G<NG*>Cr   c                s   < \        V\        P                  4      '       g   \        V4      p\        SV `  WW4V4       R # r   )r   r   r  r<   scroll_to_cell)r(   r  r)  Z	use_alignZ	row_alignZ	col_alignr>   s   &&&&&&r   r  ZTreeView.scroll_to_cell  s0     $--D>DtY9Mr   c                s~   < \        V\        P                  4      '       g   \        V4      p\        SV `  WV4       R # r   )r   r   r  r<   
set_cursor)r(   r  r)  Zstart_editingr>   r4  r   r  ZTreeView.set_cursor  s,    $--D>D47r   c                sx   < \        V\        P                  4      '       g   \        V4      p\        SV `  W4      # r   )r   r   r  r<   get_cell_area)r(   r  r)  r>   rl   r   r  ZTreeView.get_cell_area  s-    $--D>Dw$T22r   c                s    \        4       pVP                  V4       VP                  VR 4       V P                  WQ4       VP                  ! V3/ VB  R# )FN)TreeViewColumnZ	set_title
pack_startZinsert_columnset_attributes)r(   rk   r   Zcellrb   r)  s   &&&&, r   insert_column_with_attributesZ&TreeView.insert_column_with_attributes  sI    !$&6,d-f-r   r   r   )NF        r  )NFr   )r   r   r   r   rQ   r	   r   r  r*   r   r   Zget_path_at_posr   Zget_dest_row_at_posr  r  r  r  r  r  r   r1   rR   rS   rT   r   r  r    s     "LL!! ,
 +3<<+G+GHO,S\\-K-KL.s||/O/OP	Y 	DN8
3
. .r   r  c                   s~   a a ] tR tRt oRR lt]! ]P                  P                  4      tRV 3R llt	R t
RtVtV ;t# )r  i  c                s    \         P                  P                  WR 7       V'       d   V P                  VR4       VP	                  4        F  w  rEV P                  W$V4       K  	  R# )r   TN)r   r  r*   r  ra   add_attribute)r(   r   cell_renderer
attributesr_   rM   s   &&&,  r   r*   ZTreeViewColumn.__init__  sO    ##D#6OOM40%++-KD}E: .r   c                r8  r   )r<   set_cell_data_func)r(   r  funcZ	func_datar>   r4  r   r  Z!TreeViewColumn.set_cell_data_func  s    "=	Br   c                s    \         P                  P                  W4       VP                  4        F%  w  r4\         P                  P	                  WW44       K'  	  R # r   )r   Z
CellLayoutZclear_attributesra   r  )r(   r  r  r_   rM   rc   r   r  ZTreeViewColumn.set_attributes  s=    ''<%++-KDNN((dJ .r   r   )ry  Nr   )r   r   r   r   r*   r   r   r  Zcell_get_positionr  r  r   r1   rR   rS   rT   r   r  r    s5     ; -S-?-?-Q-QRCK Kr   r  c                   sJ   a a ] tR tRt oV 3R ltV 3R ltV 3R ltRtVtV ;t	# )TreeSelectioni  c                s|   < \        V\        P                  4      '       g   \        V4      p\        SV `  V4       R # r   )r   r   r  r<   select_pathr2  rC   r   r  ZTreeSelection.select_path  s*    $--D>DD!r   c                sD   < \         SV `  4       w  rpV'       d   W#3# VR 3# r   )r<   get_selected)r(   r  r   r  r>   s   &   r   r  ZTreeSelection.get_selected  s*     % 4 6>!t}r   c                s*   < \         SV `  4       w  rW!3# r   )r<   get_selected_rows)r(   rowsr   r>   s   &  r   r  ZTreeSelection.get_selected_rows  s    g/1}r   r   )
r   r   r   r   r  r  r  r   r1   rR   rS   rT   r   r  r    s     "
 r   r  c                   s   a  ] tR tRt o ]! ]P                  P                  R
R]^R7      t	R t]
! ]P                  R4      '       d   R t]
! ]P                  R4      '       d
   R tRtV tR	# RtV tR	# )Buttoni  )rq   r   rr   r   c                s*   VP                  R 4      '       dj   \        P                  ! R\        ^R7       VP	                  4       pVR ,          VR&   RVR&   RVR&   VR  \
        P                  P                  ! V 3/ VB  R# V P                  ! V/ VB  R# )stockzKStock items are deprecated. Please use: Gtk.Button.new_with_mnemonic(label)r   rt   T	use_stockuse_underlineN)	r   r   r   r   r   r   r  r*   r   )r(   r#   rb   r   s   &*, r   r*   ZButton.__init__  s    
 zz'""F+ 	 $[[]
&0&9
7#*.
;'.2
?+w'

##D7J7

D+F+r   set_focus_on_clickc                J    \         P                  P                  ! V .VO5/ VB # r   )r   r5   r  r   r   r   r  ZButton.set_focus_on_click&  #     zz44TKDKFKKr   get_focus_on_clickc                r  r   )r   r5   r  r   r   r   r  ZButton.get_focus_on_click-  r  r   r   N)rt   r  r  r  )r  )r   r   r   r   r	   r   r  r*   r   r   r  r5   r  r  r   r1   r2   r4   r   r  r    sl     JJF,
	,* 3::344L
 3::344L L 5r   r  c                   r   )
LinkButtoni5  rp   r   N)Zurirt   )
r   r   r   r   r	   r   r  r*   r   r   r   r   r   r  r  5  s    "NN##&,
r   r  c                   r   )Labeli?  rp   r   Nr   )
r   r   r   r   r	   r   r  r*   r   r   r   r   r   r  r  ?  s    "II*?V
r   r  c                   s   a  ] tR tRt o ]'       d&   ]! ]P                  P                  R
RRRR/]	^R7      t
R tRtV tR	# )
AdjustmentiH  step_incrementpage_incrementZ	page_incrZ	step_incr)rq   r   rr   r   c                sf   \         '       d`   V P                  ! V/ VB  R V9   d   V P                  VR ,          4       R# \        V4      ^8  d   V P                  V^ ,          4       R# R# \        P
                  P                  ! V .VO5/ VB  R V9   d   V P                  VR ,          4       R# R# )rM   N)rQ   r   r'  rW   r   r  r*   r   r   r   r*   ZAdjustment.__init__\  s    4JJ'' & vg/TatAw'   NN##D:4:6:
 & vg/ !r   r   N)rM   ZlowerZupperr  r  Z	page_size)r   r   r   r   rQ   r	   r   r  r*   r   r   r   r1   r2   r4   r   r  r  H  sG     NN## !+ +  -
$0 0r   r  c                   s6  a  ] tR tRt o ]! ]P                  P                  R
RRRR/]R7      t]P                  P                  ]P                  P                  ,          ]P                  P                  ]P                  P                  ,          ^ ^ 3R ltRtV tR	# )Tableiv  n_rowsr$  r  r%  r   c
                sV    \         P                  P                  V VVVVVVVVV	4
       R # r   )r   r  attach)
r(   r8   Zleft_attachZright_attachZ
top_attachZbottom_attachZxoptionsZyoptionsZxpaddingZypaddings
   &&&&&&&&&&r   r  ZTable.attach~  s4     IIr   r   N)r  r$  r   )r   r   r   r   r	   r   r  r*   r   ZAttachOptionsZEXPANDZFILLr  r   r1   r2   r4   r   r  r  v  s     "II< (&+yI,	
 &&--0A0A0F0FF&&--0A0A0F0FF	 	r   r  c                   r   )ScrolledWindowi  rp   r   NZhadjustmentZvadjustment)
r   r   r   r   r	   r   r  r*   r   r   r   r   r   r  r    s!    "''4,
r   r  c                   r   )
HScrollbari  rp   r   NZ
adjustment)
r   r   r   r   r	   r   r  r*   r   r   r   r   r   r  r        "NN##%,
r   r  c                   r   )
VScrollbari  rp   r   Nr  )
r   r   r   r   r	   r   r  r*   r   r   r   r   r   r  r    r  r   r  c                   sF   a a ] tR tRt oRV 3R lltRV 3R lltRtVtV ;t# )Panedi  c                r8  r   )r<   pack1r(   r8   ZresizeZshrinkr>   r4  r   r  ZPaned.pack1      GM%0r   c                r8  r   )r<   pack2r  r4  r   r  ZPaned.pack2  r  r   r   )FT)TT)	r   r   r   r   r  r  r   r1   rR   rS   rT   r   r  r    s     	1	1 	1r   r  c                   r   )Arrowi  rp   r   N)Z
arrow_typeZshadow_type)
r   r   r   r   r	   r   r  r*   r   r   r   r   r   r  r    s    "II3,
r   r  c                   s<   a a ] tR tRt oRR ltV 3R ltRtVtV ;t# )IconSeti  c                s    Ve?   \         P                  ! R\        ^R7       \        P                  P                  V4      pV# \        P                  P                  V 4      pV# )NzXGtk.IconSet(pixbuf) has been deprecated. Please use: Gtk.IconSet.new_from_pixbuf(pixbuf)r   )r   r   r   r   r  Znew_from_pixbufru  )rt  ZpixbufZiconsetr   r   ru  ZIconSet.__new__  sW    !:+ 	 ++55f= N ++--c2Nr   c                s    < \         SV `  4       # r   rv  rw  rx  r   r*   ZIconSet.__init__  s    7#%%r   r   r   )	r   r   r   r   ru  r*   r   r1   rR   rS   rT   r   r  r    s     		& 	&r   r  c                   r   )Viewporti  rp   r   Nr  )
r   r   r   r   r	   r   r  r*   r   r   r   r   r   r  r    s    "LL!!4,
r   r  c                   s<   a a ] tR tRt oRV 3R lltR tRtVtV ;t# )TreeModelFilteri  c                r;  r   )r<   set_visible_func)r(   r  datar>   rl   r   r  Z TreeModelFilter.set_visible_func  s     ,r   c                sh    V P                  V4      pV P                  4       P                  WV4       R # r   )Zconvert_iter_to_child_iterZ	get_modelr'  )r(   rZ   r)  rM   r/   r   r'  ZTreeModelFilter.set_value  s)    ..t4""47r   r   r   )	r   r   r   r   r  r'  r   r1   rR   rS   rT   r   r  r    s     -8 8r   r  c                   s6   a a ] tR tRt oRV 3R lltRtVtV ;t# )CssProvideri  c                s>  < \         P                  4       \         P                  4       3R8  d9   \        V\        4      '       d   VP                  R4      p\        SV `  W4       R# \        V\        4      '       d   VP                  R4      p\        SV `  V4       R# )   r   N)r  i	   )
r   Zget_major_versionZget_minor_versionr   r   Zdecoder<   load_from_datar   r   )r(   rj   r   r>   rl   r   r  ZCssProvider.load_from_data  sr    %%')>)>)@AVKdE**;;w/D&t4dC((;;w/D&t,r   r   r   )r   r   r   r   r  r   r1   rR   rS   rT   r   r  r    s     	- 	-r   r  c                   sJ   a a ] tR tRt o]RR l4       tRV 3R lltRtVtV ;t	# )CustomSorteri  c                sd    Ve   \        V4      pMR p\        P                  P                  W24      # r   )r
   r   r  r   )rt  r:  r   compare_funcrO   r   r   ZCustomSorter.new  s.    $8C###''@@r   c                sF   < Ve   \        V4      pMR p\        SV `	  W24      # r   )r
   r<   r9  )r(   r:  r   r  r>   r  r   r9  ZCustomSorter.set_sort_func  s(    $8C#7(AAr   r   r   )
r   r   r   r   r=  r   r9  r   r1   rR   rS   rT   r   r  r    s%     		A 
	A	B 	Br   r  c                   r   )Menui+  c           	     s4    V P                  R VVVVVV4       R # r   )Zpopup_for_device)r(   Zparent_menu_shellZparent_menu_itemr  r  ZbuttonZactivate_times   &&&&&&&r   popupZ
Menu.popup,  s'     !!! r   r   N)r   r   r   r   r  r   r1   r2   r4   r   r  r  +  s     	 	r   r  c                  s    \        4        R # r   )_Gtk_main_quit)r#   s   *r   	main_quitr  ?  s    r   c            	      s   \        \        P                  4      ;_uu_ 4        \        \        P
                  P                  4       4      P                  \        P                  4      ;_uu_ 4        \        V / VB uuR R R 4       uuR R R 4       #   + '       g   i     M; i R R R 4       R #   + '       g   i     R # ; ir   )	r   r   r  r   r   r   r   r   	_Gtk_main)r#   rb   s   *,r   mainr  E  ss     %S]]334++3356>>s}}MMd-f- NM 43MMM 4333s$   AB-/B	:
B-BB--B>	c                  s    \        \        P                  P                  4       4      P	                  4       ;_uu_ 4        \        4       uuR R R 4       #   + '       g   i     R # ; ir   )r   r   r   r   paused_Gtk_main_iterationr   r   r   main_iterationr  P  s;    D,,4467>>@@&( A@@@s   
AA$	c                 s    \        \        P                  P                  4       4      P	                  4       ;_uu_ 4        \        V 4      uuR R R 4       #   + '       g   i     R # ; ir   )r   r   r   r   r  _Gtk_main_iteration_do)Zblockingr-   r   main_iteration_dor  U  s=    D,,4467>>@@)(3 A@@@s   AA%	stock_lookupr   F)r   )dZsysr   Zgi.repositoryr   r   Z_ossighelperr   r   r   r   r   Z	overridesr   r   r	   r
   Zmoduler   Zgir   r   r   Z_versionrQ   rP   Z__all__r   r   r   r$   r%   r5   rU   Zobjectre   ro   rw   ry   r   r   r   r   r   r   r   r   r*   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r7  r  r>  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   Z
init_checkZargvr6   r   r   r   <module>r     s
  &   ' C >  . 1 u%
||u
||u
  z  6  * +	4 	 ( )  NN+,6$% %2%SZZ 2%j 
&	 x  #NCMM6 #NJ #INN;Is||  H z  
 
 fFNN8
coo 
 ;'KNN=!}Jcoo }J~ ;'KNN=!
KCMM 
K #INN;Is||Y I H z  
cgg 
 3-CNN5 
CMM 
 #INN; 
3<< 
 !HNN:)Uckk )UX 7
 y  ::&&L"

(	L,SZZ , 
&	 x _,SZZ _,D 
&	 x  @))6 @  ]+MNN?# 
s77 
 $$89NN)*
C11 
 !!23NN&' 
c55 
 ##67NN() 
c55 
 ##67NN()
Ss|| 
S H z  
S^^ 
 *%JNN< J J Y	 { U U j!
 | G GT j!
 | Is|| I
 H z KP KP\ Y	 { << % ~  B)) B ]+MNN?#Xy, Xv Y	 { i8 i8X ~    ! "-)s|| -)` H z Qy, Qh Y	 { ..s||Y ..b H z KS'' K* .)   C%% & '   *LY *LX fFNN8
S^^ 
 *%JNN< 
		 

 UOENN7%0 %0P j!
 |  		9 B UOENN7
++ 
 n-NNN#$ 
S^^ 
 *%JNN< 
S^^ 
 *%JNN<  1		 1 UOENN7 
		 
 UOENN7&#++ &" wGNN9
3<< 
 !HNN:8c)) 8 ?+   ! 4	-coo 	- ;'KNN=!Bs'' B$ L)LNN>"sxx  D>DNN6]]Ncmm  Ichh. . ,, 22c  !) ") c  !4 "4
 '(8(89LNN>"#$$K	.."Ksxx0KDzCHr   