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/brlmon.pyc
Ńň
z#ÝJc@s“dZdZdZdZdZdZddkZdZd	Zd
Z	dZ
dd
dZdd
dZdZ
dZdZdeifd„ƒYZdS(ssProvides a graphical braille display at the top of the screen.
This is mainly for debugging and for demonstrations.s$Id$s
$Revision$s$Date$s-Copyright (c) 2005-2008 Sun Microsystems Inc.tLGPLi˙˙˙˙Ns@s€sŔs size='xx-large's background='black's weight='ultrabold's style='italic's background='white's underline='low's underline='error's underline='double'tBrlMoncBs5eZdZdddd„Zd„Zdd„ZRS(sśDisplays a GUI braille monitor that mirrors what is being
    shown on the braille display.  This currently needs a lot of
    work, but it is a start.  TODO's include doing a better job of
    docking it at the top of the display (e.g., make all other
    windows move out from underneath it), doing better highlighting of
    the cursor cell, allowing the font to be set, and perhaps allowing
    clicks to simulate cursor routing keys.i ii2cCs#tii|tiƒ|idƒ|i|||ƒtitƒ}|i|ƒg|_	g|_
d}xŽ||jo€tiƒ}|iti
ƒtidƒ}|itƒ|i|ƒ|i|ƒ|i	i|ƒ|i
i|ƒ|d7}qnW|idtƒ|id|iƒdS(sĘCreate a new BrlMon.

        Arguments:
        - numCells: how many braille cells to make
        - cellWidth: width of each cell in pixels
        - cellHeight: height of each cell in pixels
        sBraille Monitorit isaccept-focusscheck-resizeN(tgtktWindowt__init__tWINDOW_TOPLEVELt	set_titletset_default_sizetHBoxtTruetaddt
cellFramest
cellLabelstFrametset_shadow_typet
SHADOW_OUTtLabeltset_use_markuptappendtset_propertytFalset
connect_aftertonResize(tselftnumCellst	cellWidtht
cellHeightthboxtitframetlabel((s//usr/lib/python2.6/site-packages/orca/brlmon.pyRAs*	

		



cCsŰtiiƒ}|iiƒ\}}||jo||d}nd}|iitiiƒ|iitiidt	ƒtiidt	ƒdtii
dd|dddddd|dddgƒ|i|dƒdS(s†Tell the window to be a dock and set its struts, which I
        thinks means to attempt to glue it somewhere on the display.
        iit_NET_WM_STRUT_PARTIALtCARDINALi iN(Rtgdktscreen_widthtwindowtget_sizet
set_type_hinttWINDOW_TYPE_HINT_DOCKtproperty_changetatom_internRtPROP_MODE_REPLACEtmove(RtobjR#twindow_widtht
window_heighttx((s//usr/lib/python2.6/site-packages/orca/brlmon.pyRbs.
		
cCsţy|idƒ}Wn
d}nXx€tdt|ƒƒD]i}||djo
d}nA||djo
d}n&||djo
d	}n||}t}||d
joD||djo|t7}n|t7}|i|iti	ƒn|i|iti
ƒyl|oa||tjo|t7}qw||t
jo|t7}qw||tjo|t7}qwnWnnX|i|id|d
|ƒq9WxQtt|ƒt|iƒƒD]1}|i|idƒ|i|iti
ƒqĹWdS(sýDisplay the given text and highlight the given
        cursor cell.  A cursorCell of 0 means no cell has
        the cursor.

        Arguments:
        - cursorCell: 1-based index of cell with cursor
        - string: len must be <= num cells.
        sUTF-8tit<s&lt;t&s&amp;s	s$tiRs<spans
>%s</span>N(tdecodetrangetlentNORMALtCURSOR_CELL_EMPTYtCURSOR_CELLRRRt	SHADOW_INRtDOTS_78tATTRIBUTE_78tDOT_7tATTRIBUTE_7tDOT_8tATTRIBUTE_8R
t
set_markuptset_text(Rt
cursorCelltstringtmaskRtchartmarkup((s//usr/lib/python2.6/site-packages/orca/brlmon.pyt	writeText‰sN










N(t__name__t
__module__t__doc__RRtNoneRG(((s//usr/lib/python2.6/site-packages/orca/brlmon.pyR7s!	'(RJt__id__t__version__t__date__t
__copyright__t__license__RR<R>R:R6R7R8R=R?R;RR(((s//usr/lib/python2.6/site-packages/orca/brlmon.pyt<module>s 

Youez - 2016 - github.com/yon3zu
LinuXploit