%PDF- %PDF-
Direktori : /opt/plesk/python/2.7/lib64/python2.7/idlelib/ |
Current File : //opt/plesk/python/2.7/lib64/python2.7/idlelib/IdleHistory.pyc |
� 5}�ac @ sb d Z d d l m Z d d d � � YZ e d k r^ d d l m Z e d d d d e �n d S( s9 Implement Idle Shell history mechanism with History classi����( t idleConft Historyc B s; e Z d Z d � Z d � Z d � Z d � Z d � Z RS( s@ 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 C sl | | _ g | _ d | _ d | _ t j d d d d d � | _ | j d | j � | j d | j � d S( sd 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). t mainR t cyclici t bools <<history-previous>>s <<history-next>>N( t textt historyt Nonet prefixt pointerR t GetOptionR t bindt history_prevt history_next( t selfR ( ( s<