config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pyc

³ò
h”Rc@s£dZddkZddkZddkTddkZddkZdefd„ƒYZedjo<e	ƒZ
d„Zee
dd	d
eƒi
ƒe
iƒndS(sKDialog to specify or edit the parameters for a user configured help source.iÿÿÿÿN(t*tGetHelpSourceDialogcBsSeZddd„Zd„Zd„Zd„Zd„Zdd„Zdd„Z	RS(	tcCsCti||ƒ|iddƒ|idtdtƒ|i|ƒ|i|ƒ|iƒ|id|i	ƒ||_
d	|_|i
ƒ|ii|ƒ|ii|ƒ|iƒ|iƒ|id|iƒ|iƒd|iƒd|iƒ|iƒd|iƒdfƒ|iƒ|id|iƒ|iƒd	S(
sôGet menu entry and url/ local file location for Additional Help

        User selects a name for the Help resource and provides a web url
        or a local file as its source.  The user can enter a url or browse
        for the file.

        tborderwidthitheighttwidthtWM_DELETE_WINDOWs+%d+%dis<Return>N(tToplevelt__init__t	configuret	resizabletFALSEttitlet	transienttgrab_settprotocoltCanceltparenttNonetresultt
CreateWidgetstmenutsettpathtwithdrawtupdate_idletaskstgeometrytwinfo_rootxtwinfo_widthtwinfo_reqwidthtwinfo_rootytwinfo_heighttwinfo_reqheightt	deiconifytbindtOktwait_window(tselfRRtmenuItemtfilePath((s8/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pyRs,


		


	
c
Csmt|ƒ|_t|ƒ|_t|ƒ|_t|dddtƒ|_|iidtdt	dt
ƒt|idtdt
d	d
ƒ}t|id|idd
ƒ|_|iiƒt|idtdt
d	dƒ}t|id|iddƒ|_|iiƒ|idtddddƒ|iidtddddƒ|idtddddƒ|iidtddddƒt|id	dddd|iƒ}|iddƒt|ƒ}|idtdtƒt|d	ddddtd|iƒ|_|iiddddddddƒt|d	dddd|iƒ|_|iiddddddddƒdS(NRitrelieftsidetexpandtfilltanchortjustifyttexts
Menu Item:ttextvariableRis,Help File Path: Enter URL or browse for filei(tpadxitpadyitBrowseitcommandtOKtdefaulttrowitcolumnRi(t	StringVarRRtfontSizetFrametGROOVEt	frameMaintpacktTOPtTRUEtBOTHtLabeltWtLEFTtEntryt	entryMenut	focus_sett	entryPathtButtont
browseFiletBOTTOMtXtACTIVER#tbuttonOktgridRtbuttonCancel(R%t	labelMenut	labelPathtbrowseButtontframeButtons((s8/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pyR,s<	
	
%cCsdddddg}|iiƒ}|otii|ƒ\}}nrd}tid d
joKtiitiiti	ƒdƒ}tii
|ƒptiƒ}q¸n
tiƒ}ti
d|d|ƒ}|id|d|ƒ}|o|ii|ƒndS(Ns
HTML Filess*.htm *.htmltTEXTs	PDF Filess*.pdfsWindows Help Filess*.chms
Text Filess*.txts	All FilesRitwintDocRt	filetypest
initialdirtinitialfile(s
HTML Filess*.htm *.htmlRT(s	PDF Filess*.pdfRT(sWindows Help Filess*.chm(s
Text Filess*.txtRT(s	All FilesR(RtgettostsplitRtsystplatformtjointdirnamet
executabletisdirtgetcwdttkFileDialogtOpentshowR(R%RWRtdirtbaset
opendialogtfile((s8/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pyRILs$	$cCs£t}|iiƒ}|iƒ|p3tiddddd|ƒ|iiƒt}nGt	|ƒdjo3tiddddd|ƒ|iiƒt}n|S(s3Simple validity check for a sensible menu item nameRsMenu Item ErrortmessagesNo menu item specifiedRis(Menu item too long:
Limit 30 characters.(
tTrueRRZtstripttkMessageBoxt	showerrorRERFtFalsetlen(R%tmenuOkR((s8/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pytMenuOkcs 




c	CsÖt}|iiƒ}|iƒ|p3tiddddd|ƒ|iiƒt}nz|i	dƒonf|d d	jo|d}nt
ii|ƒp3tidddd
d|ƒ|iiƒt}n|S(s(Simple validity check for menu file pathRsFile Path ErrorRksNo help file path specified.Rswww.thttpisfile:sHelp file path does not exist.(swww.Rt(RlRRZRmRnRoRGRFRpt
startswithR[texists(R%tpathOkR((s8/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pytPathOkws(




cCs±|iƒo |iƒo“|iiƒiƒ|iiƒiƒf|_tidjoH|id}|i	dƒoqŸt
|iƒ|_d||id<n|iƒndS(Ntdarwinitwwwsfile:shttp:sfile://(Rzsfile:shttp:(RsRxRRZRmRRR]R^Rutlisttdestroy(R%teventR((s8/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pyR#s
cCsd|_|iƒdS(N(RRR|(R%R}((s8/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pyRs	N(
t__name__t
__module__RRRIRsRxRR#R(((s8/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pyR
s!	 			t__main__cCs!d}ttdƒ}|iGHdS(NRsGet Help Source(RtrootR(tkeySeqtdlg((s8/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pytrun¤sR.tDialogR3(t__doc__R[R]tTkinterRnRdRRR~tTkRR„RHR=tmainloop(((s8/usr/local/lib/python2.5/idlelib/configHelpSourceEdit.pys<module>s
—
		

Man Man