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/orca/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca/input_event.pyo
Ñò
z#ÝJc@sdZdZdZdZdZdZddkZddkZddkZdZ	d	Z
d
ZdZdZ
d
dd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZddd„ƒYZd„ZdS(s`Provides support for handling input events.  This provides several classes
to define input events (InputEvent, KeyboardEvent, BrailleEvent,
MouseButtonEvent, MouseMotionEvent, and SpeechEvent), and also provides a
InputEventHandler class.  It is intended that instances of InputEventHandler
will be used which should be used to handle all input events.s$Id$s
$Revision$s$Date$s-Copyright (c) 2005-2008 Sun Microsystems Inc.tLGPLiÿÿÿÿNtkeyboardtbraillesmouse:buttonsmouse:motiontspeecht
InputEventcBseZd„ZRS(cCs
||_dS(sáCreates a new input event of the given type.

        Arguments:
        - eventType: the input event type (one of KEYBOARD_EVENT, BRAILLE_EVENT,
                MOUSE_BUTTON_EVENT, MOUSE_MOTION_EVENT, SPEECH_EVENT).
        N(ttype(tselft	eventType((s4/usr/lib/python2.6/site-packages/orca/input_event.pyt__init__,s(t__name__t
__module__R(((s4/usr/lib/python2.6/site-packages/orca/input_event.pyR*st
KeyboardEventcBseZd„ZRS(cCsë|i}|iti@oV|ioKt|ƒdjo8t|idƒ}|djot|dƒ}qpn|iti@|_t	i
|tƒ|i|_|i
|_
|i|_||_|i|_tiƒ|_|i|_dS(sxCreates a new InputEvent of type KEYBOARD_EVENT.

        Arguments:
        - event: the AT-SPI keyboard event
        iii i@N(tevent_stringt	modifierstsettingstCTRL_MODIFIER_MASKtis_texttlentordtchrtALL_BUT_NUMLOCK_MODIFIER_MASKRRtKEYBOARD_EVENTRthw_codettimet	timestamp(RteventRtvalue((s4/usr/lib/python2.6/site-packages/orca/input_event.pyR8s 	

	(R	R
R(((s4/usr/lib/python2.6/site-packages/orca/input_event.pyR6stBrailleEventcBseZd„ZRS(cCsti|tƒ||_dS(sˆCreates a new InputEvent of type BRAILLE_EVENT.

        Arguments:
        - event: the integer BrlTTY command for this event.
        N(RRt
BRAILLE_EVENTR(RR((s4/usr/lib/python2.6/site-packages/orca/input_event.pyR^s(R	R
R(((s4/usr/lib/python2.6/site-packages/orca/input_event.pyR\stMouseButtonEventcBseZd„ZRS(cCsiti|tƒ|i|_|i|_|iidƒ|_	|it
dƒd!|_tiƒ|_dS(s=Creates a new InputEvent of type MOUSE_BUTTON_EVENT.
        tps
mouse:button:iÿÿÿÿN(
RRtMOUSE_BUTTON_EVENTtdetail1txtdetail2tyRtendswithtpressedRtbuttonR(RR((s4/usr/lib/python2.6/site-packages/orca/input_event.pyRis(R	R
R(((s4/usr/lib/python2.6/site-packages/orca/input_event.pyRgstMouseMotionEventcBseZd„ZRS(cCsti|tƒ||_dS(s3[[[TODO: WDW - undefined at the moment.]]]
        N(RRtMOUSE_MOTION_EVENTR(RR((s4/usr/lib/python2.6/site-packages/orca/input_event.pyRus(R	R
R(((s4/usr/lib/python2.6/site-packages/orca/input_event.pyR'sstSpeechEventcBseZd„ZRS(cCsti|tƒ||_dS(s3[[[TODO: WDW - undefined at the moment.]]]
        N(RRtSPEECH_EVENTR(RR((s4/usr/lib/python2.6/site-packages/orca/input_event.pyR}s(R	R
R(((s4/usr/lib/python2.6/site-packages/orca/input_event.pyR){stInputEventHandlercBs&eZed„Zd„Zd„ZRS(cCs||_||_||_dS(sCreates a new InputEventHandler instance.  All bindings
        (e.g., key bindings and braille bindings) will be handled
        by an instance of an InputEventHandler.

        Arguments:
        - function: the function to call with an InputEvent instance as its
                    sole argument.  The function is expected to return True
                    if it consumes the event; otherwise it should return
                    False
        - description: a localized string describing what this InputEvent
                       does
        - learnModeEnabled: if True, the description will be spoken and
                            brailled if learn mode is enabled.  If False,
                            the function will be called no matter what.
        N(tfunctiontdescriptiont_learnModeEnabled(RR,R-tlearnModeEnabled((s4/usr/lib/python2.6/site-packages/orca/input_event.pyR…s		cCs|i|ijS(s&Compares one input handler to another.(R,(Rtother((s4/usr/lib/python2.6/site-packages/orca/input_event.pyt__eq__šscCsžt}tioZ|ioP|ioBddk}ddk}|i|iƒ|i|iƒt	}qšn1y|i
||ƒ}Wntiti
ƒnX|S(s»Processes an input event.  If settings.learnModeEnabled is True,
        this will merely report the description of the input event to braille
        and speech.  If settings.learnModeEnabled is False, this will call the
        function bound to this InputEventHandler instance, passing the
        inputEvent as the sole argument to the function.

        This function is expected to return True if it consumes the
        event; otherwise it is expected to return False.

        Arguments:
        - script:     the script (if any) associated with this event
        - inputEvent: the input event to pass to the function bound
                      to this InputEventHandler instance.
        iÿÿÿÿN(tFalseRR/R.R-RRtdisplayMessagetspeaktTrueR,tdebugtprintExceptiontLEVEL_SEVERE(Rtscriptt
inputEventtconsumedRR((s4/usr/lib/python2.6/site-packages/orca/input_event.pytprocessInputEventžs
(R	R
R5RR1R<(((s4/usr/lib/python2.6/site-packages/orca/input_event.pyR+ƒs	cCsPd|id|id|id|id|id|idtiƒS(NsKEYEVENT: type=%d
s          hw_code=%d
s          modifiers=%d
s          event_string=(%s)
s          is_text=%s
s          timestamp=%d
s          time=%f(RRR
RRRR(R((s4/usr/lib/python2.6/site-packages/orca/input_event.pytkeyEventToStringÁs(((t__doc__t__id__t__version__t__date__t
__copyright__t__license__R6RRRRRR(R*RRRRR'R)R+R=(((s4/usr/lib/python2.6/site-packages/orca/input_event.pyt<module>s*&>

Youez - 2016 - github.com/yon3zu
LinuXploit