%PDF- %PDF-
Mini Shell

Mini Shell

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

�

g
f
���dZdZdZdZdZdZddlZejdd	�dd
lm	Z	ddl
mcmcm
Z
ddlmZddlmZddlmZGd
�de
j(�Zy)z'Provides a custom script for gcalctool.z$Id$z
$Revision$z$Date$z-Copyright (c) 2005-2008 Sun Microsystems Inc.�LGPL�N�Atspiz2.0)r)�AXObject)�AXUtilitiesc��eZdZd�Zd�Zd�Zy)�Scriptc�`�tjj||�d|_d|_y)z�Creates a new script for the given application.  Callers
        should use the getScript factory method instead of calling
        this constructor directly.

        Arguments:
        - app: the application to create a script for.
        N)�gtkr�__init__�_resultsDisplay�_statusLine)�self�apps  �D/usr/lib/python3/dist-packages/orca/scripts/apps/gcalctool/script.pyrzScript.__init__-s(��	�
�
���D�#�&�#������c�x�|jr-|jr!tjj	||�ytj|j�tjjk7r!tjj	||�ytj|jtj�|_|js|jtj �d�}tj|j|�|_tjj	||�y)z�Called whenever one of gcalctool's toplevel windows is activated.

        Arguments:
        - event: the window activated Event
        Nc��tj|�tjjk(xrtj|�S)N)r�get_roler�Role�TEXTr�is_editable)�xs r�isStatusLinez.Script.onWindowActivated.<locals>.isStatusLineNs4���$�$�Q�'�5�:�:�?�?�:�]�;�CZ�CZ�[\�C]�?]�]r)rr
r
r�onWindowActivatedrr�sourcerr�FRAME�find_descendantr�
is_editbar�presentMessage�messages�CALCULATOR_DISPLAY_NOT_FOUND)r�eventrs   rrzScript.onWindowActivated;s������D�$4�$4��J�J�(�(��u�5�����U�\�\�*�e�j�j�.>�.>�>��J�J�(�(��u�5��'�7�7����k�F\�F\�]����#�#����� E� E�F�	^�$�3�3�E�L�L�,�O����
�
�$�$�T�5�1rc��|jj|j|j�r5|j	|jj|j��ytjj||�y)z�Called whenever text is inserted into gcalctool's text display.

        Arguments:
        - event: the text inserted Event
        N)	�	utilities�isSameObjectrr
r�
displayedTextr
r�onTextInserted)rr"s  rr'zScript.onTextInsertedTs\���>�>�&�&�u�|�|�T�5E�5E�F������� <� <�T�=M�=M� N�O���
�
�!�!�$��.rN)�__name__�
__module__�__qualname__rrr'�rrrr+s�� �2�2/rr)�__doc__�__id__�__version__�__date__�
__copyright__�__license__�gi�require_version�
gi.repositoryr�orca.scripts.toolkits.gtk�scripts�toolkitsr
�
orca.messagesr �orca.ax_objectr�orca.ax_utilitiesrrr+rr�<module>r;sZ��(.�������?�
���	�����7�E�"��'�'� �#�)�4/�S�Z�Z�4/r

Zerion Mini Shell 1.0