| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/idlelib/__pycache__/ |
Upload File : |
R
>lqj� c � � Q s ] PHs] QHGs ] QHGs , Q
NsPrQ sQ s Q Q\2 s
Q Q2 s\Q 6X c ] Q
H4Gs \ Q]P
Q5 P! P! )z0Editor window that can serve as an output file.
)�
messagebox)�EditorWindowc � � [ T t, tF D( o [ O U [ O 2 MJ* to rP! t to h )z?Compile the patterns for matching to file name and line number.)�file_line_pats�re�compile�
IGNORECASE�file_line_progs)�pats �#C:\Python315\\Lib\idlelib\outwin.py�
compile_progsr s5 � � #1�2�"0�3� �z�z�#�r�}�}�5�"0�2�O�� 2s �0>c �L � [ % f [ 2 [ F DO oUO U 2 oU% f J UO ]]2 v q4 [ U2 oUO 2 L P! U[ U2 1! [ c Jq h 9 h [ c P! h 9 h)a Extract file name and line number from line of text.
Check if line of text contains one of the file/line patterns.
If it does and if the file and line are valid, return
a tuple of the file name and line number. If it doesn't match
or if the file or line is invalid, return None.
) r r �search�group�open�close�OSError�int� TypeError)�line�prog�match�filename�lineno�fs & r
�file_line_helperr s� � � �?���������D�!���5�$�{�{�1�a�0��H�
���N����� �� � ����V��$�$�� �
��
�� � ���s0 �B�5B � B�B�B� B#�B#�"B#c �p ` � \ sQ s]:s n Qs, QNsP
sQ sQ sQ s Q s
Q
Q ksQ sQ s
Q sQQ
ksQsU sP! )�OutputWindowz�An 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.
Adds binding to open a file at a line to the text widget.
c � � [ O U ,UN3 U O O Q U O 2 U O
O U O
m U O
O U O
m P! )�<<goto-file-line>>)
r �__init__�text�bind�goto_file_line�io�text_filetypes� filetypes�text_defaultextension�defaultextension)�self�argss &*r
r �OutputWindow.__init__N s\ � ����d�*�T�*�� � ���+�T�-@�-@�A� !�G�G�2�2�����#'�7�7�#@�#@���� � c � � P
! )z6Python source is only part of output: do not colorize.� )r( r s &&r
�ispythonsource�OutputWindow.ispythonsourceW s � �r+ c � � Q! )zCustomize EditorWindow title.�Outputr- �r( s &r
�short_title�OutputWindow.short_title[ s � �r+ c �8 � U O 2 % c Q! Q! )z;Customize EditorWindow to not display save file messagebox.�yes�no)� get_savedr2 s &r
� maybesave�OutputWindow.maybesave_ s � ����(�(�u�2�d�2r+ c �� � [ U[ 2 % f P gU O O V1U2 U O O U2 U O O 2 [
U2 ! )a� Write text to text widget.
The text is inserted at the given index with the provided
tags. The text widget is then scrolled to make it visible
and updated to display it, giving the effect of seeing each
line as it is added.
Args:
s: Text to insert into text widget.
tags: Tuple of tag strings to apply on the insert.
mark: Index for the insert.
Return:
Length of text inserted.
)�
isinstance�strr �insert�see�update�len�r( �s�tags�marks &&&&r
�write�OutputWindow.writed sT � � �!�S�!�!�!�!�� � ����$�'�� � �
�
�d��� � �����1�v�
r+ c �>