| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/pyatspi/ |
Upload File : |
Ñò
1¡ÜJc @ sX d Z d d k Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( s!
Wrapper classes for AT-SPI events and device events.
@author: Peter Parente
@organization: IBM Corporation
@copyright: Copyright (c) 2005, 2007 IBM Corporation
@license: LGPL
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Portions of this code originally licensed and copyright (c) 2005, 2007
IBM Corporation under the BSD license, available at
U{http://www.opensource.org/licenses/bsd-license.php}
iÿÿÿÿNt DeviceEventc B s e Z d Z d „ Z d „ Z RS( sC
Wraps an AT-SPI device event with a more Pythonic interface. Primarily adds
a consume attribute which can be used to cease propagation of a device event.
@ivar consume: Should this event be consumed and not allowed to pass on to
observers further down the dispatch chain in this process or possibly
system wide?
@type consume: boolean
@ivar type: Kind of event, KEY_PRESSED_EVENT or KEY_RELEASED_EVENT
@type type: Accessibility.EventType
@ivar id: Serial identifier for this key event
@type id: integer
@ivar hw_code: Hardware scan code for the key
@type hw_code: integer
@ivar modifiers: Modifiers held at the time of the key event
@type modifiers: integer
@ivar timestamp: Time at which the event occurred relative to some platform
dependent starting point (e.g. XWindows start time)
@type timestamp: integer
@ivar event_string: String describing the key pressed (e.g. keysym)
@type event_string: string
@ivar is_text: Is the event representative of text to be inserted (True), or
of a control key (False)?
@type is_text: boolean
c C sa t | _ | i | _ | i | _ | i | _ | i | _ | i | _ | i | _ | i | _ d S( s|
Attaches event data to this object.
@param event: Event object
@type event: Accessibility.DeviceEvent
N( t Falset consumet typet idt hw_codet modifierst timestampt event_stringt is_text( t selft event( ( s1 /usr/lib/python2.6/site-packages/pyatspi/event.pyt __init__8 s c C si | i t i j o
d } n | i t i j o
d } n d | | i | i | i | i | i | i f S( sq
Builds a human readable representation of the event.
@return: Event description
@rtype: string
t pressedt releasedsT %s
hw_code: %d
event_string: %s
modifiers: %d
id: %d
timestamp: %d
is_text: %s(
R t constantst KEY_PRESSED_EVENTt KEY_RELEASED_EVENTR R R R R R ( R
t kind( ( s1 /usr/lib/python2.6/site-packages/pyatspi/event.pyt __str__H s
( t __name__t
__module__t __doc__R R ( ( ( s1 /usr/lib/python2.6/site-packages/pyatspi/event.pyR s t Eventc B s e Z d Z d „ Z d „ Z RS( sµ
Wraps an AT-SPI event with a more Pythonic interface managing exceptions,
the differences in any_data across versions, and the reference counting of
accessibles provided with the event.
@note: All unmarked attributes of this class should be considered public
readable and writable as the class is acting as a record object.
@ivar consume: Should this event be consumed and not allowed to pass on to
observers further down the dispatch chain in this process?
@type consume: boolean
@ivar type: The type of the AT-SPI event
@type type: L{EventType}
@ivar detail1: First AT-SPI event parameter
@type detail1: integer
@ivar detail2: Second AT-SPI event parameter
@type detail2: integer
@ivar any_data: Extra AT-SPI data payload
@type any_data: object
@ivar host_application: Application owning the event source
@type host_application: Accessibility.Application
@ivar source_name: Name of the event source at the time of event dispatch
@type source_name: string
@ivar source_role: Role of the event source at the time of event dispatch
@type source_role: Accessibility.Role
@ivar source: Source of the event
@type source: Accessibility.Accessible
c C s; t | _ t | i ƒ | _ | i | _ | i | _ y | i i ƒ Wn t j
o n X| i | _ | i i
ƒ } y | i i
ƒ | _ Wn7 t j
o+ | | _ d | _
d | _ d | _ n&