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/editable_cells.pyo
mò
e‡8Hc@s­dZdkZdkZedƒ\ZZZddegddegddegdd	egd
deggZdei	fd
„ƒYZ
d„ZedjoeƒndS(s¿Tree View/Editable Cells

This demo demonstrates the use of editable cells in a GtkTreeView.
If you're new to the GtkTreeView widgets and associates, look into the
GtkListStore example first.Nisbottles of cokeispackages of noodlesis"packages of chocolate chip cookiesiscan vanilla ice creamiteggstEditableCellsDemocBsAtZdd„Zd„Zd„Zd„Zd„Zd„ZRS(Nc	Csûtii|ƒy|i|iƒƒWn&tj
o|idd„ƒnX|i	|i
iƒ|idƒ|i
ddƒtitdƒ}|i|ƒtidƒ}|i|ttƒtiƒ}|itiƒ|ititiƒ|i|ƒ|iƒ}ti|ƒ}|it ƒ|i!ƒi"ti#ƒ|i$|ƒ|i|ƒti%t dƒ}|i|ttƒti'dti(ƒ}|id	|i*|ƒ|i|ƒti'dti+ƒ}|id	|i,|ƒ|i|ƒ|i-ƒdS(
NtdestroycGs
tiƒS(N(tgtkt	main_quit(tw((t,/usr/lib64/pygtk/2.0/demos/editable_cells.pyt<lambda>"sii@iÈs'Shopping list (you can edit the cells!)itstocktclicked(.RtWindowt__init__tselft
set_screentparentt
get_screentAttributeErrortconnectt	set_titlet	__class__t__name__tset_border_widthtset_default_sizetVBoxtFalsetvboxtaddtLabeltlabelt
pack_starttScrolledWindowtswtset_shadow_typetSHADOW_ETCHED_INt
set_policytPOLICY_AUTOMATICt _EditableCellsDemo__create_modeltmodeltTreeViewttreeviewtset_rules_hinttTruet
get_selectiontset_modetSELECTION_SINGLEt_EditableCellsDemo__add_columnstHBoxthboxtButtont	STOCK_ADDtbuttonton_add_item_clickedtSTOCK_REMOVEton_remove_item_clickedtshow_all(	RRRRRR%R'R2R/((RRs>







c
Csjtitititiƒ}xEtD]=}|i	ƒ}|i|t|tt
|t
t|tƒq%W|S(N(Rt	ListStoretgobjecttTYPE_INTtTYPE_STRINGtTYPE_BOOLEANR%tarticlestitemtappendtitertsett
COLUMN_NUMBERtCOLUMN_PRODUCTtCOLUMN_EDITABLE(RR?R=R%((Rt__create_modelLs	

cCsÊ|iƒ}tiƒ}|id|i|ƒ|i	dt
ƒtid|dt
dtƒ}|i|ƒtiƒ}|id|i|ƒ|i	dtƒtid|dtdtƒ}|i|ƒdS(NteditedtcolumntNumberttextteditabletProduct(R't	get_modelR%RtCellRendererTexttrendererRRton_cell_editedtset_dataRAtTreeViewColumnRCRFt
append_columnRB(RR'RFRMR%((Rt
__add_columnsas
c	CsWddtg}ti|ƒ|iƒ}|i|t|tt|tt	|t	ƒdS(NisDescription here(
R)tnew_itemR<R>R%R?R@RARBRC(RR2R%RSR?((RR3xs
	

cCsT|iƒ}|iƒ\}}|o+|i|ƒd}|i|ƒt	|=ndS(Ni(
R'R*t	selectiontget_selectedR%R?tget_pathtpathtremoveR<(RR2R'RTR?RWR%((RR5„s
c	CsÁ|i|ƒ}|i|ƒd}|idƒ}|t	jo3t
|ƒt|t	<|i
||t|t	ƒnM|tjo?|i||ƒ}|t|t<|i
||t|tƒndS(NiRF(R%tget_iter_from_stringtpath_stringR?RVRWtcelltget_dataRFRAtinttnew_textR<R@RBt	get_valuetold_text(	RR[RZR^R%R`RFR?RW((RRNs

(	Rt
__module__tNoneRR$R-R3R5RN(((RRs/				cCstƒtiƒdS(N(RRtmain(((RRc¡st__main__(
t__doc__R8RtrangeRARBRCR)R<R
RRcR(R<RBRRAR8RCRcR((Rt?s		B…	


Anon7 - 2021