
    g
f	                     p    d Z dZdZdZdZdZddlmc mZ ddl	m
Z
 dd	lmZ  G d
 dej                        Zy)zCustom script for xfwm4.z$Id$z
$Revision$z$Date$z!Copyright (c) 2011 The Orca Team.LGPL    N)AXObject)AXUtilitiesc                       e Zd Zd Zd Zd Zy)Scriptc                 D    t         j                  j                  | |       y)zCreates a new script for the given application.

        Arguments:
        - app: the application to create a script for.
        N)defaultr   __init__)selfapps     @/usr/lib/python3/dist-packages/orca/scripts/apps/xfwm4/script.pyr
   zScript.__init__(   s     	c*    c                     t        j                  |j                        s!t        j                  j                  | |       y| j                  t        j                  |j                               y)zCalled whenever text is inserted into an object. Overridden
        here so that we will speak each item as the user is switching
        windows.

        Arguments:
        - event: the Event
        N)	r   is_labelsourcer	   r   onTextInsertedpresentMessager   get_namer   events     r   r   zScript.onTextInserted1   sJ     ##ELL1NN))$6H--ell;<r   c                     t        j                  |j                        s!t        j                  j                  | |       yy)zCalled whenever text is deleted from an object. Overridden
        here because we wish to ignore text deletion events associated
        with window switching.

        Arguments:
        - event: the Event
        N)r   r   r   r	   r   onTextDeletedr   s     r   r   zScript.onTextDeleted@   s/     ##ELL1NN((u5 2r   N)__name__
__module____qualname__r
   r   r    r   r   r   r   &   s    +=
6r   r   )__doc____id____version____date____copyright____license__orca.scripts.defaultscriptsr	   orca.ax_objectr   orca.ax_utilitiesr   r   r   r   r   <module>r'      s?   ( 3 & & # )$6W^^ $6r   