ó
§xxTc           @   só   d  Z  d d l Td d l Z d d l Z d d l Z d d l Z d d l m Z d d l m	 Z	 d d l
 m Z d d l m Z d d l m Z d d	 l m Z d d
 l m Z d e f d „  ƒ  YZ e d k rï d d l m Z e e ƒ n  d S(   sè  IDLE Configuration Dialog: support user customization of IDLE by GUI

Customize font faces, sizes, and colorization attributes.  Set indentation
defaults.  Customize keybindings.  Colorization and keybindings can be
saved as user defined sets.  Select startup options including shell/editor
and default window size.  Define additional help sources.

Note that tab width in IDLE is currently fixed at eight due to Tk issues.
Refer to comments in EditorWindow autoindent code for details.

iÿÿÿÿ(   t   *N(   t   idleConf(   t   DynOptionMenu(   t   TabbedPageSet(   t   GetKeysDialog(   t   GetCfgSectionNameDialog(   t   GetHelpSourceDialog(   t   macosxSupportt   ConfigDialogc           B   s–  e  Z e d  „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d „  Z" d  „  Z# d! „  Z$ d" „  Z% d# „  Z& d$ „  Z' d% „  Z( d& „  Z) d' „  Z* d( „  Z+ d) „  Z, d* „  Z- d+ „  Z. d, „  Z/ dH d- „ Z1 d. „  Z2 d/ „  Z3 d0 „  Z4 d1 „  Z5 d2 „  Z6 d3 „  Z7 d4 „  Z8 d5 „  Z9 d6 „  Z: d7 „  Z; d8 „  Z< d9 „  Z= d: „  Z> d; „  Z? d< „  Z@ d= „  ZA d> „  ZB d? „  ZC d@ „  ZD dA „  ZE dB „  ZF dC „  ZG dD „  ZH dE „  ZI dF „  ZJ dG „  ZK RS(I   c         C   sz  t  j |  | ƒ |  j ƒ  |  j d d ƒ |  j d ƒ | rI i  | _ n  |  j d | j ƒ  d | j ƒ  | st d n d f ƒ i d3 d
 6d4 d 6d5 d 6d6 d 6d7 d 6d8 d 6d9 d 6d: d 6d; d" 6d< d% 6d= d( 6d> d+ 6d? d. 6|  _	 |  j
 ƒ  |  j ƒ  |  j d/ t d0 t ƒ |  j | ƒ |  j ƒ  |  j d1 |  j ƒ | |  _ |  j j ƒ  |  j ƒ  |  j ƒ  |  j ƒ  |  j ƒ  d2 S(@   sG   
        _htest - bool, change box location when running htest
        t   borderwidthi   s   IDLE Preferencess   +%d+%di   i   i–   t   normalt   00s   Normal Textt   keywordt   01s   Python Keywordst
   definitiont   02s   Python Definitionst   builtint   03s   Python Builtinst   commentt   04s   Python Commentst   stringt   05s   Python Stringst   hilitet   06s   Selected Textt   hitt   07s
   Found Textt   cursort   08t   Cursort   errort   09s
   Error Textt   consolet   10s   Shell Normal Textt   stdoutt   11s   Shell Stdout Textt   stderrt   12s   Shell Stderr Textt   heightt   widtht   WM_DELETE_WINDOWN(   R
   R   (   R   R   (   R   R   (   R   R   (   R   R   (   s   stringR   (   R   R   (   R   R   (   s   cursorR   (   s   errorR   (   R   R    (   s   stdoutR"   (   s   stderrR$   (   t   Toplevelt   __init__t   wm_withdrawt	   configuret   titlet   instance_dictt   geometryt   winfo_rootxt   winfo_rootyt   themeElementst   ResetChangedItemst   CreateWidgetst	   resizablet   FALSEt	   transientt   grab_sett   protocolt   Cancelt   parentt   tabPagest	   focus_sett   LoadConfigst   AttachVarCallbackst   wm_deiconifyt   wait_window(   t   selfR:   R,   t   _htest(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR)      sB    
!



	


c      	   C   s™  t  |  d d d d d g ƒ|  _ t |  d d ƒ} t j ƒ  rH i  } n i d d	 6d
 d 6} t | d d d |  j d t | �|  _ t | d d d |  j	 d t | �|  _
 t | d d d |  j d t | �|  _ |  j ƒ  |  j ƒ  |  j ƒ  |  j ƒ  |  j j d t d	 d ƒ |  j
 j d t d	 d ƒ |  j j d t d	 d ƒ | j d t ƒ t |  d d d d ƒj d t ƒ |  j j d t d t d t ƒ d  S(   Nt
   page_namess
   Fonts/Tabst   Highlightingt   Keyst   Generalt   padyi   i   t   padxi   t   textt   Okt   commandt	   takefocust   ApplyR9   t   sidei   R%   R	   i    t   expandt   fill(   R   R;   t   FrameR   t   isAquaTkt   ButtonRJ   R5   t   buttonOkRM   t   buttonApplyR9   t   buttonCancelt   CreatePageFontTabt   CreatePageHighlightt   CreatePageKeyst   CreatePageGeneralt   packt   LEFTt   BOTTOMt   TOPt   TRUEt   BOTH(   RA   t   frameActionButtonst   paddingArgs(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR3   J   s2    		



"c         C   sì  t  |  ƒ |  _ t |  ƒ |  _ t  |  ƒ |  _ t |  ƒ |  _ t j |  d+ ƒ |  _	 |  j
 j d j } t | d d d t d d	 ƒ} t | d d d t d d
 ƒ} t | ƒ } t | ƒ } t | d t d d ƒ} t | d d d t d t ƒ|  _ |  j j d |  j ƒ t | ƒ } | j d |  j j ƒ |  j j d | j ƒ t | d d ƒ} t | |  j d  d |  j ƒ|  _ t | d |  j d d d d d d d |  j ƒ}	 t | d t  d d ƒ}
 t |
 d d d t d |  j	 ƒ|  _! t | ƒ } t | d t d d ƒ} t" | d |  j d d d  d d! d d" d# ƒ|  _# | j$ d$ t d% d d& d d' t% d( t& ƒ | j$ d$ t d% d d& d d( t' ƒ | j$ d$ t( d% d d& d d( t) ƒ | j$ d$ t( d% d d& d d( t) ƒ | j$ d$ t( d) t* ƒ |  j j$ d$ t d' t% d( t) ƒ | j$ d$ t d( t' ƒ | j$ d$ t d) t* ƒ |  j j$ d$ t d) t* ƒ |	 j$ d$ t d) t* d% d* ƒ |
 j$ d$ t( d% d d& d d' t% d( t& ƒ |  j! j$ d' t% d( t& ƒ | j$ d$ t( d( t) ƒ | j$ d$ t( d) t* d% d ƒ |  j# j$ d$ t( d% d d( t) ƒ | S(,   Nt   courieri
   R
   s
   Fonts/TabsR	   i   t   reliefRI   s    Base Editor Font s    Indentation Width t   justifys   Font Face :R%   i   RL   t   exportselections   <ButtonRelease-1>RK   t   yscrollcommands   Size :t   variablet   onvaluei   t   offvaluei    t   Bolds,   AaBbCcDdEe
FfGgHhIiJjK
1234567890
#:+=(){}[]t   fonts   Python Standard: 4 Spaces!t   orientt
   horizontalt   tickintervalt   from_t   toi   RN   RH   RG   RO   RP   t   anchori   (   Rc   i
   s   normal(+   t	   StringVart   fontSizet
   BooleanVart   fontBoldt   fontNamet   IntVart   spaceNumt   tkFontt   Fontt   editFontR;   t   pagest   framet
   LabelFramet   GROOVERQ   t   LabelR\   t   ListboxR5   t   listFontNamet   bindt   OnListFontButtonReleaset	   Scrollbart   configt   yviewt   setR   t   Nonet   SetFontSamplet   optMenuFontSizet   Checkbuttont   SOLIDt   labelFontSamplet   Scalet   scaleSpaceNumR[   R_   R`   t   YR^   t   Xt   W(   RA   R~   t	   frameFontt   frameIndentt   frameFontNamet   frameFontParamt   labelFontNameTitlet
   scrollFontt   labelFontSizeTitlet   checkFontBoldt   frameFontSamplet   frameIndentSizet   labelSpaceNumTitle(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRW   o   sf    					("""(c          C   s  t  |  ƒ |  _ t  |  ƒ |  _ t |  ƒ |  _ t  |  ƒ |  _ t  |  ƒ |  _ t |  ƒ |  _ t  |  ƒ |  _ |  j	 j
 d j } t | d d d t d d ƒ} t | d d d t d d ƒ} t | d t d d d	 dW d d d d d d d t d d d t ƒ	|  _ |  j } | j d d „  ƒ | j d d „  ƒ dX dY dZ d[ d\ d] d^ d_ d` da db dc dd de df dg dh di dj dk dl dm dn do dp dq dr ds dt du dv f } x) | D]! } | j t | d | d ƒ q–Wx; |  j j ƒ  D]* } | j |  j | d d? | d@ „ ƒ qËW| j dA t ƒ t | d t d d ƒ|  _ t | ƒ } t |  j d dB dC |  j d d ƒ}	 t |  j |  j d  d d ƒ|  _! t" | dD |  j dE d d dF dC |  j# ƒ|  _$ t" | dD |  j dE d d dG dC |  j# ƒ|  _% |  j j& d ƒ t | d dH dC |  j' ƒ}
 t( | d dI ƒ} t" | dD |  j dE d dC |  j) d dJ ƒ|  _* t" | dD |  j dE d dC |  j) d dK ƒ|  _+ t | |  j d  dC d  ƒ|  _, t | |  j d  dC d  ƒ|  _- t | d dL dC |  j. ƒ|  _/ | j0 dM t1 dN dO dP dO dQ t2 dR t3 ƒ | j0 dM t1 dN dO dP dO dR t4 ƒ |  j j0 dM t5 dN dO dP dO dQ t2 dR t6 ƒ | j0 dM t5 dN dO dP d ƒ |  j j0 dM t5 dN dO dP dO dQ t2 dR t3 ƒ |	 j0 dM t5 dQ t2 dR t6 dN dS dP dT ƒ |  j! j0 dM t5 dQ t2 dR t6 dN dS dP dU ƒ |  j$ j0 dM t1 dV t7 ƒ |  j% j0 dM t8 dV t9 ƒ |
 j0 dM t: dR t6 dN dO dP dO ƒ | j0 dM t5 dV t9 dN dO dP dO ƒ |  j* j0 dM t5 dV t9 dN dO ƒ |  j+ j0 dM t5 dV t9 dN dO dP d ƒ |  j, j0 dM t5 dR t6 dN dO dP dO ƒ |  j- j0 dM t5 dR t6 dV t9 dN dO dP dO ƒ |  j/ j0 dM t5 dR t6 dN dO dP dO ƒ | S(w   NRD   R	   i   Rd   RI   s    Custom Highlighting s    Highlighting Theme i   Rl   Rc   i   t    R   t   hand2R&   i   R%   i   RL   t   highlightthicknessi    t   wraps   <Double-Button-1>c         S   s   d S(   Nt   break(    (   t   e(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   <lambda>Ã   s    s   <B1-Motion>c         S   s   d S(   NR¤   (    (   R¥   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR¦   Ä   s    s   #you can click hereR   s   
R
   s   #to choose itemst   defR   t    t   funcR   s   (param):s   
  s   """string"""R   s
   
  var0 = s   'string's
   
  var1 = s
   'selected'R   s
   
  var2 = s   'found'R   s
   
  var3 = t   listR   t   (RŠ   s   )

s    error R   s   cursor |s   
 t   shellR   R!   R#   s   <ButtonPress-1>c         S   s   |  j  j ƒ  j j | ƒ S(   N(   t   widgett   winfo_toplevelt   highlightTargetR‰   (   t   eventt   elem(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR¦   Ô   s   t   states   Choose Colour for :RK   Rh   t   valuet
   Foregroundt
   Backgrounds   Save as New Custom Themes	   Select : s   a Built-in Themes   a Custom Themes   Delete Custom ThemeRN   RH   i   RG   RO   RP   i   i   i   Rr   (   s   courieri   R    (   s   #you can click heres   comment(   s   
s   normal(   s   #to choose itemss   comment(   s   
s   normal(   R§   s   keyword(   R¨   s   normal(   s   funcs
   definition(   s   (param):s   normal(   s   
  s   normal(   s   """string"""s   string(   s
   
  var0 = s   normal(   s   'string's   string(   s
   
  var1 = s   normal(   s
   'selected's   hilite(   s
   
  var2 = s   normal(   s   'found's   hit(   s
   
  var3 = s   normal(   s   lists   builtin(   R«   s   normal(   s   Nones   builtin(   s   )

s   normal(   s    error s   error(   R¨   s   normal(   s   cursor |R   (   s   
 s   normal(   s   shells   console(   R¨   s   normal(   s   stdouts   stdout(   R¨   s   normal(   s   stderrs   stderr(   s   
s   normal(;   Rs   t   builtinThemet   customThemeRu   t   fgHilitet   colourRw   t   themeIsBuiltinR¯   R;   R}   R~   R   R€   t   TextRŽ   R5   t   NONEt   textHighlightSampleR„   t   insertt   ENDR1   t   keyst   tag_bindR‡   t   DISABLEDRQ   t   frameColourSetRS   t	   GetColourR   RŠ   t   optMenuHighlightTargett   Radiobuttont   SetColourSampleBindingt   radioFgt   radioBgR‰   t   SaveAsNewThemeR�   t   SetThemeTypet   radioThemeBuiltint   radioThemeCustomt   optMenuThemeBuiltint   optMenuThemeCustomt   DeleteCustomThemet   buttonDeleteCustomThemeR[   R\   R_   R`   R’   R^   R“   t   Et   RIGHTR”   R]   (   RA   R~   t   frameCustomt
   frameThemeRI   t   textAndTagst   txTat   elementt	   frameFgBgt   buttonSetColourt   buttonSaveCustomThemet   labelTypeTitle(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRX   ®   sš    											("+$(+""%%+%c         C   sì  t  |  ƒ |  _ t  |  ƒ |  _ t  |  ƒ |  _ t |  ƒ |  _ t  |  ƒ |  _ |  j j d j	 } t
 | d d d t d d ƒ} t
 | d d d t d d ƒ} t | ƒ } t | d d ƒ} t | ƒ } t | d	 t ƒ} t | d
 t d t ƒ|  _ |  j j d |  j ƒ | j d |  j j ƒ | j d |  j j ƒ |  j j d | j ƒ |  j j d | j ƒ t | d d d |  j d t ƒ|  _ g  t d ƒ D]$ } t | d d d d d d ƒ^ q�}	 t |	 d d |  j d d d |  j d d ƒ|  _  t |	 d d |  j d d d |  j d d ƒ|  _! t" |	 d |  j d  d d  ƒ|  _$ t" |	 d |  j d  d d  ƒ|  _% t |	 d d d d |  j& ƒ|  _' t |	 d d d d |  j( ƒ}
 | j) d t* d d d d d t+ d t, ƒ | j) d t* d d d d d t, ƒ |  j j) d t* d t- d d d d ƒ | j) d t. d d d d d t+ d t, ƒ | j/ d d  d ƒ| j0 d d  d ƒ| j1 d! d d" d d# d d$ t2 ƒ |  j j1 d! d d" d d$ t3 ƒ | j1 d! d d" d d$ t4 ƒ | j1 d! d d" d d$ t5 ƒ |  j  j1 d! d d" d d$ t2 t4 ƒ |  j! j1 d! d d" d d$ t2 t4 ƒ |  j$ j1 d! d d" d d$ t3 ƒ |  j% j1 d! d d" d d$ t3 ƒ |  j' j) d t. d t- d t6 d d ƒ |
 j) d t. d t- d t6 d d ƒ |	 d j) d t7 d t, d t6 ƒ |	 d j) d t7 d t- d t6 d d ƒ | S(%   NRE   R	   i   Rd   RI   s    Custom Key Bindings s	    Key Set s   Action - Key(s)Rm   RL   Rf   s   <ButtonRelease-1>RK   Rg   t   xscrollcommands   Get New Keys for SelectionR²   RH   RG   i    Rh   R³   i   s   Use a Built-in Key Sets   Use a Custom Key Sets   Delete Custom Key Sets   Save as New Custom Key SetRN   i   RO   RP   t   weightt   rowt   columnt
   columnspant   sticky(8   Rs   t   bindingTargett   builtinKeyst
   customKeysRu   t   keysAreBuiltint
   keyBindingR;   R}   R~   R   R€   RQ   R�   R†   t
   HORIZONTALR‚   R5   t   listBindingsR„   t   KeyBindingSelectedR‡   Rˆ   t   xviewR‰   RS   t
   GetNewKeysRÂ   t   buttonNewKeyst   rangeRÆ   t   SetKeysTypet   radioKeysBuiltint   radioKeysCustomR   RŠ   t   optMenuKeysBuiltint   optMenuKeysCustomt   DeleteCustomKeyst   buttonDeleteCustomKeyst   SaveAsNewKeySetR[   R]   R_   R`   R“   R\   t   columnconfiguret   rowconfiguret   gridR”   t   NSEWt   NSt   EWt   TrueR^   (   RA   R~   RÔ   t   frameKeySetst   frameTargett   labelTargetTitlet   scrollTargetYt   scrollTargetXt   it   framest   buttonSaveCustomKeys(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRY     sp    		4

("%("##%" &c         C   sê  t  |  ƒ |  _ t  |  ƒ |  _ t  |  ƒ |  _ t |  ƒ |  _ t |  ƒ |  _ t  |  ƒ |  _ t |  ƒ |  _	 t  |  ƒ |  _
 |  j j d j } t | d d d t d d ƒ} t | d d d t d d ƒ} t | d d d t ƒ} t | d d d t ƒ} t | d d d t ƒ} t | d d d t d d ƒ} t | d d	 ƒ} t | d
 |  j d d d |  j d d ƒ}	 t | d
 |  j d d d |  j d d ƒ}
 t | d d ƒ} t | d
 |  j d d d |  j d d ƒ} t | d
 |  j d d d |  j d d ƒ} t | d d d ƒ} t | d d ƒ} t | d |  j d d ƒ} t | d d ƒ} t | d |  j d d ƒ} t | d d d ƒ} t | d |  j d d ƒ} t | d d ƒ} t | d
 |  j d d d d ƒ} t | d
 |  j d d  d d! ƒ} t | d
 |  j d d" d d# ƒ} t | ƒ } t | ƒ } t | ƒ } t | d$ d% d& t d' t ƒ|  _ | j d |  j j ƒ |  j j d( | j ƒ |  j j d) |  j ƒ t | d d* d+ t d d, d |  j  ƒ|  _! t | d d- d d, d |  j" ƒ|  _# t | d d. d+ t d d, d |  j$ ƒ|  _% | j& d/ t' d0 d% d1 d% d2 t( ƒ | j& d/ t' d0 d% d1 d% d2 t( ƒ | j& d/ t' d0 d% d1 d% d2 t( ƒ | j& d/ t' d0 d% d1 d% d2 t( ƒ | j& d/ t' d0 d% d1 d% d2 t( ƒ | j& d/ t' d0 d% d1 d% d3 t) d2 t* ƒ | j& d/ t+ d4 t, d0 d% d1 d% ƒ |
 j& d/ t- d4 t, d0 d% d1 d% ƒ |	 j& d/ t- d4 t, d0 d% d1 d% ƒ | j& d/ t+ d4 t, d0 d% d1 d% ƒ | j& d/ t- d4 t, d0 d% d1 d% ƒ | j& d/ t- d4 t, d0 d% d1 d% ƒ | j& d/ t+ d4 t, d0 d% d1 d% ƒ | j& d/ t- d4 t. d0 d5 d1 d% ƒ | j& d/ t- d4 t. d1 d% ƒ | j& d/ t- d4 t. d0 d5 d1 d% ƒ | j& d/ t- d4 t. d1 d% ƒ | j& d/ t+ d4 t, d0 d% d1 d% ƒ | j& d/ t- d4 t. d0 d5 d1 d% ƒ | j& d/ t+ d4 t, d0 d% d1 d% ƒ | j& d/ t- d4 t. d1 d% ƒ | j& d/ t- d4 t. d1 d% ƒ | j& d/ t- d4 t. d1 d% ƒ | j& d/ t- d0 d% d1 d% d2 t/ ƒ | j& d/ t' d0 d% d1 d% d3 t) d2 t* ƒ | j& d/ t- d4 t, d2 t/ ƒ |  j j& d/ t+ d4 t. d3 t) d2 t* ƒ |  j! j& d/ t' d4 t, d1 d% ƒ |  j# j& d/ t' d4 t, ƒ |  j% j& d/ t' d4 t, d1 d% ƒ | S(6   NRF   R	   i   Rd   RI   s    Startup Preferences s    Autosave Preferences s    Additional Help Sources s
   At StartupRh   R³   i   RK   s   Open Edit Windowi    s   Open Shell Windows   At Start of Run (F5)  s   Prompt to Saves	   No Prompts   Initial Window Sizes     (in characters)t   Widtht   textvariableR&   i   t   Heights   Paragraph reformats    width (in characters)s   Default Source Encodingt   locales   Locale-defineds   utf-8s   UTF-8t   noneRŠ   R%   i   RL   Rf   Rg   s   <ButtonRelease-1>t   EditR²   i   t   Addt   RemoveRN   RH   RG   RP   RO   Rr   i
   (0   Rs   t   winWidtht	   winHeightt	   paraWidthRx   t   startupEditt   autoSavet   encodingRu   t   userHelpBrowsert   helpBrowserR;   R}   R~   R   R€   RQ   R�   RÆ   Rï   t   EntryR†   R‚   R5   t   listHelpR‡   Rˆ   R‰   R„   t   HelpSourceSelectedRS   RÂ   t   HelpListItemEditt   buttonHelpListEditt   HelpListItemAddt   buttonHelpListAddt   HelpListItemRemovet   buttonHelpListRemoveR[   R^   R“   R_   R`   R\   R”   RÓ   RÒ   R’   (   RA   R~   t   frameRunt	   frameSavet   frameWinSizet   frameParaSizet   frameEncodingt	   frameHelpt   labelRunChoiceTitlet   radioStartupEditt   radioStartupShellt   labelRunSaveTitlet   radioSaveAskt   radioSaveAutot   labelWinSizeTitlet   labelWinWidthTitlet   entryWinWidtht   labelWinHeightTitlet   entryWinHeightt   labelParaWidthTitlet   entryParaWidtht   labelEncodingTitlet   radioEncLocalet   radioEncUTF8t   radioEncNonet   frameHelpListt   frameHelpListButtonst   scrollHelpList(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRZ   L  s¸    			
		
	"""""("""""""""""""(%c         C   s¦  |  j  j d |  j ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j	 j d |  j
 ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j j d |  j ƒ |  j j d |  j  ƒ |  j! j d |  j" ƒ |  j# j d |  j$ ƒ |  j% j d |  j& ƒ d  S(   Nt   w('   Rt   t   trace_variablet   VarChanged_fontSizeRw   t   VarChanged_fontNameRv   t   VarChanged_fontBoldRy   t   VarChanged_spaceNumR¹   t   VarChanged_colourR¶   t   VarChanged_builtinThemeR·   t   VarChanged_customThemeRº   t   VarChanged_themeIsBuiltinR¯   t   VarChanged_highlightTargetRç   t   VarChanged_keyBindingRä   t   VarChanged_builtinKeysRå   t   VarChanged_customKeysRæ   t   VarChanged_keysAreBuiltinR  t   VarChanged_winWidthR  t   VarChanged_winHeightR  t   VarChanged_paraWidthR  t   VarChanged_startupEditR  t   VarChanged_autoSaveR  t   VarChanged_encoding(   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR>   ¼  s&    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   Nt   maint   EditorWindows	   font-size(   Rt   t   gett   AddChangedItem(   RA   t   paramsR³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR;  Ñ  s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRN  RO  Rl   (   Rw   RP  RQ  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR<  Õ  s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRN  RO  s	   font-bold(   Rv   RP  RQ  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR=  Ù  s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRN  t   Indents
   num-spaces(   Ry   RP  RQ  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR>  Ý  s    c         G   s   |  j  ƒ  d  S(   N(   t   OnNewColourSet(   RA   RR  (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR?  á  s    c         G   s3   |  j  j ƒ  } |  j d d d | ƒ |  j ƒ  d  S(   NRN  t   Themet   name(   R¶   RP  RQ  t   PaintThemeSample(   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR@  ä  s    c         G   sB   |  j  j ƒ  } | d k r> |  j d d d | ƒ |  j ƒ  n  d  S(   Ns   - no custom themes -RN  RU  RV  (   R·   RP  RQ  RW  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRA  é  s    c         G   sF   |  j  j ƒ  } |  j d d d | ƒ | r8 |  j ƒ  n
 |  j ƒ  d  S(   NRN  RU  t   default(   Rº   RP  RQ  R@  RA  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRB  ï  s
    c         G   s   |  j  ƒ  d  S(   N(   t   SetHighlightTarget(   RA   RR  (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRC  ÷  s    c         G   s•   |  j  j ƒ  } |  j j ƒ  } |  j j t ƒ j ƒ  d } t j | ƒ rb |  j d | | | ƒ n/ t j	 | ƒ } | d } |  j d | | | ƒ d  S(   Ni    RÀ   t   _cfgBindingst
   extensions(
   Rç   RP  Rå   Ré   t   ANCHORt   splitR   t   IsCoreBindingRQ  t   GetExtnNameForEvent(   RA   RR  R³   t   keySetR°   t   extNamet   extKeybindSection(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRD  ú  s    
c         G   s6   |  j  j ƒ  } |  j d d d | ƒ |  j | ƒ d  S(   NRN  RE   RV  (   Rä   RP  RQ  t   LoadKeysList(   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRE    s    c         G   sE   |  j  j ƒ  } | d k rA |  j d d d | ƒ |  j | ƒ n  d  S(   Ns   - no custom keys -RN  RE   RV  (   Rå   RP  RQ  Rc  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRF    s    c         G   sF   |  j  j ƒ  } |  j d d d | ƒ | r8 |  j ƒ  n
 |  j ƒ  d  S(   NRN  RE   RX  (   Ræ   RP  RQ  RE  RF  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRG    s
    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRN  RO  R&   (   R  RP  RQ  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRH    s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRN  RO  R%   (   R  RP  RQ  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRI    s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRN  t   FormatParagrapht	   paragraph(   R  RP  RQ  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRJ  !  s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRN  RF   s   editor-on-startup(   R  RP  RQ  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRK  %  s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRN  RF   t   autosave(   R  RP  RQ  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRL  )  s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRN  RO  R  (   R  RP  RQ  (   RA   RR  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRM  -  s    c         C   s)   i i  d 6i  d 6i  d 6i  d 6|  _  d  S(   NRN  t	   highlightRÀ   R[  (   t   changedItems(   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR2   1  s    c         C   sL   t  | ƒ } | |  j | k r3 i  |  j | | <n  | |  j | | | <d  S(   N(   t   strRh  (   RA   t   typet   sectiont   itemR³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRQ  9  s    c         C   sº   i i  d 6i  d 6i  d 6i  d 6} x‘ | j  ƒ  D]ƒ } t j d | ƒ } xh | D]` } i  | | | <t j | j | ƒ } x3 | D]+ } t j | j | | ƒ | | | | <q WqN Wq/ W| S(   NRN  Rg  RÀ   R[  RX  (   RÀ   R   t   GetSectionListt
   defaultCfgt   GetOptionListt   Get(   RA   t   dItemst
   configTypet   sectionsRk  t   optionst   option(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   GetDefaultItems?  s    "1c         C   s›   |  j  j ƒ  rK |  j j d t ƒ |  j j d t ƒ |  j j d t ƒ nL |  j j d t ƒ |  j j d t ƒ |  j j d t ƒ |  j j d t ƒ d  S(   NR²   (	   Rº   RP  RÎ   R‡   t   NORMALRÏ   RÂ   RÑ   RÍ   (   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRË   K  s    c         C   s›   |  j  j ƒ  rK |  j j d t ƒ |  j j d t ƒ |  j j d t ƒ nL |  j j d t ƒ |  j j d t ƒ |  j j d t ƒ |  j j d t ƒ d  S(   NR²   (	   Ræ   RP  Rò   R‡   Rw  Ró   RÂ   Rõ   Rñ   (   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRï   V  s    c         C   sÖ  |  j  j t ƒ } |  j  j | ƒ } | j ƒ  d } |  j j ƒ  rU |  j j ƒ  } n |  j j ƒ  } t j	 ƒ  } | |  j
 d j ƒ  k rÈ |  j
 d | } x+ | j ƒ  D] } | | j ƒ  | | <q§ Wn  | j ƒ  } t |  d | | ƒ j }	 |	 r²|  j j ƒ  rTd d }
 |  j |
 ƒ } | sD|  j  j | ƒ |  j  j | ƒ d  S|  j | ƒ n  |  j  j | ƒ |  j  j | | d |	 ƒ |  j  j | ƒ |  j  j | ƒ |  j j |	 ƒ n  |  j  j | ƒ |  j  j | ƒ d  S(   Ni    RÀ   s   Get New Keyss4   Your changes will be saved as a new Custom Key Set. s/   Enter a name for your new Custom Key Set below.s    - (   Ré   t   indexR\  RP  R]  Ræ   Rä   Rå   R   t   GetCurrentKeySetRh  RÀ   t   valuesR   t   resultt   GetNewKeysNamet
   select_sett   select_anchort   CreateNewKeySett   deleteR¾   Rç   R‰   (   RA   t	   listIndext   bindingt   bindNamet   currentKeySetNamet   currentBindingst   keySetChangesR°   t   currentKeySequencest   newKeyst   messaget	   newKeySet(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRì   a  s>    c         C   s>   t  j d d ƒ t  j d d ƒ } t |  d | | ƒ j } | S(   Nt   userRÀ   RX  s   New Custom Key Set(   R   Rm  R   R{  (   RA   R‰  t	   usedNamesRŠ  (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR|  …  s
    	c         C   s)   |  j  d ƒ } | r% |  j | ƒ n  d  S(   Ns   New Key Set Name:(   R|  R  (   RA   t   newKeysName(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRö   Œ  s    c         C   s   |  j  j d t ƒ d  S(   NR²   (   Rí   R‡   Rw  (   RA   R°   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRê   ‘  s    c   
      C   s5  |  j  j ƒ  r! |  j j ƒ  } n |  j j ƒ  } t j | ƒ } i  } x> | j ƒ  D]0 } | d d !} t j | | ƒ } | | | <qR W| |  j	 d j ƒ  k rØ |  j	 d | } x% | j ƒ  D] } | | | | <q½ Wn  |  j
 | | ƒ t j d d ƒ }	 |	 j ƒ  |  j j |	 | ƒ |  j  j d ƒ |  j ƒ  d  S(   Ni   iþÿÿÿRÀ   R‹  i    (   Ræ   RP  Rä   Rå   R   t   GetCoreKeysRÀ   R   t   joinRh  t   SaveNewKeySetRm  t   sortRó   t   SetMenuR‰   Rï   (
   RA   t   newKeySetNamet   prevKeySetNamet   prevKeysRˆ  R°   t	   eventNameR‚  R†  t   customKeyList(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR  ”  s&    
c   	      C   sH  d } d } |  j  j ƒ  r6 d } |  j  j t ƒ } n  t j | ƒ } | j ƒ  } | j ƒ  |  j  j d t	 ƒ xš | D]’ } t
 j | | ƒ } | d d !} | |  j d j ƒ  k rì | |  j d | j ƒ  k rì |  j d | | } qì n  |  j  j t	 | d | ƒ qu W| rD|  j  j | ƒ |  j  j | ƒ |  j  j | ƒ n  d  S(   Ni    i   i   iþÿÿÿRÀ   s    - (   Ré   t   curselectionRx  R\  R   t	   GetKeySetRÀ   R‘  R€  R¿   R   R�  Rh  R¾   t   seeR}  R~  (	   RA   t
   keySetNamet   reselectRŠ  R�  R`  t	   bindNamesRƒ  t   key(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRc  ¯  s(    
c         C   s<  |  j  j ƒ  } t j d d d | d |  ƒs3 d  St j d j | ƒ | |  j d k rk |  j d | =n  t j d j ƒ  t j	 d d ƒ } | j
 ƒ  | sÇ |  j j d t ƒ |  j j | d ƒ n |  j j | | d	 ƒ |  j j t j d
 j d d ƒ ƒ |  j j t j d
 j d d ƒ ƒ |  j ƒ  |  j ƒ  d  S(   Ns   Delete Key Sets   Are you sure you wish s   to delete the key set %r ?R:   RÀ   R‹  R²   s   - no custom keys -i    RN  RE   RX  RV  (   Rå   RP  t   tkMessageBoxt   askyesnoR   t   userCfgt   remove_sectionRh  t   SaveRm  R‘  Rñ   R‡   RÂ   Ró   R’  Ræ   R‰   Rn  Rp  Rä   RM   Rï   (   RA   R›  t   itemList(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRô   Æ  s&    	
##
c         C   s?  |  j  j ƒ  } t j d d d | f d |  ƒs6 d  St j d j | ƒ | |  j d k rn |  j d | =n  t j d j ƒ  t j	 d d ƒ } | j
 ƒ  | sÊ |  j j d t ƒ |  j j | d ƒ n |  j j | | d	 ƒ |  j j t j d
 j d d ƒ ƒ |  j j t j d
 j d d ƒ ƒ |  j ƒ  |  j ƒ  d  S(   Ns   Delete Themes   Are you sure you wish s   to delete the theme %r ?R:   Rg  R‹  R²   s   - no custom themes -i    RN  RU  RX  RV  (   R·   RP  RŸ  R   R   R¡  R¢  Rh  R£  Rm  R‘  RÍ   R‡   RÂ   RÏ   R’  Rº   R‰   Rn  Rp  R¶   RM   RË   (   RA   t	   themeNameR¤  (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRÐ   á  s&    	
##
c         C   sÄ   |  j  j ƒ  } |  j j d ƒ } t j d |  d d | d | ƒ \ } } | rÀ | | k rÀ |  j j ƒ  r­ d d } |  j | ƒ } | s� d  S|  j | ƒ |  j	 j
 | ƒ qÀ |  j	 j
 | ƒ n  d  S(   Nt   bgR:   R,   s   Pick new colour for : t   initialcolors2   Your changes will be saved as a new Custom Theme. s-   Enter a name for your new Custom Theme below.(   R¯   RP  RÃ   t   cgett   tkColorChoosert   askcolorRº   t   GetNewThemeNamet   CreateNewThemeR¹   R‰   (   RA   t   targett
   prevColourt	   rgbTuplett   colourStringR‰  t   newTheme(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRÄ   ü  s    c         C   s«   |  j  j ƒ  } |  j j d | ƒ |  j j ƒ  r: d } n d } |  j |  j j ƒ  d } |  j j | i | | 6� |  j	 j ƒ  } | d | } |  j
 d | | | ƒ d  S(   NR¦  t
   foregroundt
   backgroundi    t   -Rg  (   R¹   RP  RÃ   R‡   R¸   R1   R¯   R½   t
   tag_configR·   RQ  (   RA   t	   newColourt   planet   sampleElementt   themet   themeElement(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRT    s     	c         C   s>   t  j d d ƒ t  j d d ƒ } t |  d | | ƒ j } | S(   NR‹  Rg  RX  s   New Custom Theme(   R   Rm  R   R{  (   RA   R‰  RŒ  R±  (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR«    s
    	c         C   s)   |  j  d ƒ } | r% |  j | ƒ n  d  S(   Ns   New Theme Name:(   R«  R¬  (   RA   t   newThemeName(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRÊ   !  s    c         C   sý   |  j  j ƒ  r' d } |  j j ƒ  } n d } |  j j ƒ  } t j | | ƒ } | |  j d j ƒ  k r  |  j d | } x% | j ƒ  D] } | | | | <q… Wn  |  j | | ƒ t j	 d d ƒ } | j
 ƒ  |  j j | | ƒ |  j  j d ƒ |  j ƒ  d  S(   NRX  R‹  Rg  i    (   Rº   RP  R¶   R·   R   t   GetThemeDictRh  RÀ   t   SaveNewThemeRm  R‘  RÏ   R’  R‰   RË   (   RA   R»  t	   themeTypeR¥  R±  t   themeChangesRØ   t   customThemeList(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR¬  &  s     
c         C   s6   |  j  j t ƒ } |  j j | j ƒ  ƒ |  j ƒ  d  S(   N(   Rƒ   RP  R\  Rw   R‰   t   lowerR‹   (   RA   R°   Rl   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR…   >  s    c         C   su   |  j  j ƒ  } |  j j ƒ  r* t j } n	 t j } | |  j j ƒ  | f } |  j j d | ƒ |  j	 j
 d | ƒ d  S(   NRl   (   Rw   RP  Rv   Rz   t   BOLDRw  Rt   R�   R‡   R½   R+   (   RA   R°   Rw   t
   fontWeightt   newFont(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR‹   C  s    	c         C   s’   |  j  j ƒ  d k rN |  j j d t ƒ |  j j d t ƒ |  j j d ƒ n6 |  j j d t ƒ |  j j d t ƒ |  j j d ƒ |  j	 ƒ  d  S(   NR   R²   i   (
   R¯   RP  RÈ   R‡   RÂ   RÉ   R¸   R‰   Rw  t   SetColourSample(   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRY  M  s    c         G   s   |  j  ƒ  d  S(   N(   RÅ  (   RA   t   args(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRÇ   X  s    c         C   sd   |  j  |  j j ƒ  d } |  j j ƒ  r2 d } n d } |  j j | | ƒ } |  j j d | ƒ d  S(   Ni    R²  R³  R¦  (   R1   R¯   RP  R¸   R½   t   tag_cgetRÃ   R‡   (   RA   t   tagR·  R¹   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRÅ  [  s     	c         C   s0  |  j  j ƒ  r! |  j j ƒ  } n |  j j ƒ  } xï |  j j ƒ  D]Þ } |  j | d } t j | | ƒ } | d k r” t j | d d d ƒ| d <n  | |  j d j ƒ  k r|  j d | } | d | k rã | | d | d	 <n  | d
 | k r| | d
 | d <qn  |  j	 j
 | | � q@ W|  j ƒ  d  S(   Ni    R   R
   t   fgBgR¦  R³  Rg  s   -foregroundR²  s   -background(   Rº   RP  R¶   R·   R1   RÀ   R   t   GetHighlightRh  R½   Rµ  RÅ  (   RA   R¹  t   elementTitleRØ   t   colourst	   themeDict(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRW  c  s"    	c         C   s   |  j  ƒ  d  S(   N(   t   SetHelpListButtonStates(   RA   R°   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR  x  s    c         C   s    |  j  j ƒ  d k  r> |  j j d t ƒ |  j j d t ƒ n^ |  j  j ƒ  rv |  j j d t ƒ |  j j d t ƒ n& |  j j d t ƒ |  j j d t ƒ d  S(   Ni   R²   (   R  t   sizeR  R‡   RÂ   R  R˜  Rw  (   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRÎ  {  s    c         C   sh   t  |  d ƒ j } | rZ |  j j | d | d f ƒ |  j j t | d ƒ |  j ƒ  n  |  j ƒ  d  S(   Ns   New Help Sourcei    i   (	   R   R{  t   userHelpListt   appendR  R¾   R¿   t   UpdateUserHelpChangedItemsRÎ  (   RA   t
   helpSource(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR  ‡  s    c         C   s¨   |  j  j t ƒ } |  j | } t |  d d | d d | d ƒj } | sX | | k r\ d  S| |  j | <|  j  j | ƒ |  j  j | | d ƒ |  j ƒ  |  j	 ƒ  d  S(   Ns   Edit Help Sourcet   menuItemi    t   filePathi   (
   R  Rx  R\  RÐ  R   R{  R€  R¾   RÒ  RÎ  (   RA   t	   itemIndexRÓ  t   newHelpSource(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR  �  s    
c         C   sD   |  j  j t ƒ } |  j | =|  j  j | ƒ |  j ƒ  |  j ƒ  d  S(   N(   R  Rx  R\  RÐ  R€  RÒ  RÎ  (   RA   RÖ  (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR  œ  s
    

c      	   C   ss   i  |  j  d d <x[ t d t |  j ƒ d ƒ D]= } |  j d d t | ƒ t j |  j | d d  d ƒ ƒ q. Wd S(   s<   Clear and rebuild the HelpFiles section in self.changedItemsRN  t	   HelpFilesi   i   t   ;N(   Rh  Rî   t   lenRÐ  RQ  Ri  R   R�  (   RA   t   num(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRÒ  £  s    #c   	      C   sT  t  t j |  ƒ ƒ } | j ƒ  x! | D] } |  j j t | ƒ q& Wt j d d d d d ƒ} | j	 ƒ  } |  j
 j | ƒ g  | D] } | j	 ƒ  ^ q� } | | k rç | j | ƒ } |  j j | ƒ |  j j | ƒ |  j j | ƒ n  t j d d d d d d d	 ƒ} |  j j d | ƒ |  j j t j d d d d d d d ƒƒ |  j ƒ  d  S(   NRN  RO  Rl   RX  Rc   s	   font-sizeRj  t   intR    t   7t   8t   9R"   R$   t   13t   14t   16t   18t   20t   22s	   font-boldi    t   bool(   RÝ  RÞ  Rß  s   10s   11s   12Rà  Rá  Râ  Rã  Rä  Rå  (   Rª   Rz   t   familiesR‘  Rƒ   R¾   R¿   R   t	   GetOptionRÁ  Rw   R‰   Rx  Rš  R}  R~  RŒ   R’  Rv   R‹   (	   RA   t   fontsRl   t   configuredFontt   lc_configuredFontt   st   lc_fontst   currentFontIndexRt   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   LoadFontCfgª  s*    
		
c         C   s5   t  j d d d d d d d ƒ} |  j j | ƒ d  S(   NRN  RS  s
   num-spacesRX  i   Rj  RÜ  (   R   Rè  Ry   R‰   (   RA   Ry   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt
   LoadTabCfgÅ  s    c      	      sš  ˆ  j  j t j d d d d d d d ƒƒ t j ƒ  } ˆ  j  j ƒ  r× t j d d ƒ } | j ƒ  ˆ  j j	 | | ƒ t j d d ƒ } | j ƒ  | s½ ˆ  j
 j d	 t ƒ ˆ  j j d
 ƒ q9ˆ  j j	 | | d ƒ nb t j d d ƒ } | j ƒ  ˆ  j j	 | | ƒ t j d d ƒ } | j ƒ  ˆ  j j	 | | d ƒ ˆ  j ƒ  ˆ  j j ƒ  } | j d ‡  f d †  ƒ ˆ  j j	 | | d ƒ ˆ  j ƒ  ˆ  j ƒ  d  S(   NRN  RU  RX  Rj  Ræ  i   Rg  R‹  R²   s   - no custom themes -i    Rž  c            s   ˆ  j  |  d S(   Ni   (   R1   (   t   x(   RA   (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR¦   ç  s    (   Rº   R‰   R   Rè  t   CurrentThemeRP  Rm  R‘  RÎ   R’  RÍ   R‡   RÂ   R·   RÏ   RË   R1   RÀ   RÅ   RW  RY  (   RA   t   currentOptionR¤  t
   themeNames(    (   RA   s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   LoadThemeCfgË  s2    





c      	   C   s`  |  j  j t j d d d d d d d ƒƒ t j ƒ  } |  j  j ƒ  r× t j d d ƒ } | j ƒ  |  j j	 | | ƒ t j d d ƒ } | j ƒ  | s½ |  j
 j d	 t ƒ |  j j d
 ƒ q9|  j j	 | | d ƒ nb t j d d ƒ } | j ƒ  |  j j	 | | ƒ t j d d ƒ } | j ƒ  |  j j	 | | d ƒ |  j ƒ  t j ƒ  } |  j | ƒ d  S(   NRN  RE   RX  Rj  Ræ  i   RÀ   R‹  R²   s   - no custom keys -i    (   Ræ   R‰   R   Rè  t   CurrentKeysRP  Rm  R‘  Rò   R’  Rñ   R‡   RÂ   Rå   Ró   Rï   Rc  (   RA   Ró  R¤  R›  (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt
   LoadKeyCfgì  s,    




c      	   C   s2  |  j  j t j d d d d d d d ƒƒ |  j j t j d d d d d	 d d ƒƒ |  j j t j d d
 d d d ƒƒ |  j j t j d d
 d d d ƒƒ |  j j t j d d d d d ƒƒ |  j j t j d d
 d d d ƒƒ t j	 ƒ  |  _
 x( |  j
 D] } |  j j t | d	 ƒ qW|  j ƒ  d  S(   NRN  RF   s   editor-on-startupRX  i   Rj  Ræ  Rf  i    RO  R&   RÜ  R%   Rd  Re  R  R
  (   R  R‰   R   Rè  R  R  R  R  R  t   GetAllExtraHelpSourcesListRÐ  R  R¾   R¿   RÎ  (   RA   t   helpItem(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   LoadGeneralCfg
  s     


c         C   s6   |  j  ƒ  |  j ƒ  |  j ƒ  |  j ƒ  |  j ƒ  d S(   s„   
        load configuration from default and user config files and populate
        the widgets on the config dialog pages.
        N(   Rï  Rð  Rõ  R÷  Rú  (   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR=   "  s
    



c         C   sl   t  j d j | ƒ s- t  j d j | ƒ n  x8 | j ƒ  D]* } | | } t  j d j | | | ƒ q: Wd S(   s¤   
        save a newly created core key set.
        keySetName - string, the name of the new key set
        keySet - dictionary containing the new key set
        RÀ   N(   R   R¡  t   has_sectiont   add_sectionRÀ   t	   SetOption(   RA   R›  R`  R°   R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR�  1  s
    
c         C   sl   t  j d j | ƒ s- t  j d j | ƒ n  x8 | j ƒ  D]* } | | } t  j d j | | | ƒ q: Wd S(   s—   
        save a newly created theme.
        themeName - string, the name of the new theme
        theme - dictionary containing the new theme
        Rg  N(   R   R¡  Rû  Rü  RÀ   Rý  (   RA   R¥  R¹  RØ   R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR½  =  s
    
c         C   sl   t  j | j | | ƒ rR t  j | j | | ƒ | k rR t  j | j | | ƒ Sn  t  j | j | | | ƒ S(   N(   R   Rn  t
   has_optionRp  R¡  t   RemoveOptionRý  (   RA   Rr  Rk  Rl  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   SetUserValueI  s    c         C   s   t  j d j ƒ  xÖ |  j j ƒ  D]Å } t } xœ |  j | j ƒ  D]‡ } | d k rp t  j d j d ƒ t } n  xU |  j | | j ƒ  D]< } |  j | | | } |  j | | | | ƒ rˆ t } qˆ qˆ WqA W| r! t  j | j ƒ  q! q! Wx% d d g D] } t  j | j ƒ  q÷ W|  j	 ƒ  d S(   s3   Save configuration changes to the user config file.RN  RØ  RÀ   Rg  N(
   R   R¡  R£  Rh  RÀ   t   FalseR¢  Rý   R   R2   (   RA   Rr  t   cfgTypeHasChangesRk  Rl  R³   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   SaveAllChangedConfigsQ  s     	c         C   s1   |  j  j j ƒ  } x | D] } | j ƒ  q Wd  S(   N(   R:   R-   RÀ   t   RemoveKeybindings(   RA   t   winInstancest   instance(    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   DeactivateCurrentConfigf  s    c         C   sY   |  j  j j ƒ  } x@ | D]8 } | j ƒ  | j ƒ  | j ƒ  | j ƒ  | j ƒ  q Wd S(   s'   Dynamically apply configuration changesN(   R:   R-   RÀ   t   ResetColorizert	   ResetFontt   set_notabs_indentwidtht   ApplyKeybindingst   reset_help_menu_entries(   RA   R  R  (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   ActivateConfigChangesm  s    



c         C   s   |  j  ƒ  d  S(   N(   t   destroy(   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR9   w  s    c         C   s   |  j  ƒ  |  j ƒ  d  S(   N(   RM   R  (   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRJ   z  s    
c         C   s"   |  j  ƒ  |  j ƒ  |  j ƒ  d  S(   N(   R  R  R  (   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyRM   ~  s    

c         C   s   d  S(   N(    (   RA   (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   Helpƒ  s    N(L   t   __name__t
   __module__R  R)   R3   RW   RX   RY   RZ   R>   R;  R<  R=  R>  R?  R@  RA  RB  RC  RD  RE  RF  RG  RH  RI  RJ  RK  RL  RM  R2   RQ  Rv  RË   Rï   Rì   R|  Rö   Rê   R  Rc  Rô   RÐ   RÄ   RT  R«  RÊ   R¬  R…   RŠ   R‹   RY  RÇ   RÅ  RW  R  RÎ  R  R  R  RÒ  Rï  Rð  Rõ  R÷  Rú  R=   R�  R½  R   R  R  R  R9   RJ   RM   R  (    (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyR      s�   0	%	?	Y	E	p																										$													
													!									
			t   __main__(   t   run(   t   __doc__t   TkinterRŸ  R©  Rz   R   t   idlelib.configHandlerR   t   idlelib.dynOptionMenuWidgetR   t   idlelib.tabbedpagesR   t   idlelib.keybindingDialogR   t   idlelib.configSectionNameDialogR   t   idlelib.configHelpSourceEditR   t   idlelibR   R(   R   R  t   idlelib.idle_test.htestR  (    (    (    s@   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/idlelib/configDialog.pyt   <module>   s$   
$ÿ ÿ ÿ ÿ r