%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/orca/scripts/apps/pidgin/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/orca/scripts/apps/pidgin/__pycache__/script_utilities.cpython-312.pyc

�

g
f����dZdZdZdZdZdZddlZejdd	�dd
lm	Z	ddl
mcmcm
Z
ddlmZddlmZdd
lmZGd�de
j(�Zy)z�Commonly-required utility methods needed by -- and potentially
   customized by -- application and toolkit scripts. They have
   been pulled out from the scripts because certain scripts had
   gotten way too large as a result of including these methods.z$Id$z
$Revision$z$Date$z#Copyright (c) 2010 Joanmarie Diggs.�LGPL�N�Atspiz2.0)r)�AXObject)�AXTable)�AXUtilitiesc�.��eZdZd�Z�fd�Z�fd�Z�xZS)�	Utilitiesc�Z�|jjj|�sytj|�r|Stj
|�syt
j|�}tj
|�r|}t
j|�}tj|�r|Sy�N)	�_script�chat�
isInBuddyListr�
is_expandable�
is_table_cellr�
get_parent�get_previous_sibling)�self�obj�parent�	candidates    �K/usr/lib/python3/dist-packages/orca/scripts/apps/pidgin/script_utilities.py�getExpanderCellForzUtilities.getExpanderCellFor*s����|�|� � �.�.�s�3���$�$�S�)��J��(�(��-���$�$�S�)���$�$�V�,��C��1�1�#�6�	��$�$�Y�/����c����|jjj|�st�|�|�Stj|�sgStj|�}|�gSg}tj|�\}}|dz
}|j|�}t|dztj|d���D]�}tj|||�}tj|�}	tj |	t"j$j&�}
|
s�`|
j)d�}|j+||�r|j-|���|j|�|ks��|S|S)adGets all of the children that have RELATION_NODE_CHILD_OF pointing
        to this expanded table cell. Overridden here because the object
        which contains the relation is in a hidden column and thus doesn't
        have a column number.

        Arguments:
        -obj: the Accessible Object

        Returns: a list of all the child nodes
        �F)�prefer_attributer)rr
r�super�
childNodesr�is_expandedr�	get_table�get_cell_coordinates�	nodeLevel�range�
get_row_count�get_cell_atrr�get_relationr�RelationType�
NODE_CHILD_OF�
get_target�isSameObject�append)
rrr�nodes�row�colr"�i�cell�nodeCell�relation�nodeOf�	__class__s
            �rrzUtilities.childNodes>sI����|�|� � �.�.�s�3��7�%�c�*�*��&�&�s�+��I��"�"�3�'���>��I����/�/��4���S�	�q����N�N�3�'�	��s�Q�w�� 5� 5�f�u� U�V�	�A��&�&�v�q�#�6�D��4�4�T�:�H��,�,�X�u�7I�7I�7W�7W�X�H����(�(��+�F�� � ��f�-����T�"�����'�9�4����	��rc���|jjj|�st�|�|�St�|�tj|��Sr)rr
rrr"rr)rrr4s  �rr"zUtilities.nodeLevelosF����|�|� � �.�.�s�3��7�$�S�)�)��w� ��!>�!>�s�!C�D�Dr)�__name__�
__module__�__qualname__rrr"�
__classcell__)r4s@rr	r	(s����(/�bE�Err	)�__doc__�__id__�__version__�__date__�
__copyright__�__license__�gi�require_version�
gi.repositoryr�orca.scripts.toolkits.gtk�scripts�toolkits�gtk�orca.ax_objectr�
orca.ax_tabler�orca.ax_utilitiesrr	�rr�<module>rKsa��(C�

������5�
���	�����7�E�"��'�'�#�!�)�KE��
�
�KEr

Zerion Mini Shell 1.0