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//outline.pyc
Ñò
z#ÝJc
@sdZdZdZdZdZdZddkZyCddkZeii	ƒZ
e
iƒZei
ƒZeiƒZWnnXddkZddkZd„Zgad	eifd
„ƒYZdefd„ƒYZd
efd„ƒYZd„Zd„Zd„ZdS(s~Provides a simple utility to draw outlines on the screen.
[[[TODO: WDW - The Wedge support is experimental and not perfect.]]]s$Id$s
$Revision$s$Date$s(Copyright (c) 2008 Sun Microsystems Inc.tLGPLiÿÿÿÿNcCs|djo||}d}n&|tjo||t8}t}n|djo||}d}n&|tjo||t8}t}n||tjot|}n||tjotdt|ƒ}ntd|ƒ}td|ƒ}||||gS(Nii(tscreen_widtht
screen_heighttmax(txtytwidththeight((s0/usr/lib/python2.6/site-packages/orca/outline.pyt_adjustToScreen/s&









tLinecBseZdZd„ZRS(s¡Draws a simple filled box on the display using
    settings.outlineColor for the color.

    Arguments:
    - x, y, width, height: the dimensions of the box
    cCsÅtii|tiƒ|ititiiti	dti	dti	dƒƒ|i
dtƒ|itƒ|i
tƒ|itƒ|i||ƒ|i||ƒ|i||ƒ|iƒdS(Niiisaccept-focus(tgtktWindowt__init__tWINDOW_TOPLEVELt	modify_bgtSTATE_NORMALtgdktColortsettingstoutlineColortset_propertytFalset
set_decoratedtset_keep_abovetTruetset_skip_taskbar_hinttmovetset_default_sizetresizetrealize(tselfRRRR((s0/usr/lib/python2.6/site-packages/orca/outline.pyROs



(t__name__t
__module__t__doc__R(((s0/usr/lib/python2.6/site-packages/orca/outline.pyR	HstWedgecBs eZdZd„Zd„ZRS(s%Draws a filled isosceles triangle on the display
    using settings.outlineColor for the color.

    Arguments:
    - x, y, width, height - the bounding box of the triangle
    - top - if true, the triangle is flat on the bottom,
            if false, the triangle is pointy on the bottom
    cCs9||_ti|||||ƒ|id|iƒdS(Ns
size-allocate(ttopR	Rtconnectt_on_size_allocate(RRRRRR#((s0/usr/lib/python2.6/site-packages/orca/outline.pyRjs	cCsH|i|i}}tiid||dƒ}|iƒ}|idddƒ|it	i
ƒ|iƒ|it	iƒ|i
oP|i|ddƒ|i|d|d|ƒ|i|d|d|ƒnM|i|d|ƒ|i|d|ddƒ|i|d|ddƒ|iƒ|iƒ|i|ddƒdS(s+Sets the shape of the window to a triangle.iig@gN(RRR
RtPixmaptNonetcairo_createtset_source_rgbtset_operatortcairotOPERATOR_DEST_OUTtpaintt
OPERATOR_OVERR#tmove_totline_tot
close_pathtfilltshape_combine_mask(Rtwint
allocationRRtbitmaptcr((s0/usr/lib/python2.6/site-packages/orca/outline.pyR%os"

 

(RR R!RR%(((s0/usr/lib/python2.6/site-packages/orca/outline.pyR"as	tBoxcBs eZdZd„Zd„ZRS(sßDraws the outline of a rectangle on the display
    using settings.outlineColor for the color.

    Arguments:
    - x, y, width, height - the bounding box of the rectangle
    - thickness - the thickness of the border
    cCs9||_ti|||||ƒ|id|iƒdS(Ns
size-allocate(t	thicknessR	RR$R%(RRRRRR9((s0/usr/lib/python2.6/site-packages/orca/outline.pyRšs	cCsá|i|i}}tiid||dƒ}|iƒ}|idddƒ|it	i
ƒ|iƒ|i|i
ƒ|it	iƒ|i
d}|id|d|||i
||i
ƒ|iƒ|i|ddƒdS(s3Sets the shape of the window to a hollow rectangle.iig@gN(RRR
RR&R'R(R)R*R+R,R-tset_line_widthR9R.t	rectangletstrokeR3(RR4R5RRR6R7toffset((s0/usr/lib/python2.6/site-packages/orca/outline.pyR%Ÿs


(RR R!RR%(((s0/usr/lib/python2.6/site-packages/orca/outline.pyR8’s	cCs%xtD]}|iƒqWgadS(s/Destroys all windows we have put on the screen.N(t_outlineWindowstdestroy(twindow((s0/usr/lib/python2.6/site-packages/orca/outline.pytreset»scCsxtD]}|iƒqWdS(s-Erases all windows we have put on the screen.N(R>thide(R@((s0/usr/lib/python2.6/site-packages/orca/outline.pyteraseÂscCs-titijon×titijo”||ti}ti}t||||ƒ\}}}}tp&t||||ƒ}ti	|ƒqítdi
||ƒtdi||ƒn0titijoÀtiti}||}||}|d|}|d|}t||||ƒ\}}}}tp,t
||||tiƒ}ti	|ƒqítdi
||ƒtdi||ƒn]titijoIdti}||jo"||}|}||d8}n|dti}	||ti}
t||	||ƒ\}}	}}
t||
||ƒ\}}
}}tpNt||	||
tƒ}ti	|ƒt||
||tƒ}ti	|ƒqítdi
||
ƒtdi||	ƒtdi
||ƒtdi||
ƒnx9tD]1}|iƒy|iitiƒWqôqôXqôWdS(s‡Draws an outline for the given rectangle.  This might
    be composed of multiple windows depending upon the
    settings.outlineStyle.iiiiN(RtoutlineStyletOUTLINE_NONEtOUTLINE_LINEt
outlineMargintoutlineThicknessRR>R	tappendRRtOUTLINE_BOXR8tOUTLINE_WEDGESR"RRtpresentR@t
set_user_timet
orca_statetlastInputEventTimestamp(RRRRtlinetextratboxt	wedgeSizetdiffttopytbottomyttopxttopwidtht	topheighttbottomxtbottomwidthtbottomheightR#tbottomR@((s0/usr/lib/python2.6/site-packages/orca/outline.pytdrawÇsd	!

!


!!

(R!t__id__t__version__t__date__t
__copyright__t__license__R+R
Rtdisplay_get_defaulttdisplaytget_default_screentscreent	get_widthRt
get_heightRRNRRR>RR	R"R8RARCR^(((s0/usr/lib/python2.6/site-packages/orca/outline.pyt<module>s0	1)		

Youez - 2016 - github.com/yon3zu
LinuXploit