Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
idlelib
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/idlelib/CodeContext.pyc
mò ‚=5Dc @ sž d Z d k Z d k l Z d k l Z d k Z e d d d d d d d d d d g ƒ Z d d >Z d Z d Z e i d ƒ d „ Z d f d „ ƒ YZ d S( sF CodeContext - Display the block context of code at top of edit window Once code has scrolled off the top of the screen, it can be difficult to determine which block you are in. This extension implements a pane at the top of each IDLE edit window which provides block structure hints. These hints are the lines which contain the block opening keywords, e.g. 'if', for the enclosing block. The number of hint lines is determined by the numlines variable in the CodeContext section of config-extensions.def. Lines which do not open blocks are not shown in the context hints pane. N( s idleConf( s Sett classt deft elift elset exceptt finallyt fort ift tryt whilei i id iè s ^(\s*)(\w*)c C s | i | ƒ i ƒ S( N( t ct matcht st groups( R R ( ( t) /usr/lib/python2.4/idlelib/CodeContext.pyt <lambda> s t CodeContextc B s¿ t Z d d g f g Z e i d d d d d d d ƒZ e i d d d d d d d ƒZ e i d d d d d d d ƒZ d „ Z d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nt optionss !Code Conte_xts <<toggle-code-context>>t extensionsR t numlinest typet intt defaulti t bgcolort strt LightGrayt fgcolort Blackc C sÈ | | _ | i | _ | i d | _ d | _ t | i d ƒ ƒ | _ d | _ t i d d d d d d t ƒ} | o! | i ƒ | i i d t ƒ n | i i t | i ƒ | i i t | i ƒ d S( Nt fonti R R t visibleR t boolR s <<toggle-code-context>>( t editwint selft textt textfontt Nonet labelt listt interesting_linest infot lastfirstlinet idleConft GetOptiont FalseR t toggle_code_context_eventt setvart Truet aftert UPDATEINTERVALt timer_eventt FONTUPDATEINTERVALt font_timer_event( R R R ( ( R t __init__# s c C sÞ | i p‹ t i | i i d d | i d d d d d d | i d | i d | i d d d d ƒ| _ | i i d d d d d d d | i i ƒ n | i i ƒ d | _ t i d d d t | i d j ƒ ƒ t i ƒ d S( NR! s i t anchort wt justifyt leftR t bgt fgt relieft sunkent widtht sidet topt fillt xt expandi R/ R R R ( R R$ t Tkintert LabelR R? R R"