%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/orca/scripts/apps/pidgin/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/orca/scripts/apps/pidgin/__pycache__/script.cpython-312.pyc |
� g f� � � � d Z dZdZdZdZdZddlZ ej dd � dd lm Z ddl mZ ddlm Z ddlmc mc mZ ddlmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ G d� dej@ � Z y)zCustom script for pidgin.z$Id$z $Revision$z$Date$z#Copyright (c) 2010 Joanmarie Diggs.�LGPL� N�Atspiz2.0)r )�AXObject)�AXTable)�AXUtilities� )�Chat�� Utilities��SpeechGeneratorc � � � e Zd Z� fd�Zd� Zd� Zd� Z� fd�Zd� Zd� Z d� Z d � Z� fd �Z� fd�Z � fd�Z� fd �Z� fd�Z� fd�Z� xZS )�Scriptc � �� t j j t j j t j j t j j t j j t j j t j j gg| _ t �| �) |� y)z�Creates a new script for the given application. Arguments: - app: the application to create a script for. N)r �Role� TREE_TABLE�SCROLL_PANE�FILLER�PAGE_TAB� PAGE_TAB_LIST�FRAME�_buddyListAncestries�super�__init__)�self�app� __class__s ��A/usr/lib/python3/dist-packages/orca/scripts/apps/pidgin/script.pyr zScript.__init__/ s~ �� � ',�j�j�&;�&;�&+�j�j�&<�&<�&+�j�j�&7�&7�&+�j�j�&9�&9�&+�j�j�&>�&>�&+�j�j�&7�&7�&+�j�j�&6�&6� &8� %9��!� ����� c �. � t | | j � S )z)Returns the 'chat' class for this script.)r r �r s r �getChatzScript.getChatB s � � �D�$�3�3�4�4r c � � t | � S )z.Returns the speech generator for this script. r r! s r �getSpeechGeneratorzScript.getSpeechGeneratorG s � � �t�$�$r c � � t | � S )z&Returns the utilities for this script.r r! s r �getUtilitieszScript.getUtilitiesL s � � ���r c � �� t �| � � | j j | j j � y)z�Defines InputEventHandler fields for this script that can be called by the key and braille bindings. Here we need to add the handlers for chat functionality. N)r �setupInputEventHandlers�inputEventHandlers�update�chat)r r s �r r( zScript.setupInputEventHandlersQ s. �� � ��'�)����&�&�t�y�y�'C�'C�Dr c �. � | j j S )z=Returns the application-specific keybindings for this script.)r+ �keyBindingsr! s r �getAppKeyBindingszScript.getAppKeyBindingsZ s � � �y�y�$�$�$r c �6 � | j j � S )z�Return a GtkGrid containing the application unique configuration GUI items for the current application. The chat-related options get created by the chat module.)r+ �getAppPreferencesGUIr! s r r0 zScript.getAppPreferencesGUI_ s � � �y�y�-�-�/�/r c �6 � | j j � S )z7Returns a dictionary with the app-specific preferences.)r+ �getPreferencesFromGUIr! s r r2 zScript.getPreferencesFromGUIf s � � �y�y�.�.�0�0r c � � t j d� t j |j � rt j d� |j j d� �rnt j j t j j t j j g}| j j |j |� r�d}t j |j d� � }t j |� }|syt j"