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 :  /usr/lib64/pygtk/2.0/demos/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/pygtk/2.0/demos/dnd.pyo
mò
e‡8Hc@s®dZdkZdkZdklZlZlZdZdZddefddefddefgZ	d„Z
d	eifd
„ƒYZd„Z
edjoe
ƒndS(
s“Drag and Drop

This is a test of the drag and drop capabilities of gtk.  It is a
fairly straight forward port of the example distributed with gtk.
N(s
drag_icon_xpmstrashcan_open_xpmstrashcan_closed_xpmiitSTRINGs
text/plainsapplication/x-rootwin-dropcCstiid|iƒd|ƒS(N(tgtktgdkt!pixmap_colormap_create_from_xpm_dtNonetwidgettget_colormaptxpm_data(RR((t!/usr/lib64/pygtk/2.0/demos/dnd.pyt
create_pixmapstDragAndDropDemocBsÑtZdZdZdZdZdZdZe	Z
e	Ze	ZdZ
dZdZdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd	„Zd
„Zd„Zd„Zd
„Zd„Zd„ZRS(NicCsøtii|ƒy|i|iƒƒWn&tj
o|idd„ƒnX|i	|i
iƒtiddƒ}|i|ƒt|tƒ\|_|_t|tƒ\|_|_t|tƒ\|_|_tidƒ}|ititd tiitii Bƒ|id|i!ƒ|i"|ddddƒtid	ƒ}|ititd tiitii Bƒ|i"|ddddƒ|id
|i#ƒ|id|i$ƒti%ƒ}|i'|i|iƒ|idgdƒ|i"|ddddƒ|id|i(ƒ|id
|i)ƒ|id|i*ƒ|id|i+ƒti,d
ƒ}|i.tii/tii0Bttiitii Bƒ|i1|i2ƒ|i|iƒ|i"|ddddƒ|id|i3ƒ|id|i4ƒ|i5ƒdS(NtdestroycGs
tiƒS(N(Rt	main_quit(tw((Rt<lambda>.sisDrop to Trashcan!
iÿÿÿÿtdrag_data_receivediisPopup
tdrag_motiont
drag_leavet	drag_dropsDrag from Here
t
drag_data_gettdrag_data_delete(6RtWindowt__init__tselft
set_screentparentt
get_screentAttributeErrortconnectt	set_titlet	__class__t__name__tTablettabletaddR	t
drag_icon_xpmt	drag_icont	drag_maskttrashcan_open_xpmt
trashcan_openttrashcan_open_maskttrashcan_closed_xpmttrashcan_closedttrashcan_closed_masktLabeltlabelt
drag_dest_settDEST_DEFAULT_ALLttargetRtACTION_COPYtACTION_MOVEtlabel_drag_data_receivedtattachtpopsite_motiont
popsite_leavetImagetimagetset_from_pixmapttarget_drag_leavettarget_drag_motionttarget_drag_dropttarget_drag_data_receivedtButtontbtdrag_source_settBUTTON1_MASKtBUTTON3_MASKtdrag_source_set_iconRtsource_drag_data_gettsource_drag_data_deletetshow_all(RRR?R-R!R8((RR)sL
cCsQ|o3|idjo#d|iGH|itt|ƒn|itt|ƒdS(NisReceived "%s" in label(tdatatformattcontexttfinishtTruetFalsettime(RR
RItxtyRGtinfoRM((RR3ZscCs*|iptid|iƒ|_ntS(Niô(Rtpopup_timertgobjectttimeout_addtpopup_cbRK(RR
RIRNRORM((RR5as
cCs+|ioti|iƒd|_ndS(Ni(RRQRRt
source_remove(RR
RIRM((RR6fs
cCsLdGH|ip9t|_|io"dGHti|iƒd|_qHntS(Ntpopup_motionsremoved popdowni(Rtin_popupRKt
popdown_timerRRRU(RR
RIRNRORM((RRVks
	
cCsKdGH|io8t|_|ip!dGHtid|iƒ|_qGndS(Ntpopup_leaves
added popdowniô(RRWRLRXRRRSt
popdown_cb(RR
RIRM((RRYus
	
cCsl|ip8|idjotitiƒ|_|iitiƒti	ddƒ}x³tdƒD]¥}t
|dƒ\}}tid||fƒ}|ititd tiitiiBƒ|id|iƒ|id|iƒ|i|||d||dƒqaW|iƒ|ii|ƒn|iiƒt|_nt i!d|i"ƒ|_#d	GHd
|_$t%S(Nii	s%d,%diÿÿÿÿRRiiôs
added popdowni(&Rt	popped_upt	popup_winRRRtWINDOW_POPUPtset_positiont
WIN_POS_MOUSER R!trangetktdivmodtitjR>R?R.R/R0RR1R2RRVRYR4RFR"tpresentRKRRRSRZRXRQRL(RRdRcR?R!Ra((RRT}s,

%


	cCs(dGHd|_|iiƒt|_tS(Ntpopdowni(RRXR\thideRLR[(R((RRZ”s
	
	cCs(dGHt|_|i|i|iƒdS(Ntleave(RLRt	have_dragtimgR9R*R+(RRjRIRM((RR:s	cCsu|itjo#t|_|i|i|iƒn|i	ƒ}dG|o|iiGHndGH|i
|i|ƒtS(Nsmotion, source tunknown(RRiRLRKRjR9R'R(RItget_source_widgett
source_widgetRRtdrag_statustsuggested_actionRM(RRjRIRNRORMRm((RR;¢s	cCsTdGHt|_|i|i|iƒ|io"|i	||id|ƒtSntS(Ntdropi(RLRRiRjR9R*R+RIttargetst
drag_get_dataRMRK(RRjRIRNRORM((RR<¯s	
cCsJ|idjo#d|iGH|itt|ƒn|itt|ƒdS(NisReceived "%s" in trashcan(RGRHRIRJRKRLRM(RRjRIRNRORGRPRM((RR=¸scCs0|tjo	dGHn|i|iddƒdS(NsI was dropped on the rootwinis	I'm Data!(RPtTARGET_ROOTWINtselection_datatsetR0(RtbtnRIRtRPRM((RRD¿s
	cCs	dGHdS(NsDelete the data!((RRvRIRG((RREÅs(Rt
__module__RR'R(R*R+R$R%RLRiR[RWRQRXR\RR3R5R6RVRYRTRZR:R;R<R=RDRE(((RR
s41				
						
				cCstƒtiƒdS(N(R
Rtmain(((RRxÈst__main__(t__doc__RRRt	dndpixmapR#R&R)t
TARGET_STRINGRsR0R	RR
RxR(R)R
RxR|R0R	RR&RsRRR#((Rt?s		*	­	


Anon7 - 2021