Module Expr Str Import alias ImportFrom alias alias alias alias alias Import alias ImportFrom alias identifier ImportFrom alias Assign NameStore Set Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Num Assign NameStore Num Assign NameStore Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr ClassDef bases body Assign NameStore ListLoad TupleLoad Str ListLoad TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad TupleLoad Num Num Str NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Str keyword Str keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore Call NameLoad Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Str AugAssignAdd NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpMult Str BinOpSub AttributeLoad NameLoad attr Num keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str Str Call NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad BinOpMod Str NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore BoolOpAnd CompareIn NameLoad NameLoad NameLoad If BoolOpOr CompareEq Call NameLoad NameLoad Call NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Call NameLoad NameLoad Str body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Str Assert CompareGt NameLoad Num Assign NameStore ListLoad Assign NameStore NameLoad For NameStore Call NameLoad NameLoad BinOpSub NameLoad Num Num body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad NameLoad body Assign NameStore NameLoad If CompareIn NameLoad TupleLoad Str Str body AugAssignAdd NameStore Num If BoolOpAnd NameLoad CompareLt NameLoad NameLoad CompareGtE NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad If CompareLtE NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Index Num If CompareEq AttributeLoad NameLoad attr NameLoad body Return If CompareLt AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr While CompareGtE SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index Num orelse If CompareGt AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpAdd SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Num While CompareGtE SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num NameLoad body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Delete SubscriptDel AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore BinOpMult ListLoad Str Call NameLoad Num BinOpSub AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Slice UnaryOpUSub AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A CodeContext - Extension to display the block context above the edit window

