;ò

�ü?c           @   sa  d  k  Z  d  k Z d  k Z d  k Z d k Td  k Z d  k Z d  k Z d  k Z d  k	 Z	 d  k
 Z
 d  k Z d  k Z d  k Z d k l Z d  k Z d  k Z d  k Z d Z e d „ Z d f  d „  ƒ  YZ d „  Z d „  Z d  k Z e Z [ d	 f  d
 „  ƒ  YZ d „  Z h  d d <d d <d d <Z d „  Z d „  Z d „  Z  e! d j o e  ƒ  n d  S(   N(   s   *(   s   idleConfi   c         C   sË   t  } x± |  i d ƒ D]  } | t  j	 o | i ƒ  n t i | | ƒ \ } } } | d t i j o Pn t i | | | | ƒ } y | i } Wq t j
 o t d | i ‚ q Xq W| | | f Sd S(   sC   Version of imp.find_module() that handles hierarchical module namess   .i   s   No source for module N(   s   Nones   files   fullnames   splits   tgts   closes   imps   find_modules   paths   filenames   descrs	   PY_SOURCEs   load_modules   modules   __path__s   AttributeErrors   ImportErrors   __name__(   s   fullnames   paths   descrs   tgts   modules   filenames   file(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   _find_module   s      s   EditorWindowc           B   s  t  Z d k l Z d k l Z d k l Z d k l Z d  k Z d k l Z d k	 l	 Z	 h  Z
 e Z e e e e d „ Z d „  Z d	 „  Z e d
 „ Z d „  Z d d f d d f d d f d d f d d f d d f d d f g Z d „  Z d „  Z e Z d „  Z d d f g Z d „  Z e d  „ Z e d! „ Z e d" „ Z e d# „ Z d$ „  Z d% „  Z d& „  Z d' „  Z  e d( „ Z! e d) „ Z" d* „  Z# d+ „  Z$ d, „  Z% d- „  Z& d. „  Z' d/ „  Z( d0 „  Z) e d1 „ Z* e d2 „ Z+ e d3 „ Z, d4 „  Z- d5 „  Z. d6 „  Z/ d7 „  Z0 d8 „  Z1 d9 „  Z2 d: „  Z3 d; „  Z4 d< „  Z5 d= „  Z6 d> „  Z7 d? „  Z8 e d@ „ Z9 dA „  Z: dB „  Z; dC „  Z< dD „  Z= dE „  Z> dF „  Z? dG „  Z@ dH „  ZA dI „  ZB dJ dK „ ZC dL „  ZD dJ dM „ ZE dN „  ZF dO „  ZG dP „  ZH dQ „  ZI dR „  ZJ dS „  ZK dT „  ZL dU „  ZM dV „  ZN dW „  ZO e dX „ ZP e e dY „ ZQ dZ „  ZR e d[ „ ZS e d\ „ ZT d] „  ZU d^ „  ZV d_ „  ZW d` „  ZX da ZY db ZZ dc Z[ da Z\ dd de df f Z] dg „  Z^ dh di „ Z_ dj „  Z` dk „  Za dl „  Zb dm „  Zc dn „  Zd do „  Ze dp „  Zf dq „  Zg dr „  Zh ds „  Zi dt „  Zj du „  Zk dv „  Zl dw „  Zm dx „  Zn dy „  Zo dz „  Zp d{ „  Zq d| „  Zr RS(}   N(   s
   Percolator(   s   ColorDelegator(   s   UndoDelegator(   s	   IOBinding(   s   Toplevel(   s   MultiStatusBarc         C   s1	  t  i t j o1t i i t i d d ƒ } t i	 i
 d ƒ oW d d t i d  } t i i d ƒ o
 d } qd	 } t i i | | d d ƒ } nn t i	 i
 d
 ƒ p t i	 i
 d ƒ oG t i i t i d d t i d  ƒ } t i i | ƒ o
 | } qn t i i | ƒ } t i i | ƒ o | t  _ qAd t  _ n t i ƒ  } | |  _ | p | i } | |  _ t | ƒ |  _ |  i | d |  i ƒ|  _ } | o | i |  _ | i |  i _ n t i i t i ƒ  d ƒ |  _  t! | d d ƒ|  _" } t# | ƒ |  _$ } t i% d d d ƒ |  _& t' | d d d d d d d t i( | d d d ƒd t i( | d d d  ƒd! t i( | d" d d ƒd# t i( | d" d d  ƒd$ t i( | d% d d ƒd |  i& d& t i% d d d& ƒ ƒ
