403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/pyatspi/event.pyo
Ñò
1¡ÜJc@sXdZddkZdefd„ƒYZdefd„ƒYZdefd„ƒYZdS(	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ÿÿÿÿNtDeviceEventcBs eZdZd„Zd„ZRS(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
  cCsat|_|i|_|i|_|i|_|i|_|i|_|i|_|i|_dS(s|
    Attaches event data to this object.
    
    @param event: Event object
    @type event: Accessibility.DeviceEvent
    N(	tFalsetconsumettypetidthw_codet	modifierst	timestamptevent_stringtis_text(tselftevent((s1/usr/lib/python2.6/site-packages/pyatspi/event.pyt__init__8s	cCsi|itijo
d}n|itijo
d}nd||i|i|i|i|i|i	fS(sq
    Builds a human readable representation of the event.

    @return: Event description
    @rtype: string
    tpressedtreleasedsT%s
	hw_code: %d
	event_string: %s
	modifiers: %d
	id: %d
	timestamp: %d
	is_text: %s(
Rt	constantstKEY_PRESSED_EVENTtKEY_RELEASED_EVENTRRRRRR	(R
tkind((s1/usr/lib/python2.6/site-packages/pyatspi/event.pyt__str__Hs

(t__name__t
__module__t__doc__RR(((s1/usr/lib/python2.6/site-packages/pyatspi/event.pyRs	tEventcBs eZdZd„Zd„ZRS(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
  cCs;t|_t|iƒ|_|i|_|i|_y|iiƒWntj
onX|i|_|i	i
ƒ}y|i	i
ƒ|_	Wn7tj
o+||_	d|_
d|_d|_n&X|i
|_
|i|_|i|_y|i	iƒWntj
onXy|i
iƒWntj
onXdS(sU
    Extracts information from the provided event. If the event is a "normal" 
    event, pulls the detail1, detail2, any_data, and source values out of the
    given object and stores it in this object. If the event is a device event,
    key ID is stored in detail1, scan code is stored in detail2, key name, 
    key modifiers (e.g. ALT, CTRL, etc.), is text flag, and timestamp are 
    stored as a 4-tuple in any_data, and source is None (since key events are
    global).

    @param event: Event from an AT-SPI callback
    @type event: Accessibility.Event or Accessibility.DeviceEvent
    N(RRt	EventTypeRtdetail1tdetail2tsourcetreftAttributeErrortany_datatvaluet	ExceptiontNonethost_applicationtsource_nametsource_role(R
Rtdetails((s1/usr/lib/python2.6/site-packages/pyatspi/event.pyRzs8				cCs,d|i|i|i|i|i|ifS(s§
    Builds a human readable representation of the event including event type,
    parameters, and source info.

    @return: Event description
    @rtype: string
    s0%s(%s, %s, %s)
	source: %s
	host_application: %s(RRRRRR"(R
((s1/usr/lib/python2.6/site-packages/pyatspi/event.pyR±s(RRRRR(((s1/usr/lib/python2.6/site-packages/pyatspi/event.pyR]s	7RcBseZdZdZd„ZRS(s&
  Wraps the AT-SPI event type string so its components can be accessed 
  individually as klass (can't use the keyword class), major, minor, and detail 
  (klass:major:minor:detail).
  
  @note: All attributes of an instance of this class should be considered 
    public readable as it is acting a a struct.
  @ivar klass: Most general event type identifier (object, window, mouse, etc.)
  @type klass: string
  @ivar major: Second level event type description
  @type major: string
  @ivar minor: Third level event type description
  @type minor: string
  @ivar detail: Lowest level event type description
  @type detail: string
  @ivar name: Full, unparsed event name as received from AT-SPI
  @type name: string
  @cvar format: Names of the event string components
  @type format: 4-tuple of string
  tklasstmajortminortdetailcCs“|idƒ|_|i|_d|_d|_d|_d|_|iiddƒ}x5t	t
|ƒƒD]!}t||i|||ƒqjWdS(s^    
    Parses the full AT-SPI event name into its components
    (klass:major:minor:detail). If the provided event name is an integer
    instead of a string, then the event is really a device event.
    
    @param name: Full AT-SPI event name
    @type name: string
    @raise AttributeError: When the given event name is not a valid string 
    t:iN(
tstripRtnameR!R&R'R(R)tsplittxrangetlentsetattrtformat(R
R,R-ti((s1/usr/lib/python2.6/site-packages/pyatspi/event.pyRÔs				(sklasssmajorsminorsdetail(RRRR1R(((s1/usr/lib/python2.6/site-packages/pyatspi/event.pyR½s(RRtobjectRRtstrR(((s1/usr/lib/python2.6/site-packages/pyatspi/event.pyt<module>s?`

Youez - 2016 - github.com/yon3zu
LinuXploit