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__/OutputWindow.cpython-35.pyc


Fa*@srddlTddlmZddlZddljZddlmZGdddeZ	GdddZ
dS)	)*)EditorWindowN)	IOBindingc@seZdZdZddZddZddZdd	Zfd
ddZd
dZ	ddZ
d&d'd(d)d*gZdddd d!gZdZ
dd"d#Zd$d%ZdS)+OutputWindowzAn editor window that can serve as an output file.

    Also the future base class for the Python shell window.
    This class has no input facilities.
    cGs*tj|||jjd|jdS)Nz<<goto-file-line>>)r__init__textZbindgoto_file_line)selfargsr*/usr/lib/python3.5/idlelib/OutputWindow.pyrszOutputWindow.__init__cCsdS)Nrr)r	filenamerrrispythonsourceszOutputWindow.ispythonsourcecCsdS)NZOutputr)r	rrrshort_titleszOutputWindow.short_titlecCs|jrdSdSdS)NZyesZno)Z	get_saved)r	rrr	maybesaveszOutputWindow.maybesaveinsertcCsgt|ttfr*|jtjd}|jj||||jj||jjt	|S)Nreplace)

isinstancebytesdecoderencodingrrZseeupdatelen)r	stagsmarkrrrwrite%s
zOutputWindow.writecCs"x|D]}|j|qWdS)N)r)r	lineslinerrr
writelines-s
zOutputWindow.writelinescCsdS)Nr)r	rrrflush1szOutputWindow.flushCut<<cut>>rmenu_check_cutCopy<<copy>>rmenu_check_copyPaste	<<paste>>rmenu_check_pasteNGo to file/line<<goto-file-line>>zfile "([^"]*)", line (\d+)z([^\s]+)\((\d+)\)z^(\s*\S.*?):\s*(\d+):z([^\s]+):\s*(\d+):z^\s*(\S.*?):\s*(\d+):c	Cs|jdkrNg}x-|jD]"}|jtj|tjqW||_|jjdd}|j|}|s|jjdd}|j|}|st	j
ddd|jdS|\}}|jj|}|j
|dS)Nzinsert linestartzinsert lineendzinsert -1line linestartzinsert -1line lineendzNo special linezTThe line you point at doesn't look like a valid file name followed by a line number.parent)file_line_progsfile_line_patsappendrecompile
IGNORECASErget_file_line_helpertkMessageBoxZ	showerrorflistopenZgotoline)	r	ZeventlZpatrresultr
linenoZeditrrrrIs( 		
zOutputWindow.goto_file_linecCsxx|jD]i}|j|}|r
|jdd\}}yt|d}|jPWq
tk
rrw
Yq
Xq
WdSy|t|fSWntk
rdSYnXdS)Nr)r-searchgroupr7closeOSErrorint	TypeError)r	rprogmatchr
r:frrrr4ds


zOutputWindow._file_line_helper)r!r"r#)r$r%r&)r'r(r))NNN)r*r+N)__name__
__module____qualname____doc__rrrrrrr Zrmenu_specsr.r-rr4rrrrrs*			rc@sReZdZdddidddiiZddZdd	Zd
dZdS)
OnDemandOutputWindowstdoutZ
foregroundZbluestderrz#007700cCs||_d|_dS)N)r6owin)r	r6rrrrs	zOnDemandOutputWindow.__init__cCs-|js|j|jj|||dS)N)rNsetupr)r	rrrrrrrs	
zOnDemandOutputWindow.writecCsut|j|_}|j}x3|jjD]"\}}|r/|j||q/W|jd|jj|_dS)NZsel)	rr6rNrtagdefsitemsZ
tag_configureZ	tag_raiser)r	rNrtagZcnfrrrrOs	
zOnDemandOutputWindow.setupN)rGrHrIrPrrrOrrrrrKxs
rK)ZtkinterZidlelib.EditorWindowrr0Ztkinter.messageboxZ
messageboxr5ZidlelibrrrKrrrr<module>s
q