HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.5/idlelib/__pycache__/configHelpSourceEdit.cpython-35.pyc


Fa@sdZddlZddlZddlTddljZddljZ	Gddde
Zedkrddl
Z
e
jddd	d
dddlmZeedS)
zKDialog to specify or edit the parameters for a user configured help source.N)*c@sseZdZdddddZddZddZd	d
ZddZd
ddZd
ddZ	d
S)GetHelpSourceDialogFcCsOtj|||jdd|jdtdt|j||j||j|jd|j	||_
d|_|j|j
j||jj||j|j|jd|j|jd|jd|j|s|jd|jdnd	f|j|jd
|j|jdS)a2Get 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.

        _htest - bool, change box location when running htest
        borderwidthZheightwidthZWM_DELETE_WINDOWNz+%d+%dz<Return>)Toplevel__init__Z	configureZ	resizableZFALSEtitleZ	transientZgrab_setZprotocolcancelparentresultcreate_widgetsmenusetpathZwithdrawZupdate_idletasksZgeometryZwinfo_rootxZwinfo_widthZwinfo_reqwidthZwinfo_rootyZwinfo_heightZwinfo_reqheightZ	deiconifyZbindokZwait_window)selfrrZmenuItemZfilePathZ_htestr2/usr/lib/python3.5/idlelib/configHelpSourceEdit.pyrs.	


		


		0
zGetHelpSourceDialog.__init__c
Csmt||_t||_t||_t|dddt|_|jjdtdt	dt
t|jdtdt
d	d
}t|jd|jdd
|_|jjt|jdtdt
d	d}t|jd|jdd|_|jj|jdtdddd|jjdtdddd|jdtdddd|jjdtddddt|jd	dddd|j}|jddt|}|jdtdtt|d	ddddtd|j|_|jjddddddddt|d	dddd|j|_|jjdddddddddS)NrrZreliefZsideexpandZfillZanchorZjustifytextz
Menu Item:Ztextvariablerz,Help File Path: Enter URL or browse for file(ZpadxrZpadyZBrowseZcommandZOKdefaultrowrcolumnZCancel)Z	StringVarrrZfontSizeZFrameZGROOVEZ	frameMainZpackZTOPZTRUEZBOTHZLabelWZLEFTZEntry	entryMenu	focus_set	entryPathZButtonbrowse_fileZBOTTOMXZACTIVErZbuttonOkZgridr
ZbuttonCancel)rZ	labelMenuZ	labelPathZbrowseButtonZframeButtonsrrrr/s<	
	
%z"GetHelpSourceDialog.create_widgetscCsdddddg}|jj}|rEtjj|\}}npd}tjddd
krtjjtjjtjd}tjj	|stj
}ntj
}tjd|d|}|j
d|d|}|r|jj|dS)N
HTML Files*.htm *.htmlTEXT	PDF Files*.pdfWindows Help Files*.chm
Text Files*.txt	All FilesrrwinZDocr	filetypesZ
initialdirZinitialfile)r(r)r*)r+r,r*)r-r.)r/r0r*)r1r)rgetossplitsysplatformjoindirname
executableisdirgetcwdtkFileDialogZOpenZshowr)rr3rdirbaseZ
opendialogfilerrrr&Os$	$zGetHelpSourceDialog.browse_filecCsd}|jj}|j|sWtjddddd||jjd}nAt|dkrtjdddd	d||jjd}|S)
z3Simple validity check for a sensible menu item nameTrzMenu Item ErrormessagezNo menu item specifiedrFrz(Menu item too long:
Limit 30 characters.)rr4striptkMessageBox	showerrorr#r$len)rmenu_okrrrrrGfs 

	
zGetHelpSourceDialog.menu_okcCsd}|jj}|j|sWtjddddd||jjd}ny|jdring|d
ddkr|dd
}tjj	|stjdddd
d||jjd}|S)z(Simple validity check for menu file pathTrzFile Path ErrorrBzNo help file path specified.rFwww.httpNrzfile:zHelp file path does not exist.)rHrI)
rr4rCrDrEr%r$
startswithr5exists)rpath_okrrrrrLzs(

	
zGetHelpSourceDialog.path_okNcCs|jr|jr|jjj|jjjf|_tjdkr|jd}|j	drsn#t
|j|_d||jd<|jdS)	Ndarwinr!wwwfile:http:https:zfile://)rNrOrPrQ)rGrLrr4rCrrr7r8rJlistdestroy)reventrrrrrs
zGetHelpSourceDialog.okcCsd|_|jdS)N)rrS)rrTrrrr
s	zGetHelpSourceDialog.cancel)
__name__
__module____qualname__rrr&rGrLrr
rrrrr
s$ r__main__z"idlelib.idle_test.test_config_help	verbosityrexitF)run)__doc__r5r7ZtkinterZtkinter.messageboxZ
messageboxrDZtkinter.filedialogZ
filedialogr>r
rrUZunittestmainZidlelib.idle_test.htestr[rrrr<module>s