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: //usr/local/ssl/lib/python2.4/Demo/tix/tixwidgets.pyc
m
=5Dc
@sdkZdkZdkZdkZdkTdkZdkZdd>Zdd>Zdd>Z	dd>Z
dd>ZdZdfd	YZ
d
ZdZdZd
ZdZdZdZdZddddgadZdZdZdZdZdZdZdZdZdZ d Z!d!Z"d"Z#d#Z$d$Z%d%Z&d&Z'd'Z(d(Z)d)Z*d*Z+d+Z,d,Z-hd-d.<d/d0<Z.hd1d1<d2d3<d4d5<d6d7<d8d9<d:d;<d<d<<d=d><d?d@<dAdB<dCdD<dEdF<dGdH<dIdJ<Z/hZ0d1d2d4d<d8d:d=d?dCdAdEdGdIg
e0d-<d6ge0d/<dKZ1dLZ2dMZ3dNZ4e5dOjoei6a7et7ndS(PN(t*iiiiiitDemocBsPtZdZdZdZdZdZdZdZdZ	RS(	NcCs[||_d|_d|_d|_ti|_	|i	i
dd|_d|_d|_
d|_tid}tii|}|o|tijo||_d}xJtttiD]3}ti|}|dtifjo
|}qqW|djo|ti|<q=tiid|nti|_tiid|iddS(Nit0tis/samples(ttoptselftroottexittNonetdirtballoontTixt	StringVartuseBalloonstsett	statusbartwelmsgtwelfonttwelsizetsystargvtprognametostpathtdirnametcurdirtindextrangetlentitptinserttgetcwd(RRRRRRR((t)/usr/lib/python2.4/Demo/tix/tixwidgets.pyt__init__s2								
	

c	Cs|i}ti|dddt}ti|dddddd}ti|dd	dddd}|i
d
t|i
d
tti
|dd}||d<ti
|dd}||d<|id
dddd|d|id
ddddtd|i|S(NtbditreliefttexttFilet	underlineit	takefocustHelptsidettearofftmenutlabeltExititcommandcCs
|iS(N(Rtquitcmd(R((R!t<lambda>FstBalloonHelptvariable(RRRRtFrametRAISEDtwt
MenubuttontfilethelptpacktLEFTtRIGHTtMenutfmthmtadd_commandtadd_checkbuttont
ToggleHelpR
(RR6R>R8R?RR9((R!t
MkMainMenu9s	!!


c
Cs,|i}ti|dddddd}|d|d<|iddd	d
dd|dd
|idddd
dd|dd|idddd
dd|dd|idddd
dd|dd|idddd
dd|dd|idddd
dd|dd|S(NtipadxitipadytoptionssC
        tagPadX 6
        tagPadY 4
        borderWidth 2
        tbgtwelR-tWelcomeR'it	createcmdcCs
t||S(N(t	MkWelcomeR6tname(R6RL((R!R1ZstchotChooserscCs
t||S(N(t
MkChoosersR6RL(R6RL((R!R1\stscrsScrolled WidgetscCs
t||S(N(tMkScrollR6RL(R6RL((R!R1^stmgrsManager WidgetscCs
t||S(N(t	MkManagerR6RL(R6RL((R!R1`sR	sDirectory ListcCs
t||S(N(t	MkDirListR6RL(R6RL((R!R1bstexpsRun Sample ProgramscCs
t||S(N(tMkSampleR6RL(R6RL((R!R1ds(RRRRtNoteBookR6tadd(RRR6((R!tMkMainNotebookOs 	!c	Csq|i}ti|dtidd}ti|dtiddt	_
t	i
iddddddd	d
|S(NR$R#itpadxitpadytleftitrights%70(RRRRR4R5R6tLabeltSUNKENtdemoRtform(RRR6((R!tMkMainStatusgs	!%cCs|i}|i}|id|idjo|idn|idti|t	_
|i}|i
}|i}|idtdt|idtdt|idtdddtd	d
dd
t	it	i
d<|id
|ddS(NsTix Widget Demonstrationi s
790x590+10+10s
890x640+10+10R*tfilltexpandiRZiR[RtWM_DELETE_WINDOWcCs
|iS(N(RR0(R((R!R1s(RRtwinfo_topleveltztwm_titletwinfo_screenwidthtgeometryRtBalloonR`R
RCtframe1RYtframe2Rbtframe3R:tTOPtXtBOTTOMtBOTHRtwm_protocol(RRnRmRlRgR((R!tbuildps	

(cCs
d|_dS(s@Quit our mainloop. It is up to you to call root.destroy() after.iN(RR(R((R!R0scCs,x%|idjoy/x(|idjo|iiitqWWqtj
od|_dSqtj
o4ti	dddjod|_dSqqqt
i\}}}d}x+ti|||D]}||d7}qWytid	|WnnXd|_tdqXqWdS(
sThis is an explict replacement for _tkinter mainloop()
        It lets you catch keyboard interrupts easier, and avoids
        the 20 msec. dead sleep() which burns a constant CPU.iiNt	InterruptsReally Quit?tyesRs
tError(RRRttkt
dooneeventtTCL_ALL_EVENTSt
SystemExittKeyboardInterruptttkMessageBoxtaskquestionRtexc_infotttvttbR%t	tracebacktformat_exceptiontlinet	showerror(RR%RRRR((R!tloops6			cCs|iidS(N(RRtdestroy(R((R!Rs(
t__name__t
__module__R"RCRYRbRtR0RR(((R!Rs								"cCs.t|atititidS(N(RRR`RtRR(R((R!tRunMains


c	Csi|i|}t|}t|}|idt	dt
dddd|idt	dtdddS(NR*RcRZiR[Rdi(tnbtpageRLR6tMkWelcomeBartbart
MkWelcomeTextR%R:RoRpRr(RRLRR%R6((R!RKs
"cCsti|dddti}ti|d|d}ti|d|d}d|id<d	|i	i
d
<d|id<d	|i	i
d
<|t_|t_
|itid|itid
|itid|itid|itid|itid|itid|itid|itid|id|id	|idtidddd|idtiddddtii|ddddtii|dddd|S(NR#iR$R/cCs
t|S(N(tMainTextFontR6(R6((R!R1scCs
t|S(N(RR6(R6((R!R1sitwidthitheightitCouriert	HelveticatLucidasTimes Romant8t10t12t14t18iR*RZR[tmsgs
Choose
a fontt	statusmsgsChoose a font for this pages
Point sizes"Choose the font size for this page(RR4RtGROOVER6tComboBoxtb1tb2tentrytslistboxtlistboxR`RRRtENDtpickR:R;R
tbind_widget(RR6RR((R!Rs8

		



c
Csti|dd}|i}d}ti|dddddtid	|}ti
|dddd
dtid	d}|idd
dti
dddd|idd
dti
dddd|t_|S(Nt	scrollbartautosWelcome to TIX in PythonR#iRitanchorR%is%Tix is a set of mega-widgets based on TK. This program demonstrates the widgets in the Tix widget set. You can choose the pages in this window to look at the corresponding widgets. 

To quit this program, choose the "File | Exit" command.

For more information, see http://tix.sourceforge.net.RdiRcRZi
R[(RtScrolledWindowRR6twindowtwinR%R^tNttitletMessageRR:RrR`R(RRR6R%RR((R!Rs		!	%%	cCsdtipdSntid}tid}|djo
d}nd||f}|tid<dS(NtvaluesTimes Romanttimess%s %stfont(R`RRRRtpointtfontstr(R6RRR((R!Rs




cCs8tiidjodtid<ndtid<dS(Nt1tbothtstatetnone(R`R
tgetR
(((R!RBsc	Csw|i|}d}ti|ddd|}ti|ddd|}ti|ddd|}
ti|ddd|}ti|ddd|}ti|dd	d|}ti|dd
d|}ti|ddd|}	t|it|it|
it|it|it|it|it|	i|idd
dd
dd|idd
ddt|d||idd
ddt|d|dd|id|dd
dd|
id|ddt|d||id|ddt|d|
|	id|ddt|d|dd|idddd
dddS(Nslabel.padX 4R-sChooser WidgetsRFttixComboBoxt
tixControlt	tixSelectt
tixOptionMenuttixFileEntryttixFileSelectBoxsTool BarRiR\R]s%33t&tbottomis%66(RRRLR6RFRt
LabelFramettiltcbxtctltseltopttfiltfbxttbrtMkTitletframetMkCombot	MkControltMkSelectt	MkOptMenut	MkFileEntt	MkFileBoxt	MkToolBarRatstr(RRLRRRRRRR6RRRF((R!ROs4







&,&&,cCseddtidf}ti|ddddd|}ti|dd	dd
d|}ti|dddd
dd
d
tid|}|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d|iti	d |iti	d!|i
d"tid#d$d%d&|i
d"tid#d$d%d&|i
d"tid#d$d%d&dS('Ns-label.width %d label.anchor %s entry.width %di
iR-tStaticteditableiRFtEditableitHistorythistoryRtJanuarytFebruarytMarchtApriltMaytJunetJulytAugustt	SeptembertOctobertNovembertDecembertAngolat
BangladeshtChinatDenmarktEcuadors/usr/bin/kshs/usr/local/lib/pythons/var/admR*RZiR[i(RtERFRR6tstaticRRRRR:Ro(R6RRRFR((R!R0s8!!tBengaltDelhit	Karnatakas
Tamil NaducCsltiti|}|djottd}n|ttjo
d}ntit|dS(Nii(tstatesRtdemo_spintxtRtinctidxRR(R6RR((R!tspin_cmdTs

cCs?ytiti}Wntj
otdSnXt|S(Ni(RRRRRt
ValueError(R6R((R!t
spin_validate^s
cCsddtidf}tiatitdti|ddd|}ti|ddd	td|}|d
|d<|d|d
<|d|d<|idtidddd|idtidddddS(Ns-label.width %d label.anchor %s entry.width %di
i
iR-tNumbersRFtStatesR3cCs
t|dS(Ni(RR6(R6((R!R1rstincrcmdcCs
t|dS(Ni(RR6(R6((R!R1sstdecrcmdcCs
t|S(N(RR6(R6((R!R1tstvalidatecmdR*RZiR[i(
RRRFRRRRtControlR6tsimpletspintxtR:Ro(R6RRRF((R!RhscCsdti}ti|dddddddtidtid	|}ti|dd
dddddtidtid	|}|i	dd
d|i	dd
d|i	dd
d|i	dd
d|i	dd
d|i	dd
d|i	dd
d|i	dd
d|i	dd
d|i	dd
d|i
dtiddddd ti|i
dtiddddd tidS(!Nslabel.anchor %sR-sMere Mortalst	allowzeroitradiotorientationt	labelsideRFtGeeksiteatR%tEattworktWorktplaytPlaytpartytPartytsleeptSleeptprog1tProgramtprog2tprog3R*RZiR[iRc(
RtCENTERRFtSelectR6tVERTICALRotsel1tsel2RXR:R;Rp(R6RRFR((R!Rys*
				(cCsdti}ti|ddd|}|iddd|iddd|id	dd
|iddd|id
|iddd|iddd|idtidddddS(Ns#menubutton.width 15 label.anchor %sR-sFile Format : RFR%s
Plain Texttpostt
PostScripttformatsFormatted TextthtmltHTMLtsepttextLaTeXtrtfsRich Text FormatRcRZiR[i(	RRRFt
OptionMenuR6tmR@R:Rp(R6R"RF((R!Rs

cCsti|dtidddtidd}ti|dd}|id	ti	d
ddti
d
ddd|id	ti	dtid
ddddS(NR$RiRR%sGPress the "open file" icon button and a TixFileSelectDialog will popup.R-sSelect a file : R*RdiRcRZiR[(RRR6tFLATRRt	FileEntrytentR:RoRrRp(R6RR%((R!Rs	.cCsti|dtidddtidd}ti|}|idti	dd	d
ti
ddd
d|idti	d
tiddd
ddS(sThe FileSelectBox is a Motif-style box with various enhancements.
    For example, you can adjust the size of the two listboxes
    and your past selections are recorded.
    R$RiRR%sThe Tix FileSelectBox is a Motif-style box with various enhancements. For example, you can adjust the size of the two listboxes and your past selections are recorded.R*RdiRcRZiR[N(RRR6R#RRt
FileSelectBoxtboxR:RoRrRp(R6RR'((R!Rs	.cCs?d}ti|dtidddtidd}ti|dd	dti}ti
|d
ddd
ddd|}ti
|d
d
ddddd|}|i
dddtid|i
dddtid|i
dddtid|i
dddtid|i
dddtid|i
dddtid|i
dddtid |i
d!ddtid"|id#tid$dd%tid&d'd(d'|id#tid%tid&d'd(d'|ihd)|<d#tid&d'd(d'|ihd)|<d#tid&d'd(d'd*S(+sHThe Select widget is also good for arranging buttons in a tool bar.
    sframe.borderWidth 1R$RiRR%sCThe Select widget is also good for arranging buttons in a tool bar.R#iRiRiR-RRFtboldtbitmapt@s/bitmaps/bold.xbmtitalics/bitmaps/italic.xbmR's/bitmaps/underline.xbmtcapitals/bitmaps/capital.xbmR\s/bitmaps/leftj.xbmR]s/bitmaps/rightj.xbmtcenters/bitmaps/centerj.xbmtjustifys/bitmaps/justify.xbmR*RdRcRZiR[tinN(RFRRR6R#RRR4R5RRRtparaRXR`R	R:RoRrRpR;(R6R0RRRRF((R!Rs*	''.(+cCs_ti|dtidddtidd}|idtidd	d
tiddd
ddS(NR$RiRR%seThere are many types of "chooser" widgets that allow the user to input different types of informationR*RdiRcRZiR[(	RRR6R#RRR:RoRr(R6R((R!Rs	c	Cs|i|}d}ti|ddd|}ti|ddd|}ti|ddd|}t
|it|it
|i|iddd	dd
ddd
|iddd	|d
ddd
|iddd	|d
d
dd
dS(Nslabel.padX 4R-sTix.ScrolledListBoxRFsTix.ScrolledWindowsTix.ScrolledTextRiR\R]s%33Ris%66(RRRLR6RFRRtslstswntstxtMkSListRt	MkSWindowtMkSTextRa(RRLR2R1R6R3RF((R!RQs


""cCsti|dddd}ti|}ti|dtidddtidd	}ti	|d
d}|idd
dddddd|ii
tid|ii
tid|ii
tid|ii
tid|ii
tid|ii
tid|ii
tidti|dddtidddddd
d d!}ti|dd"d#||d$}|id%|id&ti|idti|id'dd&ti|id&ti|id(d)d%||d*d+S(,sThis TixScrolledListBox is configured so that it uses scrollbars
    only when it is necessary. Use the handles to resize the listbox and
    watch the scrollbars automatically appear and disappear.  Ri,RiJR$iRR%sThis TixScrolledListBox is configured so that it uses scrollbars only when it is necessary. Use the handles to resize the listbox and watch the scrollbars automatically appear and disappear.RRtxi2tyiixiPtAlabamat
CaliforniatMontanas
New JerseysNew YorktPennsylvaniat
WashingtonRGtblackt
handlesizeitgriddeditminwidtht	minheightitResetR/cCs
t||S(N(tSList_resetR6R7(R6R7((R!R1siRcRds<Map>tfunccCs%|iidt|dt|S(Nt
tixDoWhenIdletattachwidget(tlistRxtcallRtrh(targRJRH((R!R1sN(RR4R6RtbotRR#RRtScrolledListBoxRHtplaceRRRtResizeHandleR5RJtButtontbtnt	propagateR:RpRRrtbind(R6RHRRLRRQRJ((R!R4s2	"	$
c	Cs=|idddddddd|i|i|dS(	NR7i2R8iRixRiP(RHRNtupdateRJt
attach_widget(RJRH((R!RD
s"
cCsd}tiitidd}tii|p|d7}nti	|dddd}ti	|}ti
|dtidd	d
tid|}ti|dd
}	|	iidd|}ti|	id|}
|
idddti|	iddddddddti|dddtidddddd d!d}ti|dd"d#||	d$}|i d%|idti!|id
ti"|idddti|idti|	i#d&d'd%||	d(d)S(*sThe ScrolledWindow widget allows you to scroll any kind of Tk
    widget. It is more versatile than a scrolled canvas widget.
    s}The Tix ScrolledWindow widget allows you to scroll any kind of Tk widget. It is more versatile than a scrolled canvas widget.tbitmapsstix.gifs (Image missing)RiJRR$iRR%RRtphotoR8timageRdiRcR7iR8iiixRGR>R?iR@RAi2RBRCR/cCs
t||S(N(t
SWindow_resetR6R7(R6R7((R!R1,sis<Map>REcCs%|iidt|dt|S(NRFRG(RRxRIRRJ(RKRJR((R!R13sN($R%RRtjoinR`R	R8tisfileRR4R6RRLRR#RRRRRtimage_createtimage1R^tlblR:RrRNROR5RJRPRQRRRpRRS(R6RJRRLRQR8R%RR]RR^((R!R5s4	"	$
c	Cs=|idddddddd|i|i|dS(	NR7iR8iRiRix(RRNRTRJRU(RJR((R!RY6s"
cCsti|dddd}ti|}ti|dtidddtidd}ti	|d	d
}d|id<|iiti
d
|iddddddddti|dddtidddddddd}ti|ddd||d}|id |id!ti|idti|id"dd!ti|id!ti|id#d$d ||d%d&S('sThe TixScrolledWindow widget allows you to scroll any kind of Tk
    widget. It is more versatile than a scrolled canvas widget.RiJRR$iRR%s}The Tix ScrolledWindow widget allows you to scroll any kind of Tk widget. It is more versatile than a scrolled canvas widget.RRRtwrapsWhen -scrollbar is set to "auto", the
scrollbars are shown only when needed.
Additional modifiers can be used to force a
scrollbar to be shown or hidden. For example,
"auto -y" means the horizontal scrollbar
should be shown when needed but the vertical
scrollbar should always be hidden;
"auto +x" means the vertical scrollbar
should be shown when needed but the horizontal
scrollbar should always be shown, and so on.R7iR8iiidRGR>R?iR@iRAi2RBRCR/cCs
t||S(N(tSText_resetR6R7(R6R7((R!R1VsiRcRds<Map>REcCs%|iidt|dt|S(NRFRG(RRxRIRRJ(RKRJR((R!R1\sN(RR4R6RRLRR#RRtScrolledTextRR%RRRNROR5RJRPRQRRR:RpRRrRS(R6RRRLRRQRJ((R!R6;s*	
	"	$
c	Cs=|idddddddd|i|i|dS(	NR7iR8iRiRix(RRNRTRJRU(RJR((R!R`_s"
c	Cs|i|}d}ti|ddd|}ti|ddd|}t	|i
t|i
|iddddd	|d
d|iddd	dd
ddS(Nslabel.padX 4R-sTix.PanedWindowRFsTix.NoteBookRiR\R]Ri(
RRRLR6RFRRtpanetnotet
MkPanedWindowRt
MkNoteBookRa(RRLRcR6RbRF((R!RSds

"cCs[ti|dtidddtidd}ti|ddd	d
}|ii	ddti
|d
d}|iddddd}|iddd}ti|}ti|}|ii	tid|ii	tid|ii	tid|ii	tid|ii	tid|ii	tid|ii	tid|id|id<d|id<|ii	tid|idd d!tid"d#d$d%|idd d!tid"d#d$d%|id&tid"d'd$d'd!ti|id&tid"d'd$d'd!ti|id&tid"d'd$d'd!tidd d(S()sThe PanedWindow widget allows the user to interactively manipulate
    the sizes of several panes. The panes can be arranged either vertically
    or horizontally.
    R$RiRR%sThe PanedWindow widget allows the user to interactively manipulate the sizes of several panes. The panes can be arranged either vertically or horizontally.R-s
Newsgroup:RFsentry.width 25iscomp.lang.pythonRtverticalRHtminiFtsizeids+  12324 Re: Tkinter is good for your healths++ 12325 Re: Tkinter is good for your healthsH+ 12326 Re: Tix is even better for your health (Was: Tkinter is good...)sH  12327 Re: Tix is even better for your health (Was: Tkinter is good...)sH+ 12328 Re: Tix is even better for your health (Was: Tkinter is good...)sH  12329 Re: Tix is even better for your health (Was: Tkinter is good...)sH+ 12330 Re: Tix is even better for your health (Was: Tkinter is good...)RGRR_sV
Mon, 19 Jun 1995 11:39:52        comp.lang.python              Thread   34 of  220
Lines 353       A new way to put text and bitmaps together iNo responses
ioi@blue.seas.upenn.edu                Ioi K. Lam at University of Pennsylvania

Hi,

I have implemented a new image type called "compound". It allows you
to glue together a bunch of bitmaps, images and text strings together
to form a bigger image. Then you can use this image with widgets that
support the -image option. For example, you can display a text string string
together with a bitmap, at the same time, inside a TK button widget.
RdiRcRZiR[iR*iN(RRR6R#RRt
LabelEntrytgroupRRtPanedWindowRbRXtp1tp2RMRHRaR%RRR:RrRo(R6RmRlRjR%RHRbR((R!Rdqs6	
%%((c	Csti|dtidddtidd}ddd	tif}ti|d
dddd
|}|i
ddddd|i
dddddti|i}|idtidddddtit|ti|idddd}ti|idddd}ti|idddd}ti|idd dd!}|idtidd"dd|idtidd"dd|idtidd"dd|idtidd"ddti|i}|idtidddddtit|ti|idddd}ti|idddd}ti|idddd}ti|idd dd!}ti|idddd#}|idtidd"dd|idtidd"dd|idtidd"dd|idtidd"dd|idtidd"dd|idtidd$dd$dti|idtidd%dd%dtid&d'dS((NR$RiRR%sSThe NoteBook widget allows you to layout a complex interface into individual pages.s-entry.width %d label.width %d label.anchor %si
iRDiRERFt	hard_diskR-s	Hard DiskR'itnetworktNetworkR*RZiR[RcRis
Access Time: isWrite Throughput: sRead Throughput: is
Capacity: isUsers: iiRdi(RRR6R#RRRRFRWRRXR4RntcommonR:R<tYtCreateCommonButtonsRtatrtcRoRotuRr(	R6RtRvRRuRwRqRRF((R!ResB	!(
(
(cCsxti|dddd}ti|dddd}|idtiddd	d|idtiddd	ddS(
NR%tOKRitCancelR*RZiR[(RRPtftoktcancelR:Ro(RzR|R{((R!Rssc	Cs|i|}d}ti|ddd|}ti|ddd|}t	|i
t|i
|iddddd	d
dd|idddd
d	ddddS(
Nslabel.padX 4R-sTix.DirListRFsTix.ExFileSelectBoxRiR\R]s%40Ri(
RRRLR6RFRRR	tfsboxtMkDirListWidgetRtMkExFileWidgetRa(RRLR6R}RFR	((R!RTs

"cCsti|dtidddtidd}ti|dd}|id	ti	d
ddti
d
ddd|id	ti	d
ddddS(sThe TixDirList widget gives a graphical representation of the file
    system directory and makes it easy for the user to choose and access
    directories.
    R$RiRR%sThe Tix DirList widget gives a graphical representation of the file system directory and makes it easy for the user to choose and access directories.RFs+hlist.padY 1 hlist.width 25 hlist.height 16R*RdiRcRZiR[N(RRR6R#RRtDirListtdirlistR:RoRr(R6RR((R!R~s	.cCsti|dtidddtidd}ti|dddti}|i	d	ti
d
ddtid
ddd|i	d	ti
d
ddddS(s]The TixExFileSelectBox widget is more user friendly than the Motif
    style FileSelectBox.  R$RiRR%sXThe Tix ExFileSelectBox widget is more user friendly than the Motif style FileSelectBox.R#iR*RdiRcRZiR[N(RRR6R#RRtExFileSelectBoxR5R'R:RoRr(R6RR'((R!Rs	.twidgetsWidget DemosRXsImage DemosRks
Button BoxtBtnBoxs	Combo BoxRsCompound ImagetCmpImgsDirectory ListRsDirectory TreetDirTreeRtNotebookRWsOption MenutOptMenusPaned WindowtPanedWins
Popup MenutPopMenusScrolledHList (1)tSHList1sScrolledHList (2)tSHList2sTree (dynamic)tTreecCsx|i|}
d}ti|
dd}|idti	dddti
|iddd	}|id
dd}d|d
<d|d
<ti|dd}
|
idti	dddti
ddddti|dd}|idti	dddti
ddddti|
idd}|idti	dddti
ddti|idd}tiid}|iid|ti|idd}ti|d
ddd}ti|d
ddd}|idti dddti!|idti dddti!|i"d |id <d!|id"<d#|id$<d%|id&<|idti#dddti$dd'|idti	dddti
dd'd(|i"d)<d*|i"d&<d|i"d+<d,|i"d-<d|i"d.<d|
||||d/|i"d0<d|
||||d1|i"d2<d|
||||d3|d0<d|
||||d4|d0<xd5d6gD]}	|	d5jo`ti|i"d7d8d9d8d&d:d
ti&d |i"d }|i"i(d;ti)d<|d"d!n|i"i(d;ti*d"d!d
t+|	}x7t,|	D]+}|i"i(|d;ti*d=|d
|q WqzW|i"i.d!|d"<d!|d"<dS(>Nslabel.padX 4Rt
horizontalR*RdiRcRHRR%t5tflatR$R-sSelect a sample program:RZiR[sSource:RFshlist.width 20RLtstextstix option get fixed_fontRRsRun ...trunsView Source ...tviewiRGtdisabledRRR_iPRit.t	separatorit
drawbranchi
tindentt
wideselectcCst|||||dS(NR(t
Sample_ActionR6tslbRRR(targsR6RRRR((R!R1sR/cCst|||||dS(Ntbrowse(RR6RRRR(RR6RRRR((R!R1st	browsecmdcCst|||||dS(NR(RR6RRRR(RR6RRRR((R!R1scCst|||||dS(NR(RR6RRRR(RR6RRRR((R!R1sRRXR#iRititemtypeRtdata(/RRRLR6RFRRkRbR:RoRrRXtf1tf2Rtlabtlab1RRRRaRRRxtevalRR%tconfigR4RPRRR;tNONEthlistRqRpttypeR_R7t	add_childtWINDOWtTEXTtcommentststypestkeytselection_clear(RRLRRRRRbRRRRRRR6R7RFRR((R!RVksh"

..(""


((




""

&

cBsM|i}
|
i}|pd|d<d|d<n|
i|pdSnd|d<d|d<|
i|}|}e
|}	|djoCd|	dUe
i}|i	|e|	d}||n{|djo=e
i}|i	d|e|tid	|	d
n1|djo#e|itid	|	d
ndS(NRRtnormalRsimport s
.RunSampleRs
Source view: s	/samples/s.pyR(RRtinfo_anchorRRRtinfo_parentt	info_dataRRtsamplestprogtactionRtToplevelR6RtrtntLoadFileR`R	tReadFileRR%(R6RRRRRRRRRRR((R!Rs2	






 
cCsti|ddd|i}ti|}|i|iti	i
d}|ii
d|d|id<d|id	<t|i|dS(
NR%tCloseR/stix option get fixed_fontRiR#RR_(RRPR6RtbRaRR:RRxRRR%RRtfname(R6RRRR((R!Rs



cCs|d}d|d<|idtizJt|}|i}x!|D]}|iti|qIW|iWd||d<XdS(NRRs0.0(
R6t	old_statetdeleteRRtopenRRzt	readlinestlinestsRtclose(R6RRzRRR((R!Rs

t__main__(8Rtos.pathRRtTkconstantsRR}t
TCL_DONT_WAITtTCL_WINDOW_EVENTStTCL_FILE_EVENTStTCL_TIMER_EVENTStTCL_IDLE_EVENTSRzRRRKRRRRBRORRRRRRRRRRRRQR4RDR5RYR6R`RSRdReRsRTR~RRRRRVRRRRtTkR(2RDRRRR4RdR`RVRRORR~RRRRRRRRRRRRRRzRRReRRBRR5RsRKRYRRSRRQRRRRR}RRTRR6R((R!t?sj$




	
		%				%	"	
	
									 		'		$		
	/	.				
k1
	@