+
    Qi  c                   s    R t RtRtRtRtRt^ RIt]P                  ! RR4       ^ R	IH	t	 ^ R
IH
t
 ^RIHt ^RIHt ^RIHt  ! R R4      tR# )JUtilities for obtaining information about containers supporting selection.z$Id$z
$Revision$z$Date$zCopyright (c) 2023 Igalia, S.L.ZLGPLNAtspiz2.0)r   )GLib)debug)AXObject)AXUtilitiesRolec                   sx   a  ] tR t^)t o Rt]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       tRt	V t
R	# )
AXSelectionr    c                s:   < V ^8  d   QhRS[ P                  RS[/#    objreturnr   
AccessibleZintZformat__classdict__   "6/usr/lib/python3.14/site-packages/orca/ax_selection.py__annotate__AXSelection.__annotate__-   s!      e&6&6 3     c                sv   \         P                  ! V 4      '       g   ^ #  \        P                  P	                  V 4      pRT RTR.p\        P                  ! \        P                  TR4       T#   \
        P                   d6   pRT.p\        P                  ! \        P                  TR4        Rp?^ # Rp?ii ; i)z'Returns the selected child count of objz3AXSelection: Exception in get_selected_child_count:TNAXSelection:Zreportszselected children)
r   Zsupports_selectionr   	SelectionZget_n_selected_childrenr   GErrorr   print_tokens
LEVEL_INFO)r	   counterrortokenss   &   r   get_selected_child_countZ$AXSelection.get_selected_child_count,   s     **3//	OO;;C@E !#y%9LM5++VT: {{ 	KUSFu//>	s   A. .B8*B33B8c                sb   < V ^8  d   QhRS[ P                  RS[RS[ P                  R,          /# )r   r	   indexr
   Nr   r   r   r   r   r   ?   s4       0 0  AQAQTXAX r   c                s(   \         P                  V 4      pV^ 8:  d   R# VR8X  d
   V^,
          p^ Tu;8:  d
   V8  g    R#  R#  \        P                  P	                  W4      pY08X  d.   RT R.p\        P                  ! \        P                  TR4       R# RTRTRT .p\        P                  ! \        P                  TR4       T#   \
        P                   d6   pRT.p\        P                  ! \        P                  TR4        Rp?R# Rp?ii ; i)	z&Returns the nth selected child of obj.Nz-AXSelection: Exception in get_selected_child:Tr   #claims to be its own selected childzis selected child #Zofi)
r   r   r   r   get_selected_childr   r   r   r   r   )r	   r   Z
n_childrenchildr   r   s   &&    r   r   ZAXSelection.get_selected_child>   s     !99#>
?B;NEE&J& '	OO66sBE <$c+PQFu//> %)>tSQ5++VT: {{ 	EuMFu//>	s   C D*DDc                s^   < V ^8  d   QhRS[ P                  RS[S[ P                  ,          /# r   )r   r   listr   r   r   r   r   ]   s,     " "5#3#3 "U=M=M8N "r   c                s:   V f   . # \         P                  V 4      pV'       gJ   \        P                  ! V 4      '       d.   \        P
                  ! V R 4      p\         P                  V4      # \        4       p\        V4       F:  p \        P                  P                  W4      pTf   K)  TP#                  T4       K<  	  W9   d=   RV R.p\        P                  ! \        P                   VR4       VP%                  V 4       \'        V4      p\)        V4      V8w  d/   RV RV 2.p\        P                  ! \        P                   VR4       V#   \        P                   d9   pRT.p\        P                  ! \        P                   TR4       . u Rp?u # Rp?ii ; i)	z3Returns a list of all the selected children of obj.Nc                 sj    \         P                  ! V 4      ;'       g    \         P                  ! V 4      # )N)r   Zis_menuZis_list_box)Zxs   &r   Z<lambda>Z3AXSelection.get_selected_children.<locals>.<lambda>f   s&    66q9[[_=X=XYZ=[[r   z0AXSelection: Exception in get_selected_children:Tr   r   z$AXSelection: Selected child count ofzis )r   r   r   Zis_combo_boxr   Zfind_descendantget_selected_childrenZsetZranger   r   r   r   r   r   r   r   ZaddZremover!   Zlen)	r	   r   Z	containerZchildrenZir    r   r   Zresults	   &        r   r"   Z!AXSelection.get_selected_children\   sT    ;I44S955c:: 00[]I44Y??5uA::3B  U#  ?$c+PQFu//>OOC hv;%<cS=QFu//>% ;; LeT""5#3#3VTB	s   EF"+FFF N)Z__name__Z
__module__Z__qualname__Z__firstlineno____doc__Zstaticmethodr   r   r"   Z__static_attributes__Z__classdictcell__)r   s   @r   r   r   )   sB     T "  : " "r   r   )r$   Z__id__Z__version__Z__date__Z__copyright__Z__license__ZgiZrequire_versionZgi.repositoryr   r   Z r   Z	ax_objectr   Zax_utilities_roler   r   r#   r   r   <module>r%      sR   . Q1 	   7E "     .V Vr   