| Server IP : 121.121.20.254 / Your IP : 216.73.216.42 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 : /Python315/Lib/idlelib/__pycache__/ |
Upload File : |
R
>lqjK c �` � Q s ] QHGs Q Q2 s\Q6X c ] QHGs \ Q]P
Q5 P! P! )z9Implement Idle Shell history mechanism with History class)�idleConfc �D ` � \ sQ s]s n QsQ sQ sQ sQ sQ s Qs
U sP! )�Historya+ Implement Idle Shell history mechanism.
store - Store source statement (called from pyshell.resetoutput).
fetch - Fetch stored statement matching prefix already entered.
history_next - Bound to <<history-next>> event (default Alt-N).
history_prev - Bound to <<history-prev>> event (default Alt-P).
c �� � Vm , U m PU m PU m [ O
QQQ]Q2 U m UO QU O 2 UO QU O 2 P! )a4 Initialize data attributes and bind event methods.
.text - Idle wrapper of tk Text widget, with .bell().
.history - source statements, possibly with multiple lines.
.prefix - source already entered at prompt; filters history list.
.pointer - index into history.
.cyclic - wrap around history list (or not).
�mainr �cyclic�boolz<<history-previous>>z<<history-next>>)
�text�history�prefix�pointerr � GetOptionr �bind�history_prev�history_next)�selfr s &&�$C:\Python315\\Lib\idlelib\history.py�__init__�History.__init__ sb � � � �����������(�(���H�a��P���� � �(�$�*;�*;�<�� � �$�d�&7�&7�8� c �, � U O P
Q5 Q! )z5Fetch later statement; start with earliest if cyclic.��reverse�break��fetch�r �events &&r r �History.history_next s � ��
�
�5�
�!�r c �, � U O P Q5 Q! )z0Fetch earlier statement; start with most recent.r r r r s &&r r �History.history_prev$ s � ��
�
�4�
� �r c �� � [ U O 2 oU O oU O oUdy Udu U O O QQQ2 % f3 U O O
QQ2 U O U* 6w c P9q4U O O QQ2 Ud UeY U O O
QQ2 oU% c SoL1U O % c PoLU O O 2 P! [ U2 o X1% c PL]*
oU] 6 f V26� c� U O O 2 U O % f
U] 6 c P! U O O
QQ2 U6w c: U O O QQ2 U O O QUQ2 P9q4LkU O U* oUPU U6X f J� [ U2 U6� f J� U O O QQ2 U O O QUQ2 U O O Q2 U O O QQQ2 V0m V@m P! ) a Fetch statement and replace current line in text widget.
Set prefix and pointer as needed for successive fetches.
Reset them to None, None when returning to the start line.
Sound bell when return to start line or cannot leave a line
because cyclic is False.
�insertz!=zend-1c�iomark�stdin�selz1.0�end)�lenr r r
r �compare�get�mark_setr �bell�deleter! �see�
tag_remove)r r �nhistr r
�nprefix�items && r r �
History.fetch) s� � � �D�L�L�!���,�,��������6�#5��y�y� � ��4��:�:��I�I�M�M�(�H�5����g�9N�N�#'�'��� � �"�"�8�X�6��?�f�n��Y�Y�]�]�8�X�6�F�����;�;�;� �G��I�I�N�N�$���f�+����W�r�!�+�G���{�g�.�� � ��� ��{�{�{�w��{���y�y�}�}�X�x�8�F�B�� � �(�(��8�<�� � �(�(��6�7�C�'+�+�G���<�<��(�D��H�W�~��'�C��I��,?�� � � � ��8�4�� � � � ��4��9��� � �
�
�h��� � ���U�E�5�1����r c �� � UO 2 o[ U2 ]6� c8 U O O U2 U O O U2 PU m PU m P! [ c K8h 9 h)z.Store Shell input statement into history list.)�stripr&