|  _) } |  i* ƒ  |  i+ ƒ  |  i i, d' |  i- ƒ |  i i. d( |  i/ ƒ | i. d) |  i0 ƒ | i. d* |  i1 ƒ | i. d+ |  i2 ƒ | i. d, |  i3 ƒ | i. d- |  i4 ƒ | i. d. |  i5 ƒ | i. d/ |  i6 ƒ | i. d0 |  i7 ƒ | i. d1 |  i8 ƒ | i. d2 d3 „  ƒ | i. d4 |  i9 ƒ | i. d5 |  i: ƒ | i. d6 |  i; ƒ | i. d7 |  i< ƒ | i. d8 |  i= ƒ | i. d9 |  i> ƒ | i. d: |  i? ƒ | i. d; |  i@ ƒ | i. d< |  iA ƒ | i. d= |  iB ƒ | i. d> |  iC ƒ | i. d? |  iD ƒ | i. d@ |  iE ƒ | i. dA |  iF ƒ | i. dB |  iG ƒ | i. dC |  iH ƒ | i. dD |  iI ƒ | i. dE |  iJ ƒ | i. dF |  iK ƒ | i. dG |  iL ƒ | i. dH |  iM dI ƒ ƒ | i. dJ |  iM dK ƒ ƒ | ox | | i |  <| o |  | iO | <n | i. dL |  iP ƒ | i. dM |  i iQ ƒ | i. dN |  iR ƒ | i. dO |  iS ƒ n |  iT ƒ  | iU | dP <| iV dQ tW dR tX ƒ | iY | dS <d } t i% d d dT dU dV ƒo
 dW } n | i[ dX t i% d d dX ƒ t i% d d dY ƒ | f ƒ | iV dQ t\ dR t] dZ dK ƒ | iV dQ t^ dR t] dZ dK ƒ | i_ ƒ  |  i` | ƒ |  _a } |  ib | ƒ o$ |  id ƒ  |  _e } | if | ƒ n
 t |  _e |  ig ƒ  |  _h } | if | ƒ | ii | _i | ij | _j | ik |  il ƒ |  im |  ƒ |  _n }	 |	 io |  ip ƒ t |  i ƒ |  _q |  ir d[ is d d\ d] d^ dI d |  iq ƒ|  it ƒ  | oI t i iu | ƒ o t i i | ƒ o |	 iv | ƒ q@|	 iw | ƒ n |  il ƒ  |  ix ƒ  |  ir iy d_ ƒ } | oh | i{ d` ƒ }
 |
 t j o
 da }
 n |
 dI j o | i} ƒ  |
 dK }
 n |
 |  _~ t i€ |  i� ƒ n t‚ iƒ |  _ƒ t„ i… |  _… t‚ i† |  _† |  i‡ iˆ db ƒ o! |  i‡ db i‰ |  ib | ƒ ƒ n d  S(c   Ns   Docs
   index.htmls   linuxs   python-docs-s   %s.%s.%si   s   /var/www/html/python/s   /var/www/html/python/index.htmls   /usr/share/doc/s   wins   nts   Python%d%d.chmi   s!   http://www.python.org/doc/currents   menus   recent-files.lsts   names   vbars   mains   EditorWindows   widths   texts   padxi   s   wraps   nones
   foregrounds   normals   fgBgs   fgs
   backgrounds   bgs   highlightcolors   hilites   highlightbackgrounds   insertbackgrounds   cursors   heights   WM_DELETE_WINDOWs   <<close-window>>s   <<cut>>s   <<copy>>s	   <<paste>>s   <<center-insert>>s   <<help>>s   <<python-docs>>s   <<about-idle>>s   <<open-config-dialog>>s   <<open-module>>s   <<do-nothing>>c         C   s   d S(   Ns   break(    (   s   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   <lambda>v   s    s   <<select-all>>s   <<remove-selection>>s   <<find>>s   <<find-again>>s   <<find-in-files>>s   <<find-selection>>s   <<replace>>s   <<goto-line>>s   <3>s   <<smart-backspace>>s   <<newline-and-indent>>s   <<smart-indent>>s   <<indent-region>>s   <<dedent-region>>s   <<comment-region>>s   <<uncomment-region>>s   <<tabify-region>>s   <<untabify-region>>s   <<toggle-tabs>>s   <<change-indentwidth>>s   <Left>i    s   <Right>i   s   <<open-new-window>>s   <<close-all-windows>>s   <<open-class-browser>>s   <<open-path-browser>>s   commands   sides   fills   yscrollcommands	   font-bolds   types   bools   bolds   fonts	   font-sizes   expands   files   labels   Recent Filess	   underlines   windowss   endiÿÿÿÿs
   AutoIndent(Š   s   EditorWindows   help_urls   Nones   oss   paths   joins   syss   prefixs   dochomes   platforms   counts   version_infos   pyvers   isdirs   basepaths   chmpaths   isfiles   normpaths   idleConfs   CurrentThemes   currentThemes   flists   selfs   roots   Menus   menubars   Toplevels   tops   varss   inversedicts   instanceDicts   GetUserCfgDirs   recentFilesPaths	   Scrollbars   vbars   Frames
   text_frames	   GetOptions   widths   Texts   GetHighlights   texts   createmenubars   apply_bindingss   protocols   closes   binds   close_events   cuts   copys   pastes   center_insert_events   help_dialogs   python_docss   about_dialogs   config_dialogs   open_modules
   select_alls   remove_selections
   find_events   find_again_events   find_in_files_events   find_selection_events   replace_events   goto_line_events   right_menu_events   smart_backspace_events   newline_and_indent_events   smart_indent_events   indent_region_events   dedent_region_events   comment_region_events   uncomment_region_events   tabify_region_events   untabify_region_events   toggle_tabs_events   change_indentwidth_events   move_at_edge_if_selections   keys   dicts   new_callbacks   close_all_callbacks   open_class_browsers   open_path_browsers   set_status_bars   yviews   packs   RIGHTs   Ys   sets
   fontWeights   configs   LEFTs   BOTHs   TOPs	   focus_sets
   Percolators   pers   ispythonsources   filenames   ColorDelegators   colors   insertfilters   UndoDelegators   undos   undo_block_starts   undo_block_stops   set_saved_change_hooks   saved_change_hooks	   IOBindings   ios   set_filename_change_hooks   filename_change_hooks   menuRecentFiless   menudicts   insert_cascades   UpdateRecentFilesLists   existss   loadfiles   set_filenames   load_extensionss   gets   menus   indexs   ends   add_separators	   wmenu_ends
   WindowLists   register_callbacks   postwindowsmenus   tkMessageBoxs   askyesnos   tkSimpleDialogs
   askintegers	   showerrors
   extensionss   has_keys   set_indentation_params(   s   selfs   flists   filenames   keys   roots   colors   texts   basepaths   vbars   ios   ends   menus   pers   pyvers   undos
   fontWeights   currentThemes   dochomes   chmpaths
   text_frames   top(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   __init__3   s   
&			"



7
	
'



	c         C   s-   |  i i ƒ  \ } } |  i i | ƒ d Sd  S(   Ns   break(   s   selfs   ios   defaultfilenames   dirnames   basenames   flists   new(   s   selfs   events   dirnames   basename(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   new_callbackÙ   s    c         C   s£   |  i |  i ƒ |  _ |  i i d d d t ƒ|  i i d d d t ƒ|  i i d t d t ƒ |  i	 i
 d |  i ƒ |  i	 i
 d |  i ƒ |  i	 i |  i ƒ d  S(	   Ns   columns   Col: ?s   sides   lines   Ln: ?s   fills   <KeyRelease>s   <ButtonRelease>(   s   selfs   MultiStatusBars   tops
   status_bars	   set_labels   RIGHTs   packs   BOTTOMs   Xs   texts   binds   set_line_and_columns
   after_idle(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   set_status_barÞ   s    c         C   sS   |  i i t ƒ i d ƒ \ } } |  i i d d | ƒ |  i i d d | ƒ d  S(   Ns   .s   columns   Col: %ss   lines   Ln: %s(	   s   selfs   texts   indexs   INSERTs   splits   lines   columns
   status_bars	   set_label(   s   selfs   events   columns   line(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   set_line_and_columnç   s    !c         C   sE   |  i i ƒ  d j o |  i i ƒ  n |  i i ƒ  |  i i ƒ  d  S(   Ns   iconic(   s   selfs   tops   wm_states   wm_deiconifys   tkraises   texts	   focus_set(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   wakeupì   s    s   files   _Files   edits   _Edits   formats   F_ormats   runs   _Runs   optionss   _Optionss   windowss   _Windowss   helps   _Helpc         C   s©   |  i } h  |  _ } x_ |  i D]T \ } } t | ƒ \ } } t	 | d | ƒ| | <} | i d | d | d | ƒ q  W|  i ƒ  |  i d i t ƒ |  _ |  i ƒ  d  S(   Ns   names   labels   menus	   underlines   help(   s   selfs   menubars   mbars   menudicts
   menu_specss   names   labels   prepstrs	   underlines   Menus   menus   add_cascades
   fill_menuss   indexs   ENDs   base_helpmenu_lengths   reset_help_menu_entries(   s   selfs   names   menus   labels   menudicts   mbars	   underline(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   createmenubarý   s    	
  
c         C   so   |  i d } | i d ƒ } | t j o
 d } n | |  i j o | i |  i d | ƒ n t i	 | ƒ d  S(   Ns   windowss   endiÿÿÿÿi   (
   s   selfs   menudicts   menus   indexs   ends   Nones	   wmenu_ends   deletes
   WindowLists   add_windows_to_menu(   s   selfs   menus   end(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   postwindowsmenu  s    
c         C   sÍ   |  i i d d d ƒ |  i i d d | i | i f ƒ |  i o |  i ƒ  n |  i } | |  _ t	 i
 d  d j } | o |  i i d d	 ƒ n | i | i | i ƒ | o |  i i d d
 ƒ n d  S(   Ns   sels   1.0s   ends   inserts   @%d,%di   s   wins   cursors   arrows   ibeam(   s   selfs   texts
   tag_removes   mark_sets   events   xs   ys   rmenus
   make_rmenus   syss   platforms   iswins   configs   tk_popups   x_roots   y_root(   s   selfs   events   rmenus   iswin(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   right_menu_event  s    #		s   Closes   <<close-window>>c         C   sd   t  |  i d d ƒ} x? |  i D]4 \ } } |  i | d „ } | i d | d | ƒ q W| |  _ d  S(   Ns   tearoffi    c         C   s   |  i | ƒ d  S(   N(   s   texts   event_generates	   eventname(   s   texts	   eventname(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   command*  s    s   labels   command(	   s   Menus   selfs   texts   rmenus   rmenu_specss   labels	   eventnames   commands   add_command(   s   selfs   rmenus   labels	   eventnames   command(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   make_rmenu'  s    
 c         C   s   t  i |  i d ƒ d  S(   Ns
   About IDLE(   s   aboutDialogs   AboutDialogs   selfs   top(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   about_dialog/  s    c         C   s   t  i |  i d ƒ d  S(   Ns   Settings(   s   configDialogs   ConfigDialogs   selfs   top(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   config_dialog2  s    c         C   sG   t  i i t  i i t  i i t ƒ ƒ d ƒ } t i |  i
 d | ƒ d  S(   Ns   help.txts   Help(   s   oss   paths   joins   abspaths   dirnames   __file__s   fns   textViews
   TextViewers   selfs   top(   s   selfs   events   fn(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   help_dialog5  s    -c         C   sV   t  i i d ƒ p t  i i d ƒ o t i |  i ƒ d Sn t i |  i ƒ d Sd  S(   Ns   wins   nts   break(	   s   syss   platforms   counts   oss	   startfiles   selfs   help_urls
   webbrowsers   open(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   python_docs9  s
    &c         C   s   | i d ƒ p | i d ƒ o t i i | ƒ } n t i i d ƒ p t i i d ƒ o t i | ƒ n t	 i
 | ƒ d  S(   Ns   wwws   https   wins   nt(   s   urls
   startswiths   oss   paths   normpaths   syss   platforms   counts	   startfiles
   webbrowsers   open(   s   selfs   url(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   display_docsA  s
    !&c         C   s   |  i i d ƒ d Sd  S(   Ns   <<Cut>>s   break(   s   selfs   texts   event_generate(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   cutI  s    c         C   s   |  i i d ƒ d Sd  S(   Ns   <<Copy>>s   break(   s   selfs   texts   event_generate(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   copyM  s    c         C   s   |  i i d ƒ d Sd  S(   Ns	   <<Paste>>s   break(   s   selfs   texts   event_generate(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   pasteQ  s    c         C   sA   |  i i d d d ƒ |  i i d d ƒ |  i i d ƒ d Sd  S(   Ns   sels   1.0s   end-1cs   inserts   break(   s   selfs   texts   tag_adds   mark_sets   see(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   select_allU  s    c         C   s*   |  i i d d d ƒ |  i i d ƒ d  S(   Ns   sels   1.0s   ends   insert(   s   selfs   texts
   tag_removes   see(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   remove_selection[  s    c            sA   |  i i ‰ |  i i ‰ d d f ‰ ‡ ‡ ‡ ‡  d †  } | Sd S(   sè   Cursor move begins at start or end of selection

        When a left/right cursor key is pressed create and return to Tkinter a
        function which causes a cursor move from the associated edge of the
        selection.

        s   sel.first+1cs   sel.last-1cc            sQ   |  i d @d j o9 y ˆ  d ƒ ˆ d ˆ ˆ ƒ WqM t j
 o qM Xn d  S(   Ni   i    s	   sel.firsts   insert(   s   events   states   self_text_indexs   self_text_mark_sets   edges_tables
   edge_indexs   TclError(   s   event(   s   self_text_indexs   edges_tables   self_text_mark_sets
   edge_index(    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   move_at_edgej  s    
N(   s   selfs   texts   indexs   self_text_indexs   mark_sets   self_text_mark_sets   edges_tables   move_at_edge(   s   selfs
   edge_indexs   self_text_indexs   edges_tables   self_text_mark_sets   move_at_edge(    (   s
   edge_indexs   edges_tables   self_text_mark_sets   self_text_indexs1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   move_at_edge_if_selection_  s     c         C   s   t  i |  i ƒ d Sd  S(   Ns   break(   s   SearchDialogs   finds   selfs   text(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   find_events  s    c         C   s   t  i |  i ƒ d Sd  S(   Ns   break(   s   SearchDialogs
   find_agains   selfs   text(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   find_again_eventw  s    c         C   s   t  i |  i ƒ d Sd  S(   Ns   break(   s   SearchDialogs   find_selections   selfs   text(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   find_selection_event{  s    c         C   s$   t  i |  i |  i |  i ƒ d Sd  S(   Ns   break(   s
   GrepDialogs   greps   selfs   texts   ios   flist(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   find_in_files_event  s    c         C   s   t  i |  i ƒ d Sd  S(   Ns   break(   s   ReplaceDialogs   replaces   selfs   text(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   replace_eventƒ  s    c         C   sz   |  i } t i d d d | ƒ} | t j o d Sn | d j o | i ƒ  d Sn | i d d | ƒ | i d ƒ d  S(   Ns   Gotos   Go to line number:s   parents   breaki    s   inserts   %d.0(	   s   selfs   texts   tkSimpleDialogs
   askintegers   linenos   Nones   bells   mark_sets   see(   s   selfs   events   texts   lineno(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   goto_line_event‡  s    		
c   	      C   sh  y |  i i d d ƒ } Wn t j
 o d } n X| i ƒ  } t i d d d |  i d | ƒ} | o | i ƒ  } n | o d  Sn y" t | ƒ \ } } \ } } } Wn> t t f j
 o, } t i d t | ƒ d |  i ƒd  Sn X| t i j o% t i d	 d
 | d |  i ƒd  Sn | o | i ƒ  n |  i o |  i i | ƒ n |  i i | ƒ d  S(   Ns	   sel.firsts   sel.lasts    s   ModulesA   Enter the name of a Python module
to search on sys.path and open:s   parents   initialvalues   Import errors   Unsupported types   %s is not a source module(   s   selfs   texts   gets   names   TclErrors   strips   tkSimpleDialogs	   askstrings   _find_modules   fs   files   suffixs   modes   types	   NameErrors   ImportErrors   msgs   tkMessageBoxs	   showerrors   strs   imps	   PY_SOURCEs   closes   flists   opens   ios   loadfile(	   s   selfs   events   names   fs   modes   files   msgs   types   suffix(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   open_module“  s4    	"		
c         C   s˜   |  i i } | o. t i d d d |  i ƒ|  i i ƒ  t Sn t i	 i
 | ƒ \ } } t i	 i | ƒ \ } } d  k } | i |  i | | g ƒ d  S(   Ns   No filenames&   This buffer has no associated filenames   master(   s   selfs   ios   filenames   tkMessageBoxs	   showerrors   texts	   focus_sets   Nones   oss   paths   splits   heads   tails   splitexts   bases   exts   ClassBrowsers   flist(   s   selfs   events   exts   ClassBrowsers   heads   filenames   tails   base(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   open_class_browser´  s    		c         C   s   d  k  } | i  |  i ƒ d  S(   N(   s   PathBrowsers   selfs   flist(   s   selfs   events   PathBrowser(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   open_path_browserÂ  s    	c         C   so   | t j	 o
 | d j oQ |  i i d d | ƒ |  i i d d d ƒ |  i i d d d ƒ |  i ƒ  n d  S(   Ni    s   inserts   %d.0s   sels   1.0s   ends
   insert +1l(   s   linenos   Nones   selfs   texts   mark_sets
   tag_removes   tag_adds   center(   s   selfs   lineno(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   gotolineÆ  s
    c         C   sÂ   | o t Sn t i i t i i | ƒ ƒ \ } } t i i | ƒ d d f j o t Sn y& t	 | ƒ } | i ƒ  } | i ƒ  Wn t j
 o t Sn X| i d ƒ o | i d ƒ d j Sd  S(   Ns   .pys   .pyws   #!s   pythoni    (   s   filenames   Trues   oss   paths   splitexts   basenames   bases   exts   normcases   opens   fs   readlines   lines   closes   IOErrors   Falses
   startswiths   find(   s   selfs   filenames   fs   exts   bases   line(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   ispythonsourceÍ  s    $	c         C   s"   |  i o |  i i |  ƒ n d  S(   N(   s   selfs   flists
   close_edit(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   close_hookÛ  s    
c         C   s   | |  _  d  S(   N(   s
   close_hooks   self(   s   selfs
   close_hook(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   set_close_hookß  s    c         C   sj   |  i o |  i i |  ƒ n |  i ƒ  |  i i |  ƒ |  i |  i i ƒ o |  i	 ƒ  n |  i
 ƒ  d  S(   N(   s   selfs   flists   filename_changed_edits   saved_change_hooks   tops   update_windowlist_registrys   ispythonsources   ios   filenames   addcolorizers   rmcolorizer(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   filename_change_hookâ  s    

c         C   s^   |  i o d  Sn |  i i |  i ƒ |  i ƒ  |  _ |  i i |  i ƒ |  i i |  i ƒ d  S(   N(   s   selfs   colors   pers   removefilters   undos   ColorDelegators   insertfilter(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   addcolorizerì  s    
c         C   sY   |  i o d  Sn |  i i |  i ƒ |  i i |  i ƒ t |  _ |  i i |  i ƒ d  S(   N(   s   selfs   colors   pers   removefilters   undos   Nones   insertfilter(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   rmcolorizerô  s    	c         C   s4   |  i o& |  i ƒ  |  _ |  i i |  i ƒ n d S(   s(   Update the colour theme if it is changedN(   s   selfs   colors   ColorDelegators   pers   insertfilter(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   ResetColorizerü  s     
c         C   sj   d } t i d d d d d ƒo
 d } n |  i i d t i d d d ƒ t i d d d	 ƒ | f ƒ d
 S(   s.   Update the text widgets' font if it is changeds   normals   mains   EditorWindows	   font-bolds   types   bools   bolds   fonts	   font-sizeN(   s
   fontWeights   idleConfs	   GetOptions   selfs   texts   config(   s   selfs
   fontWeight(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys	   ResetFont  s
     
c         C   sÒ  t  i ƒ  |  i _ |  i i }
 x* |
 i ƒ  D] \ } } |  i	 i
 | ƒ q+ W|  i ƒ  h  } xf |  i i D]X } h  | | d <xA | d D]5 } | o( | d | | d t | d ƒ d <q‡ q‡ Wqh Wx|  i i ƒ  D]ö } |  i | } | i t ƒ d } xÍ t d | ƒ D]¼ } | i | ƒ d j o  | i | d ƒ } | oƒ | i | d ƒ }	 d } | i | ƒ o* | | i |	 ƒ o | | |	 } q‘n | o& t |
 | ƒ } | i | d | ƒqÂqÆq
q
WqÔ Wd S(   s*   Update the keybindings if they are changedi    i   s   commands   accelerators   labels    N(   s   idleConfs   GetCurrentKeySets   selfs   Bindingss   default_keydefss   keydefss   itemss   events   keylists   texts   event_deletes   apply_bindingss   menuEventDicts   menudefss   menus   items   prepstrs   menudicts   keyss   menubarItems   indexs   ENDs   ends   ranges   types	   entrycgets   accels   itemNames   has_keys   get_accelerators   entryconfig(   s   selfs   ends   menubarItems   indexs   menus   accels   events   items   keylists   itemNames   keydefss   menuEventDict(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   ResetKeybindings  s@      
  0  c         C   s·   t  i ƒ  } |  i d } | i t ƒ } | |  i	 j o | i
 |  i	 d | ƒ n | oL | i ƒ  x? | D]3 } |  i | d ƒ } | i d | d d | ƒ qk Wn | |  i d <d S(   s3   Update the additional help entries on the Help menus   helpi   s   labeli    s   commandN(   s   idleConfs   GetAllExtraHelpSourcesLists	   help_lists   selfs   menudicts   helpmenus   indexs   ENDs   helpmenu_lengths   base_helpmenu_lengths   deletes   add_separators   entrys"   _EditorWindow__extra_help_callbacks   cmds   add_command(   s   selfs   cmds	   help_lists   helpmenus   entrys   helpmenu_length(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   reset_help_menu_entries.  s     
 "c            s   | ‡  d † } | Sd S(   sC   Create a callback with the helpfile value frozen at definition timec            s   ˆ  i |  ƒ d  S(   N(   s   selfs   display_docss   helpfile(   s   helpfile(   s   self(    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   display_extra_helpA  s    N(   s   helpfiles   display_extra_help(   s   selfs   helpfiles   display_extra_help(    (   s   selfs1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   __extra_help_callback?  s     c      	   C   s‡  g  } t i i |  i ƒ o4 t |  i d ƒ } z | i ƒ  } Wd | i	 ƒ  Xn | oH t i i | ƒ d } | | j o | i | ƒ n | i d | ƒ n |  i | ƒ } d } | oÈ xÅ |  i i i ƒ  D]­ } | i } | i d t ƒ d } d } t | ƒ } xs | D]k }
 |
 d d !} | i | ƒ }	 | | j o
 t  } n | i! d | | d	 | d
 |	 d | ƒ | d 7} qWqÎ Wn d S(   s:   Load or update the recent files list, and menu if requireds   rNs   
i    s   1234567890ABCDEFGHIJi   iÿÿÿÿs   labels    s   commands	   underline("   s   rfLists   oss   paths   existss   selfs   recentFilesPaths   opens   RFfiles	   readliness   closes   newFiles   abspaths   removes   inserts   _EditorWindow__CleanRecentFiless   ullists   tops   instanceDicts   keyss   instances   menuRecentFiless   menus   deletes   ENDs   is   uls   lens   ullens   files   fileNames!   _EditorWindow__RecentFileCallbacks   callbacks   Nones   add_command(   s   selfs   newFiles   ullists   RFfiles   ullens   uls   is   fileNames   instances   callbacks   files   menus   rfList(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   UpdateRecentFilesListE  s>       	 

c         C   sä   | } d } g  } xD | D]< } t i i | d d !ƒ o | i | ƒ n | d } q W| o& | i ƒ  x | D] } | | =qr Wn t
 | ƒ d j o | d d !} n t |  i d ƒ } z | i | ƒ Wd  | i ƒ  X| Sd  S(   Ni    iÿÿÿÿi   i   s   w(   s   rfLists
   origRfLists   counts   nonFiless   paths   oss   existss   appends   reverses   indexs   lens   opens   selfs   recentFilesPaths   RFfiles
   writeliness   close(   s   selfs   rfLists   counts   indexs   RFfiles   nonFiless   paths
   origRfList(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   __CleanRecentFilesg  s*     
  c            s   | ‡  d † } | Sd  S(   Nc            s   ˆ  i i d |  ƒ d  S(   Ns   editFile(   s   selfs   ios   opens   fileName(   s   fileName(   s   self(    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   OpenRecentFile~  s    (   s   fileNames   OpenRecentFile(   s   selfs   fileNames   OpenRecentFile(    (   s   selfs1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   __RecentFileCallback}  s    c         C   s¾   |  i ƒ  } |  i ƒ  } | o | o | d | } n) | o
 | } n | o
 | } n d } | p | p | } |  i ƒ  o d | } d | } n |  i i	 | ƒ |  i i
 | ƒ d  S(   Ns    - s   Untitleds   *%s*s   *%s(   s   selfs   short_titles   shorts
   long_titles   longs   titles   icons	   get_saveds   tops   wm_titles   wm_iconname(   s   selfs   icons   shorts   longs   title(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   saved_change_hook‚  s    


c         C   s   |  i i ƒ  Sd  S(   N(   s   selfs   undos	   get_saved(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys	   get_saved”  s    c         C   s   |  i i | ƒ d  S(   N(   s   selfs   undos	   set_saveds   flag(   s   selfs   flag(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys	   set_saved—  s    c         C   s   |  i i ƒ  d  S(   N(   s   selfs   undos
   reset_undo(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   reset_undoš  s    c         C   s1   |  i i } | o t i i | ƒ } n | Sd  S(   N(   s   selfs   ios   filenames   oss   paths   basename(   s   selfs   filename(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   short_title�  s    c         C   s   |  i i p d Sd  S(   Ns    (   s   selfs   ios   filename(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   long_title£  s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   center(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   center_insert_event¦  s    s   insertc         C   sb   |  i } |  i ƒ  \ } } |  i | ƒ } | | } t	 d | | d ƒ } | i t | ƒ ƒ d  S(   Ni   i   (   s   selfs   texts   getwindowliness   tops   bots	   getlinenos   marks   linenos   heights   maxs   newtops   yviews   float(   s   selfs   marks   texts   bots   linenos   heights   tops   newtop(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   center©  s    	
c         C   sw   |  i } |  i d ƒ } |  i d ƒ } | | j o | i ƒ  d j o" t | d ƒ } | | d } n | | f Sd  S(   Ns   @0,0s   @0,65535i   s   height(   s   selfs   texts	   getlinenos   tops   bots   winfo_heights   ints   height(   s   selfs   texts   bots   heights   top(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   getwindowlines±  s    	 c         C   s&   |  i } t t | i | ƒ ƒ ƒ Sd  S(   N(   s   selfs   texts   ints   floats   indexs   mark(   s   selfs   marks   text(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys	   getlineno»  s    	c         C   s>   |  i i ƒ  } t i d | ƒ } t t | i	 ƒ  ƒ } | Sd S(   s   Return (width, height, x, y)s   (\d+)x(\d+)\+(-?\d+)\+(-?\d+)N(   s   selfs   tops   wm_geometrys   geoms   res   matchs   ms   maps   ints   groupss   tuple(   s   selfs   tuples   ms   geom(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   get_geometry¿  s
     c         C   s   |  i ƒ  d  S(   N(   s   selfs   close(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   close_eventÆ  s    c         C   sr   |  i od |  i ƒ  oE |  i i ƒ  d j o |  i i ƒ  n |  i i ƒ  |  i i ƒ  n |  i i ƒ  Sn d  S(   Ns   normal(	   s   selfs   ios	   get_saveds   tops   states	   deiconifys   lowers   lifts	   maybesave(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys	   maybesaveÉ  s    
c         C   s/   |  i ƒ  } | d j o |  i ƒ  n | Sd  S(   Ns   cancel(   s   selfs	   maybesaves   replys   _close(   s   selfs   reply(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   closeÒ  s    c         C   s  |  i i o |  i d |  i i ƒ n t i |  i ƒ |  i o |  i ƒ  n t |  _	 d } |  i ƒ  |  i i ƒ  t |  _ t |  _ |  i o0 |  i i
 } | o |  i } |  i i | ƒ n t |  _ t |  _ |  i i ƒ  t |  _ | o |  i i ƒ  n d  S(   Ns   newFilei    (   s   selfs   ios   filenames   UpdateRecentFilesLists
   WindowLists   unregister_callbacks   postwindowsmenus
   close_hooks   Nones   flists
   colorizings   unload_extensionss   closes   undos   colors   tops   dohs   texts   varss   pers   destroy(   s   selfs   dohs
   colorizing(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   _closeØ  s&    
	
	
		c         C   s   h  |  _ |  i ƒ  d  S(   N(   s   selfs
   extensionss   load_standard_extensions(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   load_extensionsî  s    	c         C   sE   x5 |  i i ƒ  D]$ } t | d ƒ o | i ƒ  q q Wh  |  _ d  S(   Ns   close(   s   selfs
   extensionss   valuess   inss   hasattrs   close(   s   selfs   ins(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   unload_extensionsò  s
     c         C   sS   xL |  i ƒ  D]> } y |  i | ƒ Wq d G| GHd  k } | i ƒ  q Xq Wd  S(   Ns   Failed to load extension(   s   selfs   get_standard_extension_namess   names   load_extensions	   tracebacks	   print_exc(   s   selfs	   tracebacks   name(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   load_standard_extensionsø  s     
	c         C   s   t  i ƒ  Sd  S(   N(   s   idleConfs   GetExtensions(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   get_standard_extension_names  s    c         C   sB  t  | t ƒ  t ƒ  g  ƒ } t | | ƒ } | |  ƒ } | |  i	 | <t
 i | ƒ } | oº |  i | ƒ xª | i ƒ  D]˜ } | i d d ƒ } x  | d  d j o | d } qŽ Wx  | d d j o | d  } q± W| d } t | | ƒ o  |  i i | t | | ƒ ƒ qs qs Wn t | d ƒ o |  i | i | ƒ n | Sd  S(	   Ns   -s   _i   s   <iÿÿÿÿs   >s   _events   menudefs(   s
   __import__s   names   globalss   localss   mods   getattrs   clss   selfs   inss
   extensionss   idleConfs   GetExtensionBindingss   keydefss   apply_bindingss   keyss   vevents   replaces
   methodnames   hasattrs   texts   binds
   fill_menuss   menudefs(   s   selfs   names
   methodnames   vevents   inss   keydefss   clss   mod(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   load_extension  s,       
(c         C   sk   | t j o |  i i } n |  i } | | _  x5 | i ƒ  D]' \ } } | o | i	 | | Œ q< q< Wd  S(   N(
   s   keydefss   Nones   selfs   Bindingss   default_keydefss   texts   itemss   events   keylists	   event_add(   s   selfs   keydefss   texts   events   keylist(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   apply_bindings  s    		 c         C   st  | t j o |  i i } n | t j o |  i i } n |  i }	 |  i } x!| D]\ }
 } |	 i |
 ƒ } | o qS n xì | D]ä } | o | i ƒ  q„ | \ } } | d  d j } | o | d } n t | ƒ \ } } t | | ƒ } | | d „ } | o> |  i | t ƒ } | i d | d | d | d | d | ƒ q„ | i d | d | d | d | ƒ q„ WqS Wd	 S(
   s   Add appropriate entries to the menus and submenus

        Menus that are absent or None in self.menudict are ignored.
        i   s   !c         C   s   |  i | ƒ d  S(   N(   s   texts   event_generates   event(   s   texts   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   command;  s    s   labels	   underlines   commands   accelerators   variableN(   s   defss   Nones   selfs   Bindingss   menudefss   keydefss   default_keydefss   menudicts   texts   mnames   itemlists   gets   menus   items   add_separators   labels   events   checkbuttons   prepstrs	   underlines   get_accelerators   accelerators   commands	   getrawvars
   BooleanVars   vars   add_checkbuttons   add_command(   s   selfs   defss   keydefss   accelerators   texts   menus   labels   items   commands   menudicts   mnames   vars   checkbuttons	   underlines   events   itemlist(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   fill_menus"  s>     		  c         C   s(   |  i | ƒ } | o | i ƒ  Sn d  S(   N(   s   selfs	   getrawvars   names   vars   get(   s   selfs   names   var(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   getvarG  s    c         C   s.   |  i | | ƒ } | o | i | ƒ n d  S(   N(   s   selfs	   getrawvars   names   vartypes   vars   sets   value(   s   selfs   names   values   vartypes   var(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   setvarL  s    c         C   sG   |  i i | ƒ } | o | o | |  i ƒ |  i | <} n | Sd  S(   N(   s   selfs   varss   gets   names   vars   vartypes   text(   s   selfs   names   vartypes   var(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys	   getrawvarQ  s    c         C   sB   |  i o0 |  i i d | ƒ p d |  i i | ƒ j Sn d Sd  S(   Ns   TODOs   STRINGi   (   s   selfs   colors   texts   tag_prevranges
   text_indexs	   tag_names(   s   selfs
   text_index(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   is_char_in_string`  s    
0c         C   sV   y2 |  i i d ƒ } |  i i d ƒ } | | f SWn t j
 o t t f Sn Xd  S(   Ns	   sel.firsts   sel.last(   s   selfs   texts   indexs   firsts   lasts   TclErrors   None(   s   selfs   lasts   first(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   get_selection_indicesl  s    c         C   s"   |  i d p t } t | ƒ Sd  S(   Ns   tabs(   s   selfs   texts   TK_TABWIDTH_DEFAULTs   currents   int(   s   selfs   current(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   get_tabwidthw  s    c         C   s`   |  i } |  i ƒ  | j o@ | i i d d | d d | i d | ƒ } | i d | ƒ n d  S(   Ns   fonts   measures
   -displayofs   ns   tabs(	   s   selfs   texts   get_tabwidths   newtabwidths   tks   calls   masters   pixelss	   configure(   s   selfs   newtabwidths   texts   pixels(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   set_tabwidth}  s    		i    i   i   i2   iô  i@KL c         K   s—   x� | i ƒ  D]‚ \ } } | d j o | |  _ q | d j o | |  _ q | d j o | |  _ q | d j o | |  _ q t	 d | ‚ q Wd  S(   Ns   usetabss   indentwidths   tabwidths   context_use_ps1s   bad option name: %s(
   s   optionss   itemss   keys   values   selfs   usetabss   indentwidths   tabwidths   context_use_ps1s   KeyError(   s   selfs   optionss   values   key(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   config¢  s     i   c         C   s}   | o | o[ |  i ƒ  } d | j o
 d j n o | |  _ n |  i |  i j o d |  _ qi n |  i |  i ƒ d  S(   Ni   i   i    (	   s   guesss   ispythonsources   selfs   guess_indents   is   indentwidths   tabwidths   usetabss   set_tabwidth(   s   selfs   ispythonsources   guesss   i(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   set_indentation_paramsµ  s    c         C   sç  |  i } |  i ƒ  \ }
 } |
 o | o( | i |
 | ƒ | i d |
 ƒ d Sn | i d d ƒ } | d j o9 | i	 d d d ƒ o | i d ƒ n | i
 ƒ  d Sn | d d	 j o | i d ƒ d Sn |  i } t | i | ƒ ƒ }	 |	 d
 |  i |  i } t i i d ƒ d } d } xj n ob | | j o Pn | d  } | d
 } t | i | ƒ ƒ }	 |	 | j p | d d	 j o Pq$q+W| i ƒ  | i d | d ƒ |	 | j  o | i d d | |	 ƒ n | i ƒ  d Sd  S(   Ns   inserts   breaks   insert linestarts    s   >s   1.0s	   insert-1ciÿÿÿÿs    	i   s   
i    s
   insert-%dcs    (   s   selfs   texts   get_selection_indicess   firsts   lasts   deletes   mark_sets   gets   charss   compares   bells   tabwidths   lens
   expandtabss   haves   indentwidths   wants   syss   ps1s   splits   last_line_of_prompts   ncharsdeleteds   undo_block_starts   inserts   undo_block_stop(   s   selfs   events   lasts   wants   texts   charss   last_line_of_prompts   ncharsdeleteds   tabwidths   haves   first(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   smart_backspace_event¿  sH    	
	  




c   
      C   sT  |  i } |  i ƒ  \ }	 } | i ƒ  z|	 o | oN t |	 ƒ t | ƒ j o |  i | ƒ Sn | i	 |	 | ƒ | i
 d |	 ƒ n | i d d ƒ } t | |  i ƒ \ } } | t | ƒ j o |  i | |  i ƒ nX |  i o
 d } n4 t | i |  i ƒ ƒ } |  i } d | | | } | i d | ƒ | i d ƒ d SWd  | i ƒ  Xd  S(   Ns   inserts   insert linestarts   	s    s   break(   s   selfs   texts   get_selection_indicess   firsts   lasts   undo_block_starts
   index2lines   indent_region_events   events   deletes   mark_sets   gets   prefixs
   classifywss   tabwidths   raws	   effectives   lens   reindent_tos   indentwidths   usetabss   pads
   expandtabss   ns   inserts   sees   undo_block_stop(
   s   selfs   events   lasts	   effectives   texts   ns   raws   prefixs   pads   first(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   smart_indent_eventì  s.    	


	 c         C   s©  |  i } |  i ƒ  \ } } | i ƒ  ze| o | o$ | i | | ƒ | i d | ƒ n | i d d ƒ }	 d t
 |	 ƒ f \ } } x- | | j  o |	 | d j o | d } q‡ W| | j o | i d d ƒ d Sn |	 |  } d } t i i d ƒ d } x> |	 o |	 d d j o
 |	 | j o |	 d  }	 | d } qW| o | i d	 | d ƒ n x( | i d ƒ d j o | i d ƒ qbW| i d d ƒ t | i d ƒ ƒ } t i |  i |  i ƒ } x‹ |  i D]€ } t | | d ƒ } | d
 } | i | d ƒ } | i! | ƒ | i" |  i# |  i$ | ƒ ƒ } | t& j	 p
 | d j o PqÑqÑW| i' | p d ƒ | i( ƒ  }
 |
 t i* j o¡ |
 t i+ j o | i d | ƒ nv |
 t i, j o |  i- | i. ƒ  ƒ nO |
 t i/ j o> | i0 ƒ  d j o | i d | ƒ q|  i- | i1 ƒ  ƒ n d Sn | i2 ƒ  } | i d | ƒ | i3 ƒ  o |  i4 | ƒ n& | o
 | i6 ƒ  o |  i7 | ƒ n d SWd  | i8 d ƒ | i9 ƒ  Xd  S(   Ns   inserts   insert linestarti    s    	i   s   
s   breakiÿÿÿÿs   insert - %d charss   .0(:   s   selfs   texts   get_selection_indicess   firsts   lasts   undo_block_starts   deletes   mark_sets   gets   lines   lens   is   ns   inserts   indents   syss   ps1s   splits   last_line_of_prompts
   index2lines   indexs   lnos   PyParses   Parsers   indentwidths   tabwidths   ys   num_context_liness   contexts   maxs   startats   startatindexs   rawtexts   set_strs   find_good_parse_starts   context_use_ps1s   _build_char_in_string_funcs   bods   Nones   set_los   get_continuation_types   cs   C_NONEs   C_STRINGs	   C_BRACKETs   reindent_tos   compute_bracket_indents   C_BACKSLASHs   get_num_lines_in_stmts   compute_backslash_indents   get_base_indent_strings   is_block_openers   smart_indent_events   events   is_block_closers   smart_backspace_events   sees   undo_block_stop(   s   selfs   events   texts   lnos   indents   rawtexts   startats   last_line_of_prompts   startatindexs   lines   cs   lasts   is   ns   contexts   ys   bods   first(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   newline_and_indent_event  s~    	
 
 %
 
 	  c         C   s   | |  i d „ } | Sd  S(   Nc         C   s   | | d |  ƒ Sd  S(   Ns   +%dc(   s   _iciss   _startindexs   offset(   s   offsets   _startindexs   _icis(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   innerj  s    (   s
   startindexs   selfs   is_char_in_strings   inner(   s   selfs
   startindexs   inner(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   _build_char_in_string_funci  s    c   
      C   s¨   |  i ƒ  \ } } } } xo t t | ƒ ƒ D][ } | | }	 |	 oD t
 |	 |  i ƒ \ } } | |  i } |  i | ƒ |	 | | | <q+ q+ W|  i | | | | ƒ d Sd  S(   Ns   break(   s   selfs
   get_regions   heads   tails   charss   liness   ranges   lens   poss   lines
   classifywss   tabwidths   raws	   effectives   indentwidths   _make_blankss
   set_region(
   s   selfs   events   heads	   effectives   charss   liness   poss   raws   tails   line(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   indent_region_evento  s     
#c   
      C   s±   |  i ƒ  \ } } } } xx t t | ƒ ƒ D]d } | | }	 |	 oM t
 |	 |  i ƒ \ } } t | |  i d ƒ } |  i | ƒ |	 | | | <q+ q+ W|  i | | | | ƒ d Sd  S(   Ni    s   break(   s   selfs
   get_regions   heads   tails   charss   liness   ranges   lens   poss   lines
   classifywss   tabwidths   raws	   effectives   maxs   indentwidths   _make_blankss
   set_region(
   s   selfs   events   heads	   effectives   charss   liness   poss   raws   tails   line(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   dedent_region_eventz  s     
#c         C   sk   |  i ƒ  \ } } } } x6 t t | ƒ d ƒ D] } | | } d | | | <q/ W|  i
 | | | | ƒ d  S(   Ni   s   ##(   s   selfs
   get_regions   heads   tails   charss   liness   ranges   lens   poss   lines
   set_region(   s   selfs   events   heads   charss   liness   poss   tails   line(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   comment_region_event…  s     
c         C   s°   |  i ƒ  \ } } } } x{ t t | ƒ ƒ D]g } | | } | o q+ n | d  d j o | d } n  | d  d j o | d } n | | | <q+ W|  i
 | | | | ƒ d  S(   Ni   s   ##i   s   #(   s   selfs
   get_regions   heads   tails   charss   liness   ranges   lens   poss   lines
   set_region(   s   selfs   events   heads   charss   liness   poss   tails   line(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   uncomment_region_eventŒ  s     
c         C   s¸   |  i ƒ  \ } }	 } } |  i ƒ  }
 xw t t	 | ƒ ƒ D]c } | | } | oL t | |
 ƒ \ } } t | |
 ƒ \ } } d | d | | | | | <q7 q7 W|  i | |	 | | ƒ d  S(   Ns   	s    (   s   selfs
   get_regions   heads   tails   charss   liness   _asktabwidths   tabwidths   ranges   lens   poss   lines
   classifywss   raws	   effectives   divmods   ntabss   nspacess
   set_region(   s   selfs   events   nspacess   heads	   effectives   charss   liness   poss   raws   tails   tabwidths   lines   ntabs(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   tabify_region_event™  s     
&c         C   sr   |  i ƒ  \ } } } } |  i ƒ  } x1 t t	 | ƒ ƒ D] } | | i | ƒ | | <q7 W|  i | | | | ƒ d  S(   N(   s   selfs
   get_regions   heads   tails   charss   liness   _asktabwidths   tabwidths   ranges   lens   poss
   expandtabss
   set_region(   s   selfs   events   heads   charss   liness   poss   tails   tabwidth(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   untabify_region_event¤  s     c         C   sJ   |  i d d d d f |  i d d |  i ƒo |  i |  _ n d Sd  S(   Ns   Toggle tabss
   Turn tabs s   ons   offs   ?s   parents   break(   s   selfs   askyesnos   usetabss   text(   s   selfs   event(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   toggle_tabs_event«  s
    	c         C   sD   |  i ƒ  } | |  i j o  | |  _ |  i d d d ƒn d Sd  S(   Ni    s   guesss   break(   s   selfs   _asktabwidths   news   tabwidths   set_indentation_params(   s   selfs   events   new(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   change_tabwidth_event´  s
    	c         C   s\   |  i d d d |  i d |  i d d d d ƒ} | o | |  i j o | |  _ n d	 Sd  S(
   Ns   Indent widths   New indent width (2-16)s   parents   initialvalues   minvaluei   s   maxvaluei   s   break(   s   selfs
   askintegers   texts   indentwidths   new(   s   selfs   events   new(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   change_indentwidth_event»  s    			c         C   s¦   |  i } |  i ƒ  \ } } | o | o* | i | d ƒ } | i | d ƒ } n | i d ƒ } | i d ƒ } | i | | ƒ } | i
 d ƒ } | | | | f Sd  S(   Ns
    linestarts   -1c lineend +1cs   insert linestarts   insert lineend +1cs   
(   s   selfs   texts   get_selection_indicess   firsts   lasts   indexs   heads   tails   gets   charss   splits   lines(   s   selfs   heads   lasts   texts   liness   tails   charss   first(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   get_regionÇ  s    	c         C   s¥   |  i } d i | ƒ } | | j o | i ƒ  d  Sn | i d d d ƒ | i d | ƒ | i
 ƒ  | i | | ƒ | i | | ƒ | i ƒ  | i d | d ƒ d  S(   Ns   
s   sels   1.0s   ends   insert(   s   selfs   texts   joins   liness   newcharss   charss   bells
   tag_removes   mark_sets   heads   undo_block_starts   deletes   tails   inserts   undo_block_stops   tag_add(   s   selfs   heads   tails   charss   liness   texts   newchars(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   set_regionÔ  s    	


c         C   sB   |  i o, t | |  i ƒ \ } } d | d | Sn	 d | Sd  S(   Ns   	s    (   s   selfs   usetabss   divmods   ns   tabwidths   ntabss   nspaces(   s   selfs   ns   nspacess   ntabs(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   _make_blanksä  s    
c         C   so   |  i } | i ƒ  | i d d d ƒ o | i d d ƒ n | o | i d |  i | ƒ ƒ n | i ƒ  d  S(   Ns   insert linestarts   !=s   insert(	   s   selfs   texts   undo_block_starts   compares   deletes   columns   inserts   _make_blankss   undo_block_stop(   s   selfs   columns   text(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   reindent_toî  s    	
c         C   s<   |  i d d d |  i d |  i d d d d ƒp |  i Sd  S(	   Ns	   Tab widths   Spaces per tab? (2-16)s   parents   initialvalues   minvaluei   s   maxvaluei   (   s   selfs
   askintegers   texts   indentwidths   tabwidth(   s   self(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   _asktabwidth÷  s    			c         C   sy   t  |  i |  i ƒ i ƒ  \ } } | o | o4 t | |  i ƒ \ } } t | |  i ƒ \ } } n d } } | | Sd  S(   Ni    (   s   IndentSearchers   selfs   texts   tabwidths   runs   openers   indenteds
   classifywss   raws   indentsmalls   indentlarge(   s   selfs   indenteds   indentlarges   raws   openers   indentsmall(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   guess_indent  s    !
(s   s   __name__s
   __module__s
   Percolators   ColorDelegators   UndoDelegators	   IOBindings   Bindingss   Tkinters   Toplevels   MultiStatusBars   varss   Nones   help_urls   __init__s   new_callbacks   set_status_bars   set_line_and_columns   wakeups
   menu_specss   createmenubars   postwindowsmenus   rmenus   right_menu_events   rmenu_specss
   make_rmenus   about_dialogs   config_dialogs   help_dialogs   python_docss   display_docss   cuts   copys   pastes
   select_alls   remove_selections   move_at_edge_if_selections
   find_events   find_again_events   find_selection_events   find_in_files_events   replace_events   goto_line_events   open_modules   open_class_browsers   open_path_browsers   gotolines   ispythonsources
   close_hooks   set_close_hooks   filename_change_hooks   addcolorizers   rmcolorizers   ResetColorizers	   ResetFonts   ResetKeybindingss   reset_help_menu_entriess"   _EditorWindow__extra_help_callbacks   UpdateRecentFilesLists   _EditorWindow__CleanRecentFiless!   _EditorWindow__RecentFileCallbacks   saved_change_hooks	   get_saveds	   set_saveds
   reset_undos   short_titles
   long_titles   center_insert_events   centers   getwindowliness	   getlinenos   get_geometrys   close_events	   maybesaves   closes   _closes   load_extensionss   unload_extensionss   load_standard_extensionss   get_standard_extension_namess   load_extensions   apply_bindingss
   fill_menuss   getvars   setvars	   getrawvars   is_char_in_strings   get_selection_indicess   get_tabwidths   set_tabwidths   usetabss   indentwidths   tabwidths   context_use_ps1s   num_context_liness   configs   set_indentation_paramss   smart_backspace_events   smart_indent_events   newline_and_indent_events   _build_char_in_string_funcs   indent_region_events   dedent_region_events   comment_region_events   uncomment_region_events   tabify_region_events   untabify_region_events   toggle_tabs_events   change_tabwidth_events   change_indentwidth_events
   get_regions
   set_regions   _make_blankss   reindent_tos   _asktabwidths   guess_indent(    (    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   EditorWindow'   sÞ   	¦				E
		
													!					
				
	!		"										
													%						
	-	!	\														
			c         C   s   t  t |  ƒ ƒ Sd  S(   N(   s   ints   floats   index(   s   index(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   index2line  s    c         C   s|   d } } xa |  D]Y } | d j o | d } | d } q | d j o  | d } | | d | } q Pq W| | f Sd  S(   Ni    s    i   s   	(   s   raws	   effectives   ss   chs   tabwidth(   s   ss   tabwidths   chs   raws	   effective(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   classifyws  s    
 

s   IndentSearcherc           B   sM   t  Z d „  Z d „  Z e i e i d d d d d d f d	 „ Z d
 „  Z RS(   Nc         C   s6   | |  _  | |  _ d |  _ |  _ t |  _ |  _ d  S(   Ni    (   s   texts   selfs   tabwidths   is   finisheds   Nones   blkopenlines   indentedline(   s   selfs   texts   tabwidth(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   __init__/  s    		c         C   sm   |  i o d Sn |  i d } |  _ | d } |  i i | d d ƒ o d Sn |  i i | | d ƒ Sd  S(   Ns    i   s   .0s   >=s   ends    lineend+1c(   s   selfs   finisheds   is   marks   texts   compares   get(   s   selfs   is   mark(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   readline5  s    
s   classs   defs   fors   ifs   trys   whilec	   	      C   sf   |  i o nU | | j o
 | | j o | |  _ n. | | j o |  i o | |  _	 d |  _ n d  S(   Ni   (
   s   selfs   finisheds   types   NAMEs   tokens   OPENERSs   lines   blkopenlines   INDENTs   indentedline(	   s   selfs   types   tokens   starts   ends   lines   INDENTs   NAMEs   OPENERS(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys
   tokeneater>  s    
	c         C   sm   t  i } |  i t  _ z7 y t  i |  i |  i ƒ Wn t  i j
 o n XWd  | t  _ X|  i	 |  i
 f Sd  S(   N(   s	   _tokenizes   tabsizes   save_tabsizes   selfs   tabwidths   tokenizes   readlines
   tokeneaters
   TokenErrors   blkopenlines   indentedline(   s   selfs   save_tabsize(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   runJ  s    		 
(	   s   __name__s
   __module__s   __init__s   readlines	   _tokenizes   INDENTs   NAMEs
   tokeneaters   run(    (    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   IndentSearcher(  s   			*c         C   sD   |  i d ƒ } | d j o |  |  |  | d }  n | |  f Sd  S(   Ns   _i    i   (   s   ss   finds   i(   s   ss   i(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   prepstrZ  s    s   bracketlefts   [s   bracketrights   ]s   slashs   /c         C   sô   |  i | ƒ } | o d Sn | d } t i d d „  | ƒ } t i d d „  | ƒ } t i d d | ƒ } t i d d	 | ƒ } t i d
 d | ƒ } t i d d | ƒ } t i d d | ƒ } t i d d | ƒ } t i d d | ƒ } | Sd  S(   Ns    i    s   -[a-z]\bc         C   s   |  i ƒ  i ƒ  S(   N(   s   ms   groups   upper(   s   m(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   <lambda>n  s    s   \b\w+\bc         C   s   t  i |  i ƒ  |  i ƒ  ƒ S(   N(   s   keynamess   gets   ms   group(   s   m(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   <lambda>o  s    s   Key-s   Cancels
   Ctrl-Breaks   Control-s   Ctrl-s   -s   +s   ><s    s   <s   >(   s   keydefss   gets   events   keylists   ss   res   sub(   s   keydefss   events   ss   keylist(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   get_acceleratori  s    
c         C   sF   |  i } | i d d d ƒ | i d d d ƒ | i d d d ƒ d  S(	   Ns   tcl_wordBreakAfters   a bi    s   sets   tcl_wordcharss   [a-zA-Z0-9_]s   tcl_nonwordcharss   [^a-zA-Z0-9_](   s   roots   tks   call(   s   roots   tk(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   fixwordbreaksz  s    	c          C   s   t  ƒ  } t | ƒ | i ƒ  t i d o t i d } n t } t d | d | ƒ }  |  i
 | i ƒ | i ƒ  | i ƒ  d  S(   Ni   s   roots   filename(   s   Tks   roots   fixwordbreakss   withdraws   syss   argvs   filenames   Nones   EditorWindows   edits   set_close_hooks   quits   mainloops   destroy(   s   edits   filenames   root(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   testƒ  s    	


s   __main__("   s   syss   oss   res   imps   Tkinters   tkSimpleDialogs   tkMessageBoxs
   webbrowsers   idlevers
   WindowLists   SearchDialogs
   GrepDialogs   ReplaceDialogs   PyParses   configHandlers   idleConfs   aboutDialogs   textViews   configDialogs   TK_TABWIDTH_DEFAULTs   Nones   _find_modules   EditorWindows
   index2lines
   classifywss   tokenizes	   _tokenizes   IndentSearchers   prepstrs   keynamess   get_accelerators   fixwordbreakss   tests   __name__(   s
   index2lines   fixwordbreakss   get_accelerators   tkSimpleDialogs
   GrepDialogs   res   aboutDialogs   imps	   _tokenizes
   WindowLists   tokenizes   tests   idlevers   prepstrs
   classifywss   PyParses   EditorWindows   syss
   webbrowsers   textViews   IndentSearchers   TK_TABWIDTH_DEFAULTs   ReplaceDialogs   configDialogs   SearchDialogs   keynamess   _find_modules   idleConfs   tkMessageBoxs   os(    (    s1   /mit/python/lib/python2.3/idlelib/EditorWindow.pys   ?   sF   													ÿ ÿ ÿ ÿ ì			2		!				