Spade
Mini Shell
| Directory:~$ /proc/self/root/usr/lib64/python2.7/Demo/tkinter/ttk/ |
| [Home] [System Details] [Kill Me] |
�
V
�Qc@s�dZddlZddlZddlZd6Zd7d8d9d:d;d<d=d>d?d@dAdBdCdDdEgZd1�Zd2efd3��YZd4�Z e
d5kr�e �ndS(FsCDemo based on the demo mclist included with tk source
distribution.i����Ntcountrytcapitaltcurrencyt ArgentinasBuenos
AirestARSt AustraliatCanberratAUDtBraziltBraziliatBRLtCanadatOttawatCADtChinatBeijingtCNYtFrancetParistEURtGermanytBerlintIndias New
DelhitINRtItalytRometJapantTokyotJPYtMexicosMexico
CitytMXNtRussiatMoscowtRUBsSouth AfricatPretoriatZARsUnited
KingdomtLondontGBPs
United StatessWashington,
D.C.tUSDcs�g�jd�D]}�j||�|f^q}|jd��x1t|�D]#\}}�j|dd|�qQW�j|d|��fd��dS(s/Sort
tree contents when a column is clicked
on.ttreverseitcommandcst�|t���S(N(tsortbytint(tcol(t
descendingttree(s=/usr/lib64/python2.7/Demo/tkinter/ttk/treeview_multicolumn.pyt<lambda>%sN(tget_childrentsettsortt enumeratetmovetheading(R.R,R-tchildtdatatindxtitem((R-R.s=/usr/lib64/python2.7/Demo/tkinter/ttk/treeview_multicolumn.pyR*s4tAppcBs#eZd�Zd�Zd�ZRS(cCs!d|_|j�|j�dS(N(tNoneR.t_setup_widgetst_build_tree(tself((s=/usr/lib64/python2.7/Demo/tkinter/ttk/treeview_multicolumn.pyt__init__(s
cCsetjdddddddd$dd�}|jd
d�tj�}|jd
ddt�tjdtdd�|_tjddd|jj �}tjddd|jj
�}|jjd|jd|j�|jj
ddddddd|�|j
dd
dddd!d|�|j
dddd dd"d|�|jdd#d �|jdd#d
�dS(%Nt
wraplengtht4itjustifytlefttanchortntpaddingi
iittexts�Ttk is the new Tk themed widget set. One of the widgets it
includes is a tree widget, which can be configured to display multiple
columns of informational data without displaying the tree itself. This is a
simple way to build a listbox that has multiple columns. Clicking on the
heading for a column will sort the data by that column. You can also change
the width of the columns by dragging the boundary between
them.tfilltxtbothtexpandtcolumnstshowtheadingstorienttverticalR)t
horizontaltyscrollcommandtxscrollcommandtcolumnitrowtstickytnsewtin_itnstewtweight(i
ii
i(tttktLabeltpacktFrametTruetTreeviewttree_columnsR.t Scrollbartyviewtxviewt configureR1tgridtgrid_columnconfiguretgrid_rowconfigure(R>tmsgt containertvsbthsb((s=/usr/lib64/python2.7/Demo/tkinter/ttk/treeview_multicolumn.pyR<-s %""c s xgtD]_}�jj|d|j�d|�fd���jj|dtj�j|j���qWx�tD]�}�jj ddd|�xnt
|�D]`\}}tj�j|�}�jjt|dd�|kr��jjt|d|�q�q�WqqWdS(NRGR)cst�j|d�S(Ni(R*R.(tc(R>(s=/usr/lib64/python2.7/Demo/tkinter/ttk/treeview_multicolumn.pyR/MstwidthR'tendtvalues(RbR.R5ttitleRTttkFonttFonttmeasuret tree_datatinsertR3R;(R>R,R9R8tvaltilen((R>s=/usr/lib64/python2.7/Demo/tkinter/ttk/treeview_multicolumn.pyR=Js
/
"(t__name__t
__module__R?R<R=(((s=/usr/lib64/python2.7/Demo/tkinter/ttk/treeview_multicolumn.pyR:'s cCs�tj�}|jd�|jd�ddl}y|jd�Wn*tk
roddl}|jd�nXt �}|j
�dS(NsMulti-Column
Listtmclisti����s~/tile-themes/plastik/plastiks'plastik
theme being used without
images(tTkintertTktwm_titletwm_iconnamet
plastik_themetinstallt ExceptiontwarningstwarnR:tmainloop(trootR�R�tapp((s=/usr/lib64/python2.7/Demo/tkinter/ttk/treeview_multicolumn.pytmain[s
t__main__(RRR(RsBuenos
AiresR(RRR(RR R
(RRR
(RRR(RRR(RRR(Rs New
DelhiR(RRR(RRR(RsMexico CityR(RR R!(sSouth
AfricaR"R#(sUnited KingdomR$R%(s
United StatessWashington,
D.C.R&(t__doc__R}RsR\RbRvR*tobjectR:R�Rz(((s=/usr/lib64/python2.7/Demo/tkinter/ttk/treeview_multicolumn.pyt<module>s0 4