MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/proc/2/cwd/usr/lib/python2.4/Demo/tkinter/guido/canvasevents.pyo
mò
‚=5Dc@sìdkTdklZlZlZdefd„ƒYZdfd„ƒYZdefd„ƒYZdfd	„ƒYZd
efd„ƒYZdefd
„ƒYZ	de	fd„ƒYZ
dfd„ƒYZd„Ze
djoeƒndS((t*(sOvalsGroups
CanvasTexttGroupcBstZddd„ZRS(NcCs|ii|i||ƒS(N(tselftcanvasttag_bindtidtsequencetcommand(RRR((t5/usr/lib/python2.4/Demo/tkinter/guido/canvasevents.pytbinds(t__name__t
__module__tNoneR	(((RR
stObjectcBsYtZdZddddd„Zd„Zd„Zd„Zd„Zd	„Zd
„Z	RS(s½Base class for composite graphical objects.

    Objects belong to a canvas, and can be moved around on the canvas.
    They also belong to at most one ``pile'' of objects, and can be
    transferred between piles (or removed from their pile).

    Objects have a canonical ``x, y'' position which is moved when the
    object is moved.  Where the object is relative to this position
    depends on the object; for simple objects, it may be their center.

    Objects have mouse sensitivity.  They can be clicked, dragged and
    double-clicked.  The behavior may actually determined by the pile
    they are in.

    All instance attributes are public since the derived class may
    need them.

    itredtobjectcCsJ||_||_||_d|_t|iƒ|_|i||ƒdS(N(RRtxtyRtpileRtgrouptcreateitemstfillttext(RRRRRR((Rt__init__#s				cCs
t|iƒS(N(tstrRR(R((Rt__str__+sc
Cs”t|i|id|id|id|idd|ddƒ|_|ii|iƒt	|i|i|id|ƒ|_|ii|iƒdS(Nii
RtwidthiR(tOvalRRRRRt
_Object__ovalRtaddtag_withtagt
CanvasTextRt
_Object__text(RRR((RR.s	(	cCs]||jo
djnodSn|ii||ƒ|i||_|i||_dS(Ni(tdxtdyRRtmoveRR(RR R!((Rtmoveby7s
cCs"|i||i||iƒdS(N(RR#RR(RRR((Rtmoveto>scCsR|io|ii|ƒd|_n||_|io|ii|ƒndS(N(RRtdeleteRtadd(RR((RttransferAs

	
cCs|iiƒdS(N(RRttkraise(R((RR(Is(
R
Rt__doc__RRRR#R$R'R((((RR
s						tBottomcBstZdZd„ZRS(s+An object to serve as the bottom of a pile.c
Gs]t|i|id|id|id|idddddƒ|_|ii|iƒdS(Nii
Rtgraytoutlinet(RRRRRt
_Bottom__ovalRR(Rtargs((RRQs	((R
RR)R(((RR*MstPilecBsPtZdZed„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(sA group of graphical objects.cCs~||_||_||_g|_t|i|i|iƒ|_t|id|ƒ|_	|i	i
|ii	ƒ|iƒdS(Nttag(RRRRtobjectsR*tbottomRR1RRtbindhandlers(RRRRR1((RR\s				cCs0|iid|iƒ|iid|iƒdS(Ns<1>s
<Double-1>(RRR	tclickhandlertdoubleclickhandler(R((RR4fscCs4|ii|ƒ|ii|iƒ|i|ƒdS(N(RR2tappendRRRtposition(RR((RR&jscCs'|ii|iƒ|ii|ƒdS(N(RRtdtagRR2tremove(RR((RR%oscCsF|iƒ|ii|ƒ}|i|i|d|i|dƒdS(Nii(	RR(RR2tindextiR$RR(RRR<((RR8ss
cCsdS(N((Rtevent((RR5xscCsdS(N((RR=((RR6{s(R
RR)RRR4R&R%R8R5R6(((RR0Xs
					t
MovingPilecBsAtZd„ZdZd„ZeZd„Zd„Zd„Z	RS(NcCs=ti|ƒ|iid|iƒ|iid|iƒdS(Ns<B1-Motion>s<ButtonRelease-1>(R0R4RRR	t
motionhandlertreleasehandler(R((RR4s
cCs®|iidƒ}xOtt|iƒƒD]+}|i|}|i	i
|joPq(q(Wd|_dS|i||_x|iD]}|i
ƒq~W|i|_|i|_dS(Ntcurrent(RRtgettagsttagstrangetlenR2R<toRR1RtmovethisR(R=RtlastxRtlasty(RR=RCR<RF((RR5ˆs
		
cCsr|ipdSn|i|i}|i|i}|i|_|i|_x!|iD]}|i
||ƒqTWdS(N(RRGR=RRHR RRIR!RFR#(RR=RFR R!((RR?™s

cCs2|i}|pdSnd|_|i|ƒdS(N(RRGR2Rt
finishmove(RR=R2((RR@£s
		cCs"x|D]}|i|ƒqWdS(N(R2RFRR8(RR2RF((RRJªs(
R
RR4RRGR5R6R?R@RJ(((RR>s			
	tPile1cBs>tZdZdZdZd„Zd„Zd„Zd„ZRS(Ni2tp1cCs5||_ti||ii|i|i|iƒdS(N(tdemoRR>RRRRR1(RRM((RRµs	cCsRy|id}Wntj
odSnX|i|iƒƒti||ƒdS(Niÿÿÿÿ(	RR2RFt
IndexErrorR'totherR>R6R=(RR=RF((RR6¹s	cCs
|iiS(N(RRMtp2(R((RROÁscCs |d}|iƒ}|i|i}}||id||id||id||idjo"x/|D]}|i|ƒqqWnti	||ƒdS(Nii(
R2RFRROtpRRR'R>RJ(RR2RFRQRR((RRJÄs
A(	R
RRRR1RR6RORJ(((RRK¯s			tPile2cBs#tZdZdZdZd„ZRS(Ni–i2RPcCs
|iiS(N(RRMRL(R((RROÔs(R
RRRR1RO(((RRRÎstDemocBstZd„ZRS(NcCsò||_t|dddddddtddƒ|_|iid	d
dtƒt|ƒ|_t	|ƒ|_
t|iddd
dƒ}t|iddd
dƒ}t|iddd
dƒ}|i|iƒ|i|iƒ|i|i
ƒdS(NRiÈtheightt
backgroundtyellowtrelieftborderwidthitexpandiRRRto1tgreento2s
light blueto3(tmasterRtCanvastSUNKENRtpacktBOTHRKRLRRRPR
RZR\R]R'(RR^R]R\RZ((RRÚs	(R
RR(((RRSØscCs6tƒ}t|ƒ}|id|iƒ|iƒdS(NtWM_DELETE_WINDOW(tTktrootRSRMtprotocoltquittmainloop(RMRe((Rtmainís	t__main__N(tTkinterR_RRRR
R*R0R>RKRRRSRiR
(RRR*RSR
RRR>R0RRKRi((Rt?s?'0