Once code has scrolled off the top of a window, 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/A Tkinter Tkconstants TOP LEFT X W SUNKEN N/A re sys maxint INFINITY idlelib.configHandler idleConf N/A BLOCKOPENERS N/A class def elif else except finally for if try while with N/A UPDATEINTERVAL 100 N/A FONTUPDATEINTERVAL 1000 N/A getspacesfirstword N/A N/A N/A s c N/A N/A N/A re compile ^(\s*)(\w*) N/A N/A N/A N/A c match s groups CodeContext N/A N/A N/A menudefs N/A N/A options N/A N/A !Code Conte_xt <<toggle-code-context>> N/A context_depth N/A N/A idleConf GetOption extensions CodeContext numlines type int default 3 N/A bgcolor N/A N/A idleConf GetOption extensions CodeContext bgcolor type str default LightGray N/A fgcolor N/A N/A idleConf GetOption extensions CodeContext fgcolor type str default Black __init__ N/A N/A self editwin N/A N/A N/A N/A self editwin editwin N/A N/A self text N/A editwin text N/A N/A self textfont N/A N/A self text N/A font N/A N/A self label None N/A N/A self info N/A N/A 0 -1 False N/A N/A self topvisible 1 N/A visible N/A N/A idleConf GetOption extensions CodeContext visible type bool default False N/A visible N/A N/A N/A N/A self toggle_code_context_event N/A N/A N/A N/A self editwin setvar <<toggle-code-context>> True N/A N/A N/A N/A self text after UPDATEINTERVAL N/A self timer_event N/A N/A N/A N/A self text after FONTUPDATEINTERVAL N/A self font_timer_event N/A toggle_code_context_event N/A N/A self event N/A None N/A N/A N/A N/A self label N/A N/A widgets N/A N/A N/A self editwin text N/A N/A self editwin text_frame N/A padx 0 N/A widget widgets N/A N/A padx N/A int N/A str N/A N/A N/A widget pack_info N/A padx N/A padx N/A int N/A str N/A N/A widget cget padx N/A border 0 N/A widget widgets N/A N/A border N/A int N/A str N/A N/A widget cget border N/A N/A self label N/A N/A Tkinter Label N/A N/A self editwin top text N/A N/A N/A self context_depth 1 anchor W justify LEFT font N/A self textfont bg N/A self bgcolor fg N/A self fgcolor width 1 padx padx border border relief SUNKEN N/A N/A N/A N/A self label pack side TOP fill X expand False before N/A N/A self editwin text_frame N/A N/A N/A N/A N/A self label destroy N/A N/A self label None N/A N/A N/A idleConf SetOption extensions CodeContext visible N/A str N/A N/A self label None N/A N/A N/A idleConf SaveUserCfgFiles N/A get_line_info N/A N/A self linenum N/A N/A N/A Get the line indent value, text, and any block start keyword

        If the line does not start a block, the keyword value is False.
        The indentation of empty lines (or comment lines) is INFINITY.

         N/A text N/A N/A N/A self text get N/A %d.0 linenum N/A %d.end linenum N/A N/A spaces firstword N/A getspacesfirstword text N/A opener N/A N/A firstword BLOCKOPENERS firstword N/A N/A N/A N/A len text N/A len spaces N/A N/A text N/A N/A len spaces # N/A N/A indent INFINITY N/A N/A indent N/A len spaces N/A N/A indent text opener N/A get_context N/A N/A self new_topvisible stopline stopindent N/A 1 0 N/A N/A Get context lines, starting at new_topvisible and working backwards.

        Stop when stopline or stopindent is reached. Return a tuple of context
        data and the indent level at the top of the region inspected.

         N/A N/A stopline 0 N/A lines N/A N/A lastindent INFINITY N/A linenum N/A xrange new_topvisible N/A stopline 1 -1 N/A N/A N/A indent text opener N/A N/A self get_line_info linenum N/A N/A indent lastindent N/A N/A lastindent indent N/A N/A opener N/A else elif N/A N/A lastindent 1 N/A N/A opener N/A linenum new_topvisible N/A indent stopindent N/A N/A N/A N/A lines append N/A linenum indent text opener N/A N/A lastindent stopindent N/A N/A N/A N/A N/A lines reverse N/A N/A lines lastindent N/A update_code_context N/A N/A self N/A N/A N/A Update context information and lines visible in the context pane.

         N/A new_topvisible N/A int N/A N/A N/A N/A N/A N/A self text index @0,0 split . N/A 0 N/A N/A N/A self topvisible new_topvisible N/A N/A N/A N/A N/A self topvisible new_topvisible N/A N/A N/A lines lastindent N/A N/A self get_context new_topvisible N/A self topvisible N/A N/A N/A N/A N/A self info N/A -1 N/A 1 lastindent N/A N/A N/A N/A self info N/A -1 N/A N/A N/A N/A self topvisible new_topvisible N/A N/A stopindent N/A N/A N/A N/A self info N/A -1 N/A 1 1 N/A N/A N/A N/A N/A self info N/A -1 N/A 0 new_topvisible N/A N/A stopindent N/A N/A N/A self info N/A -1 N/A 1 N/A N/A N/A self info N/A -1 N/A N/A lines lastindent N/A N/A self get_context new_topvisible N/A N/A N/A N/A self info N/A -1 N/A 0 1 stopindent N/A N/A N/A N/A self info extend lines N/A N/A self topvisible new_topvisible N/A context_strings N/A N/A N/A max 0 N/A N/A self context_depth N/A len N/A self info N/A context_strings N/A N/A x N/A 2 N/A x N/A N/A self info N/A N/A N/A self context_depth N/A N/A N/A self label N/A text N/A N/A join context_strings N/A timer_event N/A N/A self N/A N/A N/A N/A self label N/A N/A N/A N/A self update_code_context N/A N/A N/A N/A self text after UPDATEINTERVAL N/A self timer_event N/A font_timer_event N/A N/A self N/A N/A N/A newtextfont N/A N/A self text N/A font N/A N/A N/A self label N/A newtextfont N/A self textfont N/A N/A N/A self textfont newtextfont N/A N/A N/A self label N/A font N/A self textfont N/A N/A N/A N/A self text after FONTUPDATEINTERVAL N/A self font_timer_event N/A N/A