KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/root/usr/lib/python2.4/site-packages/dogtail/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/lib/python2.4/site-packages/dogtail/rawinput.pyc
mς
Δ1-Ec@s~dZdZdkZdkZdkZdklZdklZdk	l
ZeiƒZ
d„Zdd„Zdd	„Zdd
„Zdd„Zd„Zd
„Zdd„Zd„Zd„ZeiiZeeƒZhdd<dd<dd<dd<dd<dd<dd<dd<d d!<d"d#<d$d%<d&d'<d(d<Zd)„Zd*„Zd+„Zd,„Z dS(-s€
Handles raw input using AT-SPI event generation.

Authors: David Malcolm <dmalcolm@redhat.com>, Zack Cerza <zcerza@redhat.com>
sE
David Malcolm <dmalcolm@redhat.com>,
Zack Cerza <zcerza@redhat.com>
N(sconfig(sdoDelay(sdebugLoggercCsttiƒdS(N(tdoDelaytconfigttypingDelay(((t4/usr/lib/python2.4/site-packages/dogtail/rawinput.pyt
doTypingDelaysicCs8tid|||fƒti|||ƒtƒdS(s2
    Synthesize a mouse button click at (x,y)
    s Mouse button %s click at (%s,%s)N(tloggertlogtbuttontxtytevtclickR(RR	R((RRscCs8tid|||fƒti|||ƒtƒdS(s9
    Synthesize a mouse button double-click at (x,y)
    s&Mouse button %s doubleclick at (%s,%s)N(RRRRR	R
tdoubleClickR(RR	R((RR scCs8tid|||fƒti|||ƒtƒdS(s2
    Synthesize a mouse button press at (x,y)
    s Mouse button %s press at (%s,%s)N(RRRRR	R
tpressR(RR	R((RR
(scCs8tid|||fƒti|||ƒtƒdS(s4
    Synthesize a mouse button release at (x,y)
    s"Mouse button %s release at (%s,%s)N(RRRRR	R
treleaseR(RR	R((RR0scCs2tid||fƒti||ƒtƒdS(s3
    Synthesize mouse absolute motion to (x,y)
    s Mouse absolute motion to (%s,%s)N(RRRR	R
tabsoluteMotionR(RR	((RR8scCs2tid||fƒti||ƒtƒdS(Ns Mouse relative motion of (%s,%s)(RRRR	R
trelativeMotionR(RR	((RR@scCsztid|||fƒ|\}}ti|||ƒ|\}}ti	||ƒt
ƒti|||ƒt
ƒdS(s†
    Synthesize a mouse press, drag, and release on the screen.
    Wraps atspi.EventGenerator.drag, but with logging and delays.
    s"Mouse button %s drag from %s to %sN(RRRtfromXYttoXYRR	R
R
RRR(RRRR	R((RtdragEscCsBt|tƒp|idƒ}nx|D]}t|ƒq*WdS(s>
    Types the specified string, one character at a time.
    sutf-8N(t
isinstancetstringtunicodetdecodetchartpressKey(RR((RttypeTextZscCs™h}h}|iƒ}xztoryT|iƒ}y.|i|dƒp|d||d<nWnt	j
onXWqt
j
o|SqXqWdS(Nii(tsymstkeyStringsDicttkeySymsDictt	iteritemstitertTruetnexttitemthas_keyt	TypeErrort
StopIteration(RRRR"R((Rt__buildKeyStringsDictcs	tentertReturntesctEscapetalttAlt_Ltcontrolt	Control_LtctrltshifttShift_LtdeltDeletetinstInserttpageuptPage_Uptpagedownt	Page_Downt tspaces	tTabs
cCs3tii|ƒ}|ot|ƒ}nd}|S(Nt(tgtktgdktkeyval_to_unicodetkeySymtitunichrtUniChar(RARBRD((RtkeySymToUniCharŒs
cCs"t|ƒ}tii|ƒ}|S(N(tordtuniCharRBR>R?tunicode_to_keyvalRA(RGRBRA((RtuniCharToKeySym’scCsŒy&ti|iƒ|ƒ}t|}WnBtj
o6yt|ƒ}Wqktj
ot|‚qkXnXt	i
|dtiƒt
ƒdS(s
    Presses (and releases) the key specified by keyName.
    keyName is the English name of the key as seen on the keyboard. Ex: 'enter'
    Names are looked up in the keySyms dict. If they are not found there, 
    they are looked up by uniCharToKeySym().
    R=N(t
keySymAliasestgettkeyNametlowertkeySymsRAtKeyErrorRIR$R
tgenerateKeyboardEventtatspitSPI_KEY_SYMR(RLRA((RR—scCsΏg}xl|idƒD][}|oNxK|idƒD]6}|o)ti|iƒ|ƒ}|i|ƒq3q3WqqWx/|D]'}t	i
|ƒptd|‚q|q|Wti
|ƒtƒdS(s
    Generates the appropriate keyboard events to simulate a user pressing the
    specified key combination.

    comboString is the representation of the key combo to be generated.
    e.g. '<Control><Alt>p' or '<Control><Shift>PageUp' or '<Control>q'
    t<t>sCannot find key %sN(tstringstcomboStringtsplittstSRJRKRMtappendRNR#t
ValueErrorR
tgenerateKeyComboR(RVRXRYRU((RtkeyCombo§s 
(!t__doc__t
__author__RQtgtk.keysymsR>tgtk.gdkRtutilsRtloggingtdebugLoggerRtEventGeneratorR
RRRR
RRRRRR&tkeysymst__dict__RNt
keyStringsRJRERIRR](RRRR
RRR]R>RRJRERRR&RR_RR
RQRNRhRRIR((Rt?s2			


						{			

Anon7 - 2021