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/orca_console_prefs.pyc
Ñò
z#ÝJc@sGdZdZdZdZdZdZddkZddkZddkZddk	Z	ddk
Z
ddkZddkZe
Zy*ddkZeiiƒo
eZnWnnXddklZgaeaeaeied	ƒƒZd
„Ze
e
eed„Zd„Zd
„Zd„Zd„Z e!djoe ƒndS(sNUses speech prompts and a command line interface to set Orca
user preferences.s$Id$s
$Revision$s$Date$s-Copyright (c) 2005-2008 Sun Microsystems Inc.tLGPLiÿÿÿÿN(t_s^[Yy1]cCsti|ƒdjS(s˜Checks if a string represents a yes.

    Arguments:
    - value: a string read from the console

    Returns True if the argument represents a yes
    N(tYESEXPRtmatchtNone(tvalue((s;/usr/lib/python2.6/site-packages/orca/orca_console_prefs.pytcheckYesFscCsp|o#tiƒ|o|iƒq*n|o|i||ƒnti||ƒ|ot|ƒS|GHdS(sòPrints the given text.  In addition, if the text field
    is not None, speaks the given text, optionally interrupting
    anything currently being spoken.

    Arguments:
    - text: the text to print and speak
    - stop: if True, interrupt any speech currently being spoken
    - getInput: if True, elicits raw input from the user and returns it
    - speechServer: the speech server to use
    - voice: the ACSS to use for speaking

    Returns raw input from the user if getInput is True.
    N(tspeechtstoptspeakt	raw_input(ttextRtgetInputtspeechServertvoice((s;/usr/lib/python2.6/site-packages/orca/orca_console_prefs.pytsayAndPrintPs
cCs÷tt_tiƒ}t|ƒdjotdƒGHtStiƒttdƒƒga	xO|D]G}y7|i
iƒ}t|ƒot	i||gƒnWq_q_Xq_Wtt	ƒdjotdƒGHtStt	ƒdjoáttdƒƒh}d}xCt	D];}|||<td||di
i
ƒfƒ|d7}qWx9to1y#tttdƒttƒƒ}PWqEqEXqEW|djp
||jottdƒƒtS||\}}nt	d\}}t|ƒdjo%ttd	ƒƒttdƒƒtSt|ƒdjoçttd
ƒtt	ƒdjƒd}h}x@|D]8}td||iƒdfƒ|||<|d7}qNWx9to1y#tttdƒttƒƒ}PWqqXqW|djp
||jottdƒƒtS||an|datiƒ}	t|	ƒdjo%ttdƒƒttdƒƒtSt|	ƒdjo$ttdƒtttƒd}h}x€|	D]x}
|
tiid
|
tii}tih|
tii6ƒ}td||fttt|ƒ|||<|d7}qWx<to4y&tttdƒtttƒƒ}PWqqXqW|djp
||jottdƒƒtS||}
n!tih|	dtii6ƒ}
|
ad|
tii<d|
tii<d|
tii<tihdtii6ƒ}tihƒ}h|
ti6|ti6|ti 6}t|d<||d<t|d<||d<ttdƒttttƒ}t!|ƒ|d<ttdƒttttƒ}t!|ƒoôt|d<ttdƒttttƒ}t!|ƒ|d<ttdƒttttƒ}t!|ƒ|d<ttdƒttttƒ}t!|ƒ|d<ttd ƒttttƒ}t!|ƒ|d!<ttd"ƒttttƒ}t!|ƒ|d#<n=t|d<t|d<t|d<t|d<t|d!<t|d#<ttd$ƒttttƒd}h}ttd%ƒttttƒttd&ƒttttƒx?to7y)tttdƒttttƒƒ}PWqAqAXqAW|d'joti"|d(<ti#|d)<nti$|d(<ti%|d)<|djp
|d*jottd+ƒƒntS(,sèSets up speech support.  If speech setup is successful and the
    user wants it, writes speech settings to the setting file and returns
    True.  If speech is not available, or the user doesn't want speech,
    returns False.
    isSpeech is unavailable.sWelcome to Orca setup.isSelect desired speech system:s%d. %ssEnter choice: sSpeech will not be used.
sNo servers available.
sSelect desired speech server.sNo voices available.
sSelect desired voice:s (%s)i2idiitenableSpeechtspeechServerFactorytspeechServerInfotvoicess$Enable echo by word?  Enter y or n: tenableEchoByWords Enable key echo?  Enter y or n: t
enableKeyEchos9Enable alphanumeric and punctuation keys?  Enter y or n: tenablePrintableKeyss%Enable modifier keys?  Enter y or n: tenableModifierKeyss$Enable locking keys?  Enter y or n: tenableLockingKeyss%Enable function keys?  Enter y or n: tenableFunctionKeyss#Enable action keys?  Enter y or n: tenableActionKeyssSelect desired keyboard layout.s
1. Desktops	2. LaptopitkeyboardLayouttorcaModifierKeysis3Invalid choice. Selecting desktop keyboard layout.
(&tFalsetsettingstenableSpeechCallbacksRtgetSpeechServerFactoriestlenRtinitRtworkingFactoriestSpeechServertgetSpeechServerstappendtgetFactoryNametTruetinttgetInfotspeechServerChoicetgetVoiceFamiliestspeechservertVoiceFamilytNAMEtLOCALEtacsstACSStFAMILYtspeechVoiceChoicetRATEtGAINt
AVERAGE_PITCHt
DEFAULT_VOICEtUPPERCASE_VOICEtHYPERLINK_VOICERtGENERAL_KEYBOARD_LAYOUT_LAPTOPtLAPTOP_MODIFIER_KEYStGENERAL_KEYBOARD_LAYOUT_DESKTOPtDESKTOP_MODIFIER_KEYS(t	prefsDictt	factoriestfactorytserverstchoicestitworkingFactorytchoicetservertfamiliestfamilytnameRtdefaultACSSt
uppercaseACSSt
hyperlinkACSSRtanswer((s;/usr/lib/python2.6/site-packages/orca/orca_console_prefs.pytsetupSpeechrsŠ	


	
	


	 






		

						





	



cCsGddk}|iƒ}|iddƒ}|i|iidƒƒdS(s Log the user out of the desktop.iÿÿÿÿNsorg.gnome.SessionManagers/org/gnome/SessionManageri(tdbust
SessionBust
get_objecttLogoutttypestUInt32(RPtbustsessionManager((s;/usr/lib/python2.6/site-packages/orca/orca_console_prefs.pyt
logoutUser²s
		cCsh}d|jo|dpt|ƒo"t|d<t|d<t|d<nttdƒttttƒ}t|ƒ|d<ttdƒttttƒ}t|ƒ|d<ttdƒttttƒ}ti	t|ƒƒt
i|ƒ}|oØttd	ƒ|tttƒttd
ƒttttƒto•ttdƒttttƒ}t|ƒofttdƒttttƒt
id
ƒddk}ddk}|iƒ|itƒ|iƒqÆqÊnttdƒ|tttƒ}x!tD]\}}|iiƒqðWdS(s8Uses the console to query the user for Orca preferences.RRRsEnable Braille?  Enter y or n: t
enableBrailles'Enable Braille Monitor?  Enter y or n: tenableBrailleMonitors9Automatically start orca when you log in?  Enter y or n: s6Accessibility support for GNOME has just been enabled.sBYou need to log out and log back in for the change to take effect.s*Do you want to logout now?  Enter y or n: s Setup complete. Logging out now.iiÿÿÿÿNs*Setup complete.  Press Return to continue.(RORRRR(R+R4RRtsetOrcaAutostartt
orca_prefstwritePreferencestdesktopRunningttimetsleeptbonobotgobjecttthreads_inittidle_addRXtmainR#R$tshutdownActiveServers(tcommandLineSettingsR?RNtlogoutNeededRaRbRARB((s;/usr/lib/python2.6/site-packages/orca/orca_console_prefs.pytshowPreferencesUI»s‚


						



	cCstƒdS(N(Ri(((s;/usr/lib/python2.6/site-packages/orca/orca_console_prefs.pyRest__main__("t__doc__t__id__t__version__t__date__t
__copyright__t__license__treR1RRR-R\R_RR^tgtktgdktdisplay_get_defaultR(t	orca_i18nRR#RR+R4tcompileRRRRORXRiRet__name__(((s;/usr/lib/python2.6/site-packages/orca/orca_console_prefs.pyt<module>sH		ÿA			Z	


Youez - 2016 - github.com/yon3zu
LinuXploit