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/procedural.pyc
mς
q—Ec@s»dZdZdkZdklZlZlZdklZdkZdk	l
Z
defd„ƒYZdk
Z
d„Zd	Zd
fd„ƒYZdefd
„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZd„Zd„Zddd„ZeƒZeƒZed ƒZed!ƒZed"ƒZ eei!ƒZ!eei"ƒZ"dS(#se
Dogtail's procedural UI
All the classes here are intended to be single-instance, except for Action.
sZack Cerza <zcerza@redhat.com>N(sGenericPredicatesIsADialogNamedsIsAnApplicationNamed(sconfig(ssleept
FocusErrorcBstZRS(N(t__name__t
__module__(((t6/usr/lib/python2.4/site-packages/dogtail/procedural.pyRscCstidƒdS(Ns"The requested object was not found(terrorstwarn(((RtfocusFailedssAt least one argument is neededt	FocusBasecBs&tZdZeZd„Zd„ZRS(sO
    The base for every class in the module. Does nothing special, really.
    cCs7yt|i|ƒSWntj
ot|‚nXdS(N(tgetattrtselftnodetnametAttributeError(R	R((Rt__getattr__(scCsX|djo||i|<n7yt|i||ƒWntj
ot|‚nXdS(NR
(RtvalueR	t__dict__tsetattrR
R(R	RR((Rt__setattr__.s
(RRt__doc__tNoneR
R
R(((RR"s	tFocusApplicationcBs tZdZeiZd„ZRS(s@
    Keeps track of which application is currently focused.
    cCs•y.t|ƒ}|ii|dtdtƒ}Wn:ti	j
o+}tio
t
|‚qktƒdSnX|o|t_dt_dt_ndS(sW
        Search for an application that matches and refocus on the given name.
        t	recursivetretryN(tIsAnApplicationNamedRt	predicateR	tdesktopt	findChildtFalsetappttreetSearchErrortdesctconfigtfatalErrorsRRRR
RtFocusDialogtFocusWidget(R	RRRR((Rt__call__<s"

			(RRRRtrootRR$(((RR7s	tFocusDesktopcBstZdZRS(s5
    This isn't used yet, and may never be used.
    (RRR(((RR&MsR"cBstZdZd„ZRS(s;
    Keeps track of which dialog is currently focused.
    cCsd}t|ƒ}y"tii|dtdtƒ}Wnt	j
onX|o|t
_dt_n&ti
ot|i‚ntƒdSdS(sT
        Search for a dialog that matches the given name and refocus on it.
        t
requireResultRN(RtresulttIsADialogNamedRRRR
RRRR"R#R R!Rt	debugNameR(R	RRR(((RR$Ws"	

(RRRR$(((RR"SsR#cBs tZdZdddd„ZRS(s;
    Keeps track of which widget is currently focused.
    tcCs|o|o|o
tt‚nd}td|d|d|ƒ}y"t	i
i|dtdtƒ}Wnt
j
onX|o
|t	_
n9y"ti
i|dtdtƒ}Wnt
j
onX|o
|t	_
noy6ti
i|dtdtƒ}|o
|t	_
nWn5t
j
o)tio
t|‚qLtƒdSnX|djo2|t	_
tiot|i‚q‹tƒdSndS(su
        If name, roleName or description are specified, search for a widget that matches and refocus on it.
        RtroleNametdescriptionR'RN(RR,R-t	TypeErrortENOARGSRR(tGenericPredicateRR#R
RRRR"RR R!RRR*(R	RR,R-RR(((RR$ms@
"
"


	
	
(RRRR$(((RR#istFocuscBs€tZdZd„Zd„ZeiZeƒZ	e	Z
eƒZe
ƒZd„Zd„Zd„Zd„Zd„Zdd	„Zdd
„Zdd„Zd„ZRS(
sM
    The container class for the focused application, dialog and widget.
    cCs
t|‚dS(N(RR(R	R((RR
–scCs+|djo||i|<n
t|‚dS(Ntapplicationtdialogtwidget(sapplicationsdialogswidget(RRR	RR(R	RR((RR˜s
cCs|id|ddƒdS(sK
        A shortcut to self.widget(name, roleName = 'push button')
        RR,spush buttonN(R	R4R(R	R((Rtbutton€scCs|id|ddƒdS(sE
        A shortcut to self.widget(name, roleName = 'frame')
        RR,tframeN(R	R4R(R	R((RR6ͺscCs|id|ddƒdS(sD
        A shortcut to self.widget(name, roleName = 'icon')
        RR,ticonN(R	R4R(R	R((RR7°scCs|id|ddƒdS(sD
        A shortcut to self.widget(name, roleName = 'menu')
        RR,tmenuN(R	R4R(R	R((RR8ΆscCs|id|ddƒdS(sI
        A shortcut to self.widget(name, roleName = 'menu item')
        RR,s	menu itemN(R	R4R(R	R((RtmenuItemΌsR+cCs|id|ddƒdS(sC
        A shortcut to self.widget(name, roleName 'table')
        RR,ttableN(R	R4R(R	R((RR:ΒscCs|id|ddƒdS(sH
        A shortcut to self.widget(name, roleName 'table cell')
        RR,s
table cellN(R	R4R(R	R((Rt	tableCellΘscCs|id|ddƒdS(sD
        A shortcut to self.widget(name, roleName = 'text')
        RR,ttextN(R	R4R(R	R((RR<ΞscCs|id|ddƒdS(sF
        A shortcut to self.widget(name, roleName = 'window')
        RR,twindowN(R	R4R(R	R((RR=Τs(RRRR
RRR%RRR2RR"R3R#R4R5R6R7R8R9R:R;R<R=(((RR1‘s"											tActioncBs€tZdZd„Zdddeid„Zd„Zd„Zd„Z	d„Z
d„Zdd	„Zdd
„Z
dd„ZRS(sO
    Aids in executing AT-SPI actions, refocusing the widget if necessary.
    cCs
||_dS(sr
        action is a string with the same name as the AT-SPI action you wish to execute using this class.
        N(tactionR	(R	R?((Rt__init__ήsR+cCsY|p|p|o#ti|d|d|d|ƒn|ii|iƒt	|ƒdS(sœ
        If name, roleName or description are specified, first search for a widget that matches and refocus on it.
        Then execute the action.
        RR,R-N(RR,R-R#R$R	R
tdoActionR?tsleeptdelay(R	RR,R-RC((RR$δs
#cCstti|ƒS(N(RR#R
tattr(R	RD((RR
ξscCs2|djo||i|<ntt||ƒdS(NR?(RDRR	RRR#(R	RDR((RRρs
cCs|id|ddƒdS(sD
        A shortcut to self(name, roleName = 'push button')
        RR,spush buttonN(R	R$R(R	R((RR5φscCs|id|ddƒdS(s=
        A shortcut to self(name, roleName = 'menu')
        RR,R8N(R	R$R(R	R((RR8όscCs|id|ddƒdS(sB
        A shortcut to self(name, roleName = 'menu item')
        RR,s	menu itemN(R	R$R(R	R((RR9scCs|id|ddƒdS(s<
        A shortcut to self(name, roleName 'table')
        RR,R:N(R	R$R(R	R((RR:scCs|id|ddƒdS(sA
        A shortcut to self(name, roleName 'table cell')
        RR,s
table cellN(R	R$R(R	R((RR;scCs|id|ddƒdS(s=
        A shortcut to self(name, roleName = 'text')
        RR,R<N(R	R$R(R	R((RR<s(RRRR@R tactionDelayR$R
RR5R8R9R:R;R<(((RR>Ϊs	
					tClickcBsGtZdZdZdZdZd„Zdddeeei	d„Z
RS(sR
    A special case of Action, Click will eventually handle raw mouse events.
    iiicCsti|dƒdS(Ntclick(R>R@R	(R	((RR@!sR+c
Cst|oD|o=ti|d|d|d|ƒti	i
|ƒt|ƒn&t
i|d|d|d|d|ƒdS(s†
        If coords or button are specified, execute a raw mouse event. If not, just pass the rest of the arguments to Action.
        RR,R-RCN(trawR5R#R$R	RR,R-RFR
trawClickRBRCR>(R	RR,R-RHR5RC((RR$$s(RRRtprimarytmiddlet	secondaryR@RR RER$(((RRFs	tSelectcBs;tZdZdZdZd„Zdddeid„ZRS(sC
    Aids in selecting and deselecting widgets, i.e. page tabs
    tselecttdeselectcCs:||i|ifjo
t|‚nti||ƒdS(s8
        action must be 'select' or 'deselect'.
        N(R?R	RNROt
ValueErrorR>R@(R	R?((RR@6s
R+cCsb|p|p|o#ti|d|d|d|ƒnt|i|iƒ}|ƒt
|ƒdS(sœ
        If name, roleName or description are specified, first search for a widget that matches and refocus on it.
        Then execute the action.
        RR,R-N(RR,R-R#R$R	RR
R?tfuncRBRC(R	RR,R-RCRQ((RR$>s#(	RRRRNROR@R RER$(((RRM0s
	cCs5tiiotiii|ƒnti|ƒdS(N(tfocusR4R
ttypeTextR<trawinput(R<((RttypeIs
cCs5tiiotiii|ƒnti|ƒdS(N(RRR4R
tkeyCombotcomboRT(RW((RRVOs
R+cCs2dkl}|||d|ƒti|ƒdS(N(sruntappName(tutilstruntutilsRunR2t	argumentsRXRR(R2R\RXR[((RRZUs
tactivatetopenR8(#Rt
__author__RRR0R)RR RTttimeRBt	ExceptionRRRR/RRR&R"R#R1R>RFRMRURVRZRRRGR]topenItemR8RNRO(R]R/RRRBRTRZRGRNRORRVR8R&RR#R RR)R_R>R0R"RbRURR1RRRRFRM((Rt?s:
	
	
		(I@				

Anon7 - 2021