%PDF- %PDF-
Direktori : /lib/python3/dist-packages/orca/__pycache__/ |
Current File : //lib/python3/dist-packages/orca/__pycache__/action_presenter.cpython-312.pyc |
� g f� � �6 � d Z dZdZdZdZdZddlZ ej dd � ej d d � ddlm Z m Z mZ dd lm Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ G d� d� Z G d� dej. � Z e� Zd� Zy)z3Module for performing accessible actions via a menuz$Id$z $Revision$z$Date$zCopyright (c) 2023 Igalia, S.L.�LGPL� N�Gdkz3.0�Gtk)r �GLibr � )�cmdnames)�debug)� focus_manager)�input_event)�keybindings)�messages)�script_manager)�AXObjectc �F � e Zd ZdZd� Zdd�Zdd�Zd� Zd� Zd� Z d� Z d d �Zy )�ActionPresenterz=Provides menu for performing accessible actions on an object.c � � | j d� | _ t j � | _ d | _ d | _ d | _ y )NT)�get_handlers� _handlersr �KeyBindings� _bindings�_gui�_obj�_window)�selfs �7/usr/lib/python3/dist-packages/orca/action_presenter.py�__init__zActionPresenter.__init__0 s9 � ��*�*�4�0���$�0�0�2����� ��� ���� c � � |rCd}t j t j |d� | j � | j S | j j � r| j � | j S )z)Returns the action-presenter keybindings.z&ACTION PRESENTER: Refreshing bindings.T)r �printMessage� LEVEL_INFO�_setup_bindingsr �isEmpty)r �refresh� is_desktop�msgs r �get_bindingszActionPresenter.get_bindings7 sd � � �:�C����u�/�/��d�;�� � �"� �~�~�� �^�^� #� #� %�� � �"��~�~�r c � � |r7d}t j t j |d� | j � | j S )z&Returns the action-presenter handlers.z&ACTION PRESENTER: Refreshing handlers.T)r r r �_setup_handlersr )r r# r% s r r zActionPresenter.get_handlersC s: � � �:�C����u�/�/��d�;�� � �"��~�~�r c �� � i | _ t j | j t j � | j d<