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


Fa[
@sdZddlTddljZGdddeZdddZddd	d
Ze	dkrddl
Z
e
jdd
dddddlm
Z
e
edS)zSimple text browser for IDLE

)*Nc@sCeZdZdZddddZddZdd	d
ZdS)
TextViewerz*A simple text viewer dialog for IDLE

    TFcCs&tj|||jdd|jddd|jd|j|sQdndfd|_d	|_|j|j	||j
d
|j||_|j
j|jd|j|jd|j|j
jd
||j
jdt|r"|j||j|jdS)aHShow the given text in a scrollable window with a 'close' button

        If modal option set to False, user can interact with other windows,
        otherwise they will be unable to interact with other windows until
        the textview window is closed.

        _htest - bool; change box location when running htest.
        Zborderwidthz=%dx%d+%d+%dii
dz#ffffffz#000000ZWM_DELETE_WINDOWz<Return>z<Escape>gstateN)Toplevel__init__Z	configureZgeometryZwinfo_rootxZwinfo_rootybgfg
CreateWidgetstitleZprotocolOkparenttextViewZ	focus_setZbindinsertconfigZDISABLEDZ	transientZgrab_setZwait_window)selfrr
textmodalZ_htestr&/usr/lib/python3.5/idlelib/textView.pyr	s(	
!		

	


zTextViewer.__init__c
CsCt|dtdd}t|}t|ddd|jdt|_t|dtdtd	d
|_t	|dt
d	d
d|jd
|j|_
|jjd|j
j|j
jd|jj|jj|jjdtdt|j
jdtdtdt|jdtdt|jdtdtdtdS)NZreliefZheightirZCloseZcommandZ	takefocusZorientZhighlightthicknessrZwraprr
ZyscrollcommandZsideZfillexpand)ZFrameZSUNKENZButtonrZFALSEZbuttonOkZ	ScrollbarZVERTICALZ
scrollbarViewZTextZWORDrr
rrZyviewsetZpackZRIGHTYZLEFTZTRUEZBOTHZBOTTOMXZTOP)rZ	frameTextZframeButtonsrrrr/s
zTextViewer.CreateWidgetsNcCs|jdS)N)Zdestroy)rZeventrrrr@sz
TextViewer.Ok)__name__
__module____qualname____doc__r	rrrrrrrs#rTcCst||||S)N)r)rr
rrrrr	view_textDsr cCsy/t|dd|}|j}WdQRXWnxtk
rctjdddd|d|YnZtk
r}z'tjdddt|d|WYdd}~XnXt||||SdS)	Nrencodingr
zFile Load ErrormessagezUnable to load file %r .rzUnicode Decode Error)openreadIOErrortkMessageBoxZ	showerrorUnicodeDecodeErrorstrr )rr
filenamer"rfilecontentserrrrr	view_fileGs

r.__main__zidlelib.idle_test.test_textview	verbosityexitF)run)rZtkinterZtkinter.messageboxZ
messageboxr'rrr r.rZunittestmainZidlelib.idle_test.htestr3rrrr<module>s
<