%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/orca/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/orca/__pycache__/ax_utilities.cpython-312.pyc |
� g f�# � �� � d Z dZdZdZdZdZddlZddlZ ej dd � dd l m Z ddlmZ dd l mZ ddlmZ ddlmZ ddlmZ G d� d� Z ej, eej. �� D ] \ ZZ eeee� � ej, eej. �� D ] \ ZZ eeee� � ej, eej. �� D ]! \ ZZej7 d� s� eeee� �# y)a� Utilities for performing tasks related to accessibility inspection. These utilities are app-type- and toolkit-agnostic. Utilities that might have different implementations or results depending on the type of app (e.g. terminal, chat, web) or toolkit (e.g. Qt, Gtk) should be in script_utilities.py file(s). N.B. There are currently utilities that should never have custom implementations that live in script_utilities.py files. These will be moved over time. z$Id$z $Revision$z$Date$zCopyright (c) 2023 Igalia, S.L.�LGPL� N�Atspiz2.0)r � )�debug)�AXObject)�AXUtilitiesCollection)�AXUtilitiesRole)�AXUtilitiesStatec � � e Zd ZdZdZed� � Zedd�� Zed� � Zed� � Z ed� � Z edd�� Zed � � Zed � � Z ed� � Zed� � Zy )�AXUtilitieszCUtilities for performing tasks related to accessibility inspection.Fc � � t j d� } | S # t $ r3}d|g}t j t j |d� Y d}~yd}~ww xY w)zReturns the accessible desktopr z,ERROR: Exception getting desktop from Atspi:TN)r �get_desktop� Exceptionr �printTokens� LEVEL_INFO)�desktop�error�tokenss �3/usr/lib/python3/dist-packages/orca/ax_utilities.pyr zAXUtilities.get_desktop7 sU � � ��'�'��*�G� ��� � �D�e�L�F����e�.�.���=��� �s � � A�)A�Ac �| � � t j � }|�g S � fd�}t t j ||� � S )z�Returns a list of running applications known to Atspi, filtering out those which have no child windows if must_have_window is True.c �: �� �rt j | � dkD S y)Nr T)r �get_child_count)�obj�must_have_windows �r �predz.AXUtilities.get_all_applications.<locals>.predM s �� ���/�/��4�q�8�8�� )r r �listr � iter_children)r r r s ` r �get_all_applicationsz AXUtilities.get_all_applicationsD s<