509318396
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
ó
{fc           @   sN  d  Z  d d l Td 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 d l m Z d e f d „  ƒ  YZ d Z i d d 6Z d „  Z d e f d „  ƒ  YZ e d k rJd d l Z e j d d d d e ƒ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   GetKeysDialog(   t   GetCfgSectionNameDialog(   t   GetHelpSourceDialog(   t   TabbedPageSet(   t	   view_text(   t   macosxSupportt   ConfigDialogc           B   sÉ  e  Z d  e 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. dN d- „ Z0 d. „  Z1 d/ „  Z2 d0 „  Z3 d1 „  Z4 d2 „  Z5 d3 „  Z6 d4 „  Z7 d5 „  Z8 d6 „  Z9 d7 „  Z: d8 „  Z; d9 „  Z< d: „  Z= d; „  Z> d< „  Z? d= „  Z@ d> „  ZA d? „  ZB d@ „  ZC dA „  ZD dB „  ZE dC „  ZF dD „  ZG dE „  ZH dF „  ZI dG „  ZJ dH „  ZK dI „  ZL dJ „  ZM dK „  ZN dL „  ZO dM „  ZP RS(O   t    c         C   s�  t  j |  | ƒ | |  _ | r+ i  | _ n  |  j ƒ  |  j d d ƒ |  j | pT d ƒ |  j d | j ƒ  d | j	 ƒ  | sƒ d n d f ƒ i d6 d
 6d7 d 6d8 d 6d9 d 6d: d 6d; d 6d< d 6d= d 6d> d" 6d? d% 6d@ d( 6dA d+ 6dB d. 6dC d1 6|  _
 |  j ƒ  |  j ƒ  |  j d2 t d3 t ƒ |  j | ƒ |  j ƒ  |  j d4 |  j ƒ |  j j ƒ  |  j ƒ  |  j ƒ  | sŒ|  j ƒ  |  j ƒ  n  d5 S(D   s†   
        _htest - bool, change box location when running htest
        _utest - bool, don't wait_window when running unittest
        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   breakt   09s   Editor Breakpointt   consolet   10s   Shell Normal Textt   errort   11s   Shell Error Textt   stdoutt   12s   Shell Stdout Textt   stderrt   13s   Shell Stderr Textt   heightt   widtht   WM_DELETE_WINDOWN(   R   R   (   R   R   (   R   R   (   R   R   (   R   R   (   R   R   (   R   R   (   R   R   (   R   R   (   R   R    (   R!   R"   (   R#   R$   (   R%   R&   (   R'   R(   (   t   Toplevelt   __init__t   parentt   instance_dictt   wm_withdrawt	   configuret   titlet   geometryt   winfo_rootxt   winfo_rootyt   themeElementst   ResetChangedItemst   CreateWidgetst	   resizablet   FALSEt	   transientt   grab_sett   protocolt   Cancelt   tabPagest	   focus_sett   LoadConfigst   AttachVarCallbackst   wm_deiconifyt   wait_window(   t   selfR.   R2   t   _htestt   _utest(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR-      sJ    	
!





c         C   s�   t  |  d d d d d d g ƒ|  _ |  j j d t d t d	 t ƒ |  j ƒ  |  j ƒ  |  j ƒ  |  j	 ƒ  |  j
 ƒ  |  j ƒ  j d t ƒ d  S(
   Nt
   page_namess
   Fonts/Tabst   Highlightingt   Keyst   Generalt
   Extensionst   sidet   expandt   fill(   R   R?   t   packt   TOPt   TRUEt   BOTHt   CreatePageFontTabt   CreatePageHighlightt   CreatePageKeyst   CreatePageGeneralt   CreatePageExtensionst   create_action_buttonst   BOTTOM(   RE   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR8   O   s    	




c      
   C   sû   t  j ƒ  r i  } n i d d 6d d 6} t |  d d ƒ} t | d d ƒ} xu d |  j f d |  j f d |  j f d	 |  j f f D]= \ } } t | d
 | d | d t | �j	 d t
 d d ƒ q„ Wt | d d d d ƒj	 d t ƒ | j	 d t ƒ | S(   Ni   t   padxi   t   padyi   t   Okt   ApplyR>   t   Helpt   textt   commandt	   takefocusRM   i   R)   R   i    (   R   t   isAquaTkt   FrameR]   R^   R>   R_   t   ButtonR:   RP   t   LEFTRQ   RZ   (   RE   t   paddingArgst   outert   buttonst   txtt   cmd(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRY   [   s    	"c         C   sõ  |  j  } 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 t d |  j
 d d ƒ|  _" 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   reliefR`   s    Base Editor Font s    Indentation Width t   justifys   Font Face :R)   i   Rb   t   exportselections   <ButtonRelease-1>Ra   t   yscrollcommands   Size :t   variablet   onvaluei   t   offvaluei    t   Boldt   fonts,   AaBbCcDdEe
FfGgHhIiJjK
1234567890
#:+=(){}[]s   Python Standard: 4 Spaces!t   orientt
   horizontalt   tickintervalt   from_t   toi   RM   R[   R\   RN   RO   t   anchori   (   Rl   i
   R   (,   R.   t	   StringVart   fontSizet
   BooleanVart   fontBoldt   fontNamet   IntVart   spaceNumt   tkFontt   Fontt   editFontR?   t   pagest   framet
   LabelFramet   GROOVERd   t   LabelRf   t   ListboxR:   t   listFontNamet   bindt   OnListFontButtonReleaset	   Scrollbart   configt   yviewt   setR   t   Nonet   SetFontSamplet   optMenuFontSizet   Checkbuttont   SOLIDt   labelFontSamplet   Scalet   scaleSpaceNumRP   RR   RS   t   YRQ   t   Xt   W(   RE   R.   R‡   t	   frameFontt   frameIndentt   frameFontNamet   frameFontParamt   labelFontNameTitlet
   scrollFontt   labelFontSizeTitlet   checkFontBoldt   frameFontSamplet   frameIndentSizet   labelSpaceNumTitle(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRT   p   sn    			("""(c      !   C   sB  |  j  } 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	 dZ d d d d d d d t d d d t ƒ	|  _ |  j } | j d d „  ƒ | j d d „  ƒ 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 dw dx dy dz f  } x) | D]! } | j t | d | d ƒ q¢Wx; |  j D]0 } | dA „ }	 | j |  j | d dB |	 ƒ qÑW| j dC t ƒ t | d t d d ƒ|  _ t | ƒ }
 t |  j d dD dE |  j d d ƒ} t |  j |  j	 d  d d ƒ|  _! t" |
 dF |  j dG d d dH dE |  j# ƒ|  _$ t" |
 dF |  j dG d d dI dE |  j# ƒ|  _% |  j j& d ƒ t | d dJ dE |  j' ƒ} t( | d dK ƒ} t" | dF |  j dG d dE |  j) d dL ƒ|  _* t" | dF |  j dG d dE |  j) d dM ƒ|  _+ t | |  j d  dE d  ƒ|  _, t | |  j d  dE d  ƒ|  _- t | d dN dE |  j. ƒ|  _/ t( | dO d ƒ|  _0 | j1 dP t2 dQ dR dS dR dT t3 dU t4 ƒ | j1 dP t2 dQ dR dS dR dU t5 ƒ |  j j1 dP t6 dQ dR dS dR dT t3 dU t7 ƒ |
 j1 dP t6 dQ dR dS d ƒ |  j j1 dP t6 dQ dR dS dR dT t3 dU t4 ƒ | j1 dP t6 dT t3 dU t7 dQ dV dS dW ƒ |  j! j1 dP t6 dT t3 dU t7 dQ dV dS dX ƒ |  j$ j1 dP t2 dY t8 ƒ |  j% j1 dP t9 dY t: ƒ | j1 dP t; dU t7 dQ dR dS dR ƒ | j1 dP t6 dY t: dQ dR dS dR ƒ |  j* j1 dP t6 dY t: dQ dR ƒ |  j+ j1 dP t6 dY t: dQ dR dS d ƒ |  j, j1 dP t6 dU t7 dQ dR dS dR ƒ |  j- j1 dP t6 dU t7 dY t: dQ dR dS dR ƒ |  j/ j1 dP t6 dU t7 dQ dR dS dR ƒ |  j0 j1 dP t6 dU t7 dS dR ƒ | S({   NRI   R   i   Rm   R`   s    Custom Highlighting s    Highlighting Theme i   Ru   Rl   i   R
   R   t   hand2R*   i   R)   i   Rb   t   highlightthicknessi    t   wraps   <Double-Button-1>c         S   s   d S(   NR   (    (   t   e(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   <lambda>Ì   R
   s   <B1-Motion>c         S   s   d S(   NR   (    (   R¬   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR­   Í   R
   s   #you can click hereR   s   
R   s   #to choose itemst   defR   t    t   funcR   s   (param):
  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     breakpoint("line")R   s   

s    error R#   s   cursor |s   
 t   shellR!   R%   R'   c         S   s   |  j  j ƒ  j j | ƒ d  S(   N(   t   widgett   winfo_toplevelt   highlightTargetR’   (   t   eventt   elem(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   temâ   s    s   <ButtonPress-1>t   states   Choose Colour for :Ra   Rq   t   valuet
   Foregroundt
   Backgrounds   Save as New Custom Themes	   Select : s   a Built-in Themes   a Custom Themes   Delete Custom Themet   bdRM   R[   i   R\   RN   RO   i   i   i   R{   (   Rl   i   R
   (   s   #you can click hereR   (   s   
R   (   s   #to choose itemsR   (   s   
R   (   R®   R   (   R¯   R   (   R°   R   (   s   (param):
  R   (   s   """string"""R   (   s
   
  var0 = R   (   s   'string'R   (   s
   
  var1 = R   (   s
   'selected'R   (   s
   
  var2 = R   (   s   'found'R   (   s
   
  var3 = R   (   R±   R   (   R²   R   (   R“   R   (   s   )
R   (   s     breakpoint("line")R   (   s   

R   (   s    error R#   (   R¯   R   (   s   cursor |R   (   s   
 R   (   R³   R!   (   R¯   R   (   R%   R%   (   R¯   R   (   R'   R'   (   s   
R   (<   R.   R|   t   builtinThemet   customThemeR~   t   fgHilitet   colourR€   t   themeIsBuiltinR¶   R?   R†   R‡   Rˆ   R‰   t   TextR—   R:   t   NONEt   textHighlightSampleR�   t   insertt   ENDR6   t   tag_bindR�   t   DISABLEDRd   t   frameColourSetRe   t	   GetColourR   R“   t   optMenuHighlightTargett   Radiobuttont   SetColourSampleBindingt   radioFgt   radioBgR’   t   SaveAsNewThemeRŠ   t   SetThemeTypet   radioThemeBuiltint   radioThemeCustomt   optMenuThemeBuiltint   optMenuThemeCustomt   DeleteCustomThemet   buttonDeleteCustomThemet   new_custom_themeRP   Rf   RR   RS   R›   RQ   Rœ   t   Et   RIGHTR�   RZ   (   RE   R.   R‡   t   frameCustomt
   frameThemeR`   t   textAndTagst   txTat   elementR¹   t	   frameFgBgt   buttonSetColourt   buttonSaveCustomThemet   labelTypeTitle(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRU   ´   sÀ    				("+(""%%+%c         C   sõ  |  j  } 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- ƒ | j0 d d  d ƒ| j1 d d  d ƒ| j2 d! d d" d d# d d$ t3 ƒ |  j j2 d! d d" d d$ t4 ƒ | j2 d! d d" d d$ t5 ƒ | j2 d! d d" d d$ t6 ƒ |  j! j2 d! d d" d d$ t3 t5 ƒ |  j" j2 d! d d" d d$ t3 t5 ƒ |  j% j2 d! d d" d d$ t4 ƒ |  j& j2 d! d d" d d$ t4 ƒ |  j( j* d t/ d t. d t7 d d ƒ | j* d t/ d t. d t7 d d ƒ |
 d j* d t8 d t- d t7 ƒ |
 d j* d t8 d t. d t7 d d ƒ | S(%   NRJ   R   i   Rm   R`   s    Custom Key Bindings s	    Key Set s   Action - Key(s)Rv   Rb   Ro   s   <ButtonRelease-1>Ra   Rp   t   xscrollcommands   Get New Keys for SelectionRº   R[   R\   i    Rq   R»   i   s   Use a Built-in Key Sets   Use a Custom Key Sets   Delete Custom Key Sets   Save as New Custom Key SetRM   i   RN   RO   t   weightt   rowt   columnt
   columnspant   sticky(9   R.   R|   t   bindingTargett   builtinKeyst
   customKeysR~   t   keysAreBuiltint
   keyBindingR?   R†   R‡   Rˆ   R‰   Rd   RŠ   R�   t
   HORIZONTALR‹   R:   t   listBindingsR�   t   KeyBindingSelectedR�   R‘   t   xviewR’   Re   t
   GetNewKeysRÊ   t   buttonNewKeyst   rangeRÎ   t   SetKeysTypet   radioKeysBuiltint   radioKeysCustomR   R“   t   optMenuKeysBuiltint   optMenuKeysCustomt   DeleteCustomKeyst   buttonDeleteCustomKeyst   SaveAsNewKeySetRP   RZ   RR   RS   Rœ   Rf   t   columnconfiguret   rowconfiguret   gridR�   t   NSEWt   NSt   EWt   TrueRQ   (   RE   R.   R‡   RÝ   t   frameKeySetst   frameTargett   labelTargetTitlet   scrollTargetYt   scrollTargetXt   it   framest   buttonSaveCustomKeys(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRV   #  s~    		4("%("##%" &c         C   s1  |  j  } 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 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 ƒ} t | d d ƒ} t | d |  j d d ƒ} t | 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' 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- d" d. d" d/ t( ƒ | j& d, t' d- d" d. d" d0 t) d/ t* ƒ | j& d, t+ d1 t, d- d" d. d" ƒ |
 j& d, t- d1 t, d- d" d. d" ƒ |	 j& d, t- d1 t, d- d" d. d" ƒ | j& d, t+ d1 t, d- d" d. d" ƒ | j& d, t- d1 t, d- d" d. d" ƒ | j& d, t- d1 t, d- d" d. d" ƒ | j& d, t+ d1 t, d- d" d. d" ƒ | j& d, t- d1 t. d- d2 d. d" ƒ | j& d, t- d1 t. d. d" ƒ | j& d, t- d1 t. d- d2 d. d" ƒ | j& d, t- d1 t. d. d" ƒ | j& d, t+ d1 t, d- d" d. d" ƒ | j& d, t- d1 t. d. d" ƒ | j& d, t- d1 t. d. d" ƒ | j& d, t- d1 t. d. d" ƒ | j& d, t- d- d" d. d" d/ t/ ƒ | j& d, t' d- d" d. d" d0 t) d/ t* ƒ | j& d, t- d1 t, d/ t/ ƒ |  j j& d, t+ d1 t. d0 t) d/ t* ƒ |  j! j& d, t' d1 t, d. d" ƒ |  j# j& d, t' d1 t, ƒ |  j% j& d, t' d1 t, d. d" ƒ | S(3   NRK   R   i   Rm   R`   s    Startup Preferences s    Autosave Preferences s    Additional Help Sources s
   At StartupRq   R»   i   Ra   s   Open Edit Windowi    s   Open Shell Windows   At Start of Run (F5)  s   Prompt to Saves	   No Prompts$   Initial Window Size  (in characters)t   Widtht   textvariableR*   i   t   Heights   Default Source Encodingt   locales   Locale-defineds   utf-8s   UTF-8t   noneR“   R)   i   Rb   Ro   Rp   s   <ButtonRelease-1>t   EditRº   i   t   Addt   RemoveRM   R[   R\   RO   RN   R{   i
   (0   R.   R|   t   winWidtht	   winHeightR�   t   startupEditt   autoSavet   encodingR~   t   userHelpBrowsert   helpBrowserR?   R†   R‡   Rˆ   R‰   Rd   RŠ   RÎ   Rø   t   EntryR�   R‹   R:   t   listHelpR�   R‘   R’   R�   t   HelpSourceSelectedRe   RÊ   t   HelpListItemEditt   buttonHelpListEditt   HelpListItemAddt   buttonHelpListAddt   HelpListItemRemovet   buttonHelpListRemoveRP   RQ   Rœ   RR   RS   Rf   R�   RÜ   RÛ   R›   (   RE   R.   R‡   t   frameRunt	   frameSavet   frameWinSizet   frameEncodingt	   frameHelpt   labelRunChoiceTitlet   radioStartupEditt   radioStartupShellt   labelRunSaveTitlet   radioSaveAskt   radioSaveAutot   labelWinSizeTitlet   labelWinWidthTitlet   entryWinWidtht   labelWinHeightTitlet   entryWinHeightt   labelEncodingTitlet   radioEncLocalet   radioEncUTF8t   radioEncNonet   frameHelpListt   frameHelpListButtonst   scrollHelpList(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRW   p  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" ƒ d  S(   Nt   w(#   R}   t   trace_variablet   VarChanged_fontR€   R   R‚   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_startupEditR  t   VarChanged_autoSaveR  t   VarChanged_encoding(   RE   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRB   ã  s$    c         C   sŸ   x˜ |  j  |  j |  j |  j |  j |  j |  j |  j |  j |  j	 |  j
 |  j |  j |  j |  j |  j |  j |  j f D]$ } | j d | j ƒ  d d ƒ qs Wd  S(   NR>  i    i   (   R}   R€   R   R‚   RÂ   R¿   RÀ   RÃ   R¶   Rð   Rí   Rî   Rï   R  R  R  R  R  t   trace_vdeletet   trace_vinfo(   RE   t   var(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   remove_var_callbacks÷  s    c         G   ss   |  j  j ƒ  } |  j d d d | ƒ |  j j ƒ  } |  j d d d | ƒ |  j j ƒ  } |  j d d d | ƒ d S(   sÎ   When one font attribute changes, save them all, as they are
        not independent from each other. In particular, when we are
        overriding the default font, we need to write out everything.
        t   maint   EditorWindowRu   s	   font-sizes	   font-boldN(   R€   t   gett   AddChangedItemR}   R   (   RE   t   paramsR»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR@    s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRT  t   Indents
   num-spaces(   R‚   RV  RW  (   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRA    s    c         G   s   |  j  ƒ  d  S(   N(   t   OnNewColourSet(   RE   RX  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRB    s    c         G   sÔ   |  j  j ƒ  } | d k r� t j d d d ƒ d k rO |  j d d d d ƒ n  |  j d d d | ƒ |  j j d d	 d
 d ƒ nE |  j d d d | ƒ |  j d d d d ƒ |  j j d d d
 d ƒ |  j ƒ  d  S(   Ns	   IDLE DarkRT  t   Themet   names   IDLE News   IDLE Classict   name2R`   s   New theme, see Helpt   fgs   #500000R
   t   black(   R¿   RV  R   t	   GetOptionRW  RÚ   R�   t   PaintThemeSample(   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRC    s    
c         G   sB   |  j  j ƒ  } | d k r> |  j d d d | ƒ |  j ƒ  n  d  S(   Ns   - no custom themes -RT  R[  R\  (   RÀ   RV  RW  Ra  (   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRD  "  s    c         G   sF   |  j  j ƒ  } |  j d d d | ƒ | r8 |  j ƒ  n
 |  j ƒ  d  S(   NRT  R[  t   default(   RÃ   RV  RW  RC  RD  (   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRE  (  s
    c         G   s   |  j  ƒ  d  S(   N(   t   SetHighlightTarget(   RE   RX  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRF  0  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    t   keyst   _cfgBindingst
   extensions(
   Rð   RV  Rî   Rò   t   ANCHORt   splitR   t   IsCoreBindingRW  t   GetExtnNameForEvent(   RE   RX  R»   t   keySetR·   t   extNamet   extKeybindSection(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRG  3  s    
c         G   s6   |  j  j ƒ  } |  j d d d | ƒ |  j | ƒ d  S(   NRT  RJ   R\  (   Rí   RV  RW  t   LoadKeysList(   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRH  ?  s    c         G   sE   |  j  j ƒ  } | d k rA |  j d d d | ƒ |  j | ƒ n  d  S(   Ns   - no custom keys -RT  RJ   R\  (   Rî   RV  RW  Rn  (   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRI  D  s    c         G   sF   |  j  j ƒ  } |  j d d d | ƒ | r8 |  j ƒ  n
 |  j ƒ  d  S(   NRT  RJ   Rb  (   Rï   RV  RW  RH  RI  (   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRJ  J  s
    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRT  RU  R*   (   R  RV  RW  (   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRK  R  s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRT  RU  R)   (   R  RV  RW  (   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRL  V  s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRT  RK   s   editor-on-startup(   R  RV  RW  (   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRM  Z  s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRT  RK   t   autosave(   R  RV  RW  (   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRN  ^  s    c         G   s)   |  j  j ƒ  } |  j d d d | ƒ d  S(   NRT  RU  R  (   R  RV  RW  (   RE   RX  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRO  b  s    c         C   s)   i i  d 6i  d 6i  d 6i  d 6|  _  d  S(   NRT  t	   highlightRd  Rf  (   t   changedItems(   RE   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR7   f  s    c         C   sL   t  | ƒ } | |  j | k r3 i  |  j | | <n  | |  j | | | <d  S(   N(   t   strRq  (   RE   t   typt   sectiont   itemR»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRW  o  s    c         C   s´   i i  d 6i  d 6i  d 6i  d 6} x‹ | D]ƒ } t  j d | ƒ } xh | D]` } i  | | | <t  j | j | ƒ } x3 | D]+ } t  j | j | | ƒ | | | | <qy WqH Wq) W| S(   NRT  Rp  Rd  Rf  Rb  (   R   t   GetSectionListt
   defaultCfgt   GetOptionListt   Get(   RE   t   dItemst
   configTypet   sectionsRt  t   optionst   option(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   GetDefaultItemsu  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Ã   RV  RÖ   R�   t   NORMALR×   RÊ   RÙ   RÕ   (   RE   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRÓ   �  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ï   RV  Rû   R�   R€  Rü   RÊ   Rþ   Rú   (   RE   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRø   Œ  s    c         C   sÆ  |  j  j t ƒ } |  j  j | ƒ } | j ƒ  d } |  j j ƒ  rU |  j j ƒ  } n |  j j ƒ  } t j	 ƒ  } | |  j
 d k r¼ |  j
 d | } x% | D] } | | j ƒ  | | <q› Wn  | j ƒ  } t |  d | | ƒ j }	 |	 r¢|  j j ƒ  rDd }
 |  j |
 ƒ } | s4|  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    Rd  s   Get New Keyssc   Your changes will be saved as a new Custom Key Set. Enter a name for your new Custom Key Set below.s    - (   Rò   t   indexRg  RV  Rh  Rï   Rí   Rî   R   t   GetCurrentKeySetRq  t   valuesR   t   resultt   GetNewKeysNamet
   select_sett   select_anchort   CreateNewKeySett   deleteRÇ   Rð   R’   (   RE   t	   listIndext   bindingt   bindNamet   currentKeySetNamet   currentBindingst   keySetChangesR·   t   currentKeySequencest   newKeyst   messaget	   newKeySet(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRõ   —  s<    c         C   s>   t  j d d ƒ t  j d d ƒ } t |  d | | ƒ j } | S(   Nt   userRd  Rb  s   New Custom Key Set(   R   Rv  R   R„  (   RE   R’  t	   usedNamesR“  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR…  »  s
    c         C   s)   |  j  d ƒ } | r% |  j | ƒ n  d  S(   Ns   New Key Set Name:(   R…  Rˆ  (   RE   t   newKeysName(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRÿ   Â  s    c         C   s   |  j  j d t ƒ d  S(   NRº   (   Rö   R�   R€  (   RE   R·   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRó   Ç  s    c   
      C   s#  |  j  j ƒ  r! |  j j ƒ  } n |  j j ƒ  } t j | ƒ } i  } x8 | D]0 } | d d !} d j | | ƒ } | | | <qL W| |  j d k rÆ |  j d | } x | D] } | | | | <q« Wn  |  j | | ƒ t j	 d d ƒ }	 |	 j
 ƒ  |  j j |	 | ƒ |  j  j d ƒ |  j ƒ  d  S(   Ni   iþÿÿÿR¯   Rd  R”  i    (   Rï   RV  Rí   Rî   R   t   GetCoreKeyst   joinRq  t   SaveNewKeySetRv  t   sortRü   t   SetMenuR’   Rø   (
   RE   t   newKeySetNamet   prevKeySetNamet   prevKeysR‘  R·   t	   eventNameR‹  R�  t   customKeyList(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRˆ  Ê  s&    
c   	      C   s<  d } d } |  j  j ƒ  r6 d } |  j  j t ƒ } n  t j | ƒ } | j ƒ  } | j ƒ  |  j  j d t	 ƒ xŽ | D]† } d j
 | | ƒ } | d d !} | |  j d k rà | |  j d | k rà |  j d | | } qà n  |  j  j t	 | d | ƒ qu W| r8|  j  j | ƒ |  j  j | ƒ |  j  j | ƒ n  d  S(   Ni    i   R¯   i   iþÿÿÿRd  s    - (   Rò   t   curselectionR�  Rg  R   t	   GetKeySetRd  Rš  R‰  RÈ   R˜  Rq  RÇ   t   seeR†  R‡  (	   RE   t
   keySetNamet   reselectR“  RŠ  Rk  t	   bindNamesRŒ  t   key(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRn  å  s(    
c         C   sR  |  j  j ƒ  } d } t j d | | d |  ƒs5 d  S|  j ƒ  t j d j | ƒ | |  j d k rw |  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 ƒ  |  j ƒ  d  S(   Ns0   Are you sure you wish to delete the key set %r ?s   Delete Key SetR.   Rd  R”  Rº   s   - no custom keys -i    RT  RJ   Rb  R\  (   Rî   RV  t   tkMessageBoxt   askyesnot   DeactivateCurrentConfigR   t   userCfgt   remove_sectionRq  t   SaveRv  Rš  Rú   R�   RÊ   Rü   R›  Rï   R’   Rw  Ry  Rí   t   SaveAllChangedConfigst   ActivateConfigChangesRø   (   RE   R¤  t   delmsgt   itemList(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRý   ü  s*    

##

c         C   sR  |  j  j ƒ  } d } t j d | | d |  ƒs5 d  S|  j ƒ  t j d j | ƒ | |  j d k rw |  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 ƒ  |  j ƒ  d  S(   Ns.   Are you sure you wish to delete the theme %r ?s   Delete ThemeR.   Rp  R”  Rº   s   - no custom themes -i    RT  R[  Rb  R\  (   RÀ   RV  R¨  R©  Rª  R   R«  R¬  Rq  R­  Rv  Rš  RÕ   R�   RÊ   R×   R›  RÃ   R’   Rw  Ry  R¿   R®  R¯  RÓ   (   RE   t	   themeNameR°  R±  (    (    s,   /usr/lib64/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 } |  j | ƒ } | s‰ d  S|  j | ƒ |  j	 j
 | ƒ q¼ |  j	 j
 | ƒ n  d  S(   Nt   bgR.   R2   s   Pick new colour for : t   initialcolors_   Your changes will be saved as a new Custom Theme. Enter a name for your new Custom Theme below.(   R¶   RV  RË   t   cgett   tkColorChoosert   askcolorRÃ   t   GetNewThemeNamet   CreateNewThemeRÂ   R’   (   RE   t   targett
   prevColourt	   rgbTuplett   colourStringR’  t   newTheme(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRÌ   6  s    	c         C   s¨   |  j  j ƒ  } |  j j d | ƒ |  j j ƒ  r7 d n d } |  j |  j j ƒ  d } |  j j | i | | 6� |  j	 j ƒ  } | d | } |  j
 d | | | ƒ d  S(   NR³  t
   foregroundt
   backgroundi    t   -Rp  (   RÂ   RV  RË   R�   RÁ   R6   R¶   RÆ   t
   tag_configRÀ   RW  (   RE   t	   newColourt   planet   sampleElementt   themet   themeElement(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRZ  J  s    c         C   s>   t  j d d ƒ t  j d d ƒ } t |  d | | ƒ j } | S(   NR”  Rp  Rb  s   New Custom Theme(   R   Rv  R   R„  (   RE   R’  R•  R¾  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR¸  T  s
    c         C   s)   |  j  d ƒ } | r% |  j | ƒ n  d  S(   Ns   New Theme Name:(   R¸  R¹  (   RE   t   newThemeName(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRÒ   [  s    c         C   sñ   |  j  j ƒ  r' d } |  j j ƒ  } n d } |  j j ƒ  } t j | | ƒ } | |  j d k r” |  j d | } x | D] } | | | | <qy Wn  |  j | | ƒ t j d d ƒ } | j	 ƒ  |  j
 j | | ƒ |  j  j d ƒ |  j ƒ  d  S(   NRb  R”  Rp  i    (   RÃ   RV  R¿   RÀ   R   t   GetThemeDictRq  t   SaveNewThemeRv  Rš  R×   R›  R’   RÓ   (   RE   RÈ  t	   themeTypeR²  R¾  t   themeChangesRá   t   customThemeList(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR¹  `  s     
c         C   s6   |  j  j t ƒ } |  j j | j ƒ  ƒ |  j ƒ  d  S(   N(   RŒ   RV  Rg  R€   R’   t   lowerR”   (   RE   R·   Ru   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRŽ   x  s    c         C   sr   |  j  j ƒ  } |  j j ƒ  r' t j n t j } | |  j j ƒ  | f } |  j j d | ƒ |  j	 j
 d | ƒ d  S(   NRu   (   R€   RV  R   Rƒ   t   BOLDR€  R}   R˜   R�   RÆ   R1   (   RE   R·   R€   t
   fontWeightt   newFont(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR”   }  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¶   RV  RÐ   R�   RÊ   RÑ   RÁ   R’   R€  t   SetColourSample(   RE   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRc  „  s    c         G   s   |  j  ƒ  d  S(   N(   RÒ  (   RE   t   args(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRÏ   �  s    c         C   sa   |  j  |  j j ƒ  d } |  j j ƒ  r/ d n d } |  j j | | ƒ } |  j j d | ƒ d  S(   Ni    R¿  RÀ  R³  (   R6   R¶   RV  RÁ   RÆ   t   tag_cgetRË   R�   (   RE   t   tagRÄ  RÂ   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRÒ  ’  s    c         C   s$  |  j  j ƒ  r! |  j j ƒ  } n |  j j ƒ  } xã |  j D]Ø } |  j | d } t j | | ƒ } | d k rŽ t j | d d d ƒ| d <n  | |  j d 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À  Rp  s   -foregroundR¿  s   -background(   RÃ   RV  R¿   RÀ   R6   R   t   GetHighlightRq  RÆ   RÂ  RÒ  (   RE   RÆ  t   elementTitleRá   t   colourst	   themeDict(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRa  ™  s"    c         C   s   |  j  ƒ  d  S(   N(   t   SetHelpListButtonStates(   RE   R·   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR   ®  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¡  R€  (   RE   (    (    s,   /usr/lib64/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Û  (   RE   t
   helpSource(    (    s,   /usr/lib64/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  R�  Rg  RÝ  R   R„  R‰  RÇ   Rß  RÛ  (   RE   t	   itemIndexRà  t   newHelpSource(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR!  Å  s    
c         C   sD   |  j  j t ƒ } |  j | =|  j  j | ƒ |  j ƒ  |  j ƒ  d  S(   N(   R  R�  Rg  RÝ  R‰  Rß  RÛ  (   RE   Rã  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR%  Ó  s
    

c      	   C   sp   i  |  j  d d <xX t d t |  j ƒ d ƒ D]: } |  j d d t | ƒ d j |  j | d d  ƒ ƒ q. Wd S(   s<   Clear and rebuild the HelpFiles section in self.changedItemsRT  t	   HelpFilesi   t   ;i   N(   Rq  R÷   t   lenRÝ  RW  Rr  R˜  (   RE   t   num(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRß  Ú  s
    #c   
      C   s9  t  t j |  ƒ ƒ } | j ƒ  x! | D] } |  j j t | ƒ q& Wt j |  d d ƒ } | d j	 ƒ  } | d } | d d k } |  j
 j | ƒ g  | D] } | j	 ƒ  ^ q™ } yC | j | ƒ }	 |  j j |	 ƒ |  j j |	 ƒ |  j j |	 ƒ Wn t k
 rn X|  j j d | ƒ |  j j | ƒ |  j ƒ  d  S(   NRT  RU  i    i   i   t   boldt   7t   8t   9R"   R$   R&   R(   t   14t   16t   18t   20t   22t   25t   29t   34t   40(   Rê  Rë  Rì  R"   R$   R&   R(   Rí  Rî  Rï  Rð  Rñ  Rò  Ró  Rô  Rõ  (   R±   Rƒ   t   familiesRš  RŒ   RÇ   RÈ   R   t   GetFontRÎ  R€   R’   R�  R£  R†  R‡  t
   ValueErrorR•   R›  R   R”   (
   RE   t   fontsRu   t   configuredFontR€   R}   R   t   st   lc_fontst   currentFontIndex(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   LoadFontCfgâ  s,    

	 
c         C   s5   t  j d d d d d d d ƒ} |  j j | ƒ d  S(   NRT  RY  s
   num-spacesRb  i   t   typet   int(   R   R`  R‚   R’   (   RE   R‚   (    (    s,   /usr/lib64/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(   NRT  R[  Rb  Rÿ  t   booli   Rp  R”  Rº   s   - no custom themes -i    R§  c            s   ˆ  j  |  d S(   Ni   (   R6   (   t   x(   RE   (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR­      R
   (   RÃ   R’   R   R`  t   CurrentThemeRV  Rv  Rš  RÖ   R›  RÕ   R�   RÊ   RÀ   R×   RÓ   R6   Rd  RÍ   Ra  Rc  (   RE   t   currentOptionR±  t
   themeNames(    (   RE   s,   /usr/lib64/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(   NRT  RJ   Rb  Rÿ  R  i   Rd  R”  Rº   s   - no custom keys -i    (   Rï   R’   R   R`  t   CurrentKeysRV  Rv  Rš  Rû   R›  Rú   R�   RÊ   Rî   Rü   Rø   Rn  (   RE   R  R±  R¤  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt
   LoadKeyCfg%  s,    




c      	   C   s  |  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 ƒƒ t j ƒ  |  _	 x( |  j	 D] } |  j
 j t | d	 ƒ qÞ W|  j ƒ  d  S(   NRT  RK   s   editor-on-startupRb  i   Rÿ  R  Ro  i    RU  R*   R   R)   R  R  (   R  R’   R   R`  R  R  R  R  t   GetAllExtraHelpSourcesListRÝ  R  RÇ   RÈ   RÛ  (   RE   t   helpItem(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   LoadGeneralCfgC  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  (   RE   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRA   X  s
    



c         C   sf   t  j d j | ƒ s- t  j d j | ƒ n  x2 | D]* } | | } t  j d j | | | ƒ q4 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
        Rd  N(   R   R«  t   has_sectiont   add_sectiont	   SetOption(   RE   R¤  Rk  R·   R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR™  h  s
    
c         C   sf   t  j d j | ƒ s- t  j d j | ƒ n  x2 | D]* } | | } t  j d j | | | ƒ q4 Wd S(   s—   
        save a newly created theme.
        themeName - string, the name of the new theme
        theme - dictionary containing the new theme
        Rp  N(   R   R«  R  R  R  (   RE   R²  RÆ  Rá   R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRÊ  t  s
    
c         C   sl   t  j | j | | ƒ rR t  j | j | | ƒ | k rR t  j | j | | ƒ Sn  t  j | j | | | ƒ S(   N(   R   Rw  t
   has_optionRy  R«  t   RemoveOptionR  (   RE   R{  Rt  Ru  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   SetUserValue€  s    c         C   s  t  j d j ƒ  xÄ |  j D]¹ } t } x� |  j | D]� } | d k rd t  j d j d ƒ t } n  xO |  j | | D]< } |  j | | | } |  j | | | | ƒ rv t } qv qv Wq5 W| r t  j | j ƒ  q q Wx% d d g D] } t  j | j ƒ  qå W|  j ƒ  |  j	 ƒ  d S(   s3   Save configuration changes to the user config file.RT  Rå  Rd  Rp  N(
   R   R«  R­  Rq  t   FalseR¬  R  R  R7   t   save_all_changed_extensions(   RE   R{  t   cfgTypeHasChangesRt  Ru  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR®  ˆ  s"    	
c         C   s+   |  j  j } x | D] } | j ƒ  q Wd  S(   N(   R.   R/   t   RemoveKeybindings(   RE   t   winInstancest   instance(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRª  ž  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/   Rd  t   ResetColorizert	   ResetFontt   set_notabs_indentwidtht   ApplyKeybindingst   reset_help_menu_entries(   RE   R  R  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR¯  ¥  s    



c         C   s   |  j  ƒ  |  j ƒ  d  S(   N(   t   grab_releaset   destroy(   RE   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR>   ¯  s    
c         C   s"   |  j  ƒ  |  j ƒ  |  j ƒ  d  S(   N(   R^   R  R  (   RE   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR]   ³  s    

c         C   s"   |  j  ƒ  |  j ƒ  |  j ƒ  d  S(   N(   Rª  R®  R¯  (   RE   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR^   ¸  s    

c      	   C   s6   |  j  j } t |  d d d t t j | d ƒ ƒd  S(   NR2   s   Help for IDLE preferencesR`   R
   (   R?   t   _current_pageR   t   help_commont
   help_pagesRV  (   RE   t   page(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR_   ½  s    c      
   C   s  |  j  } |  j j d j } t j d |  _ t j d |  _ |  j	 t
 ƒ |  _
 |  j ƒ  t |  ƒ |  _ | j d d d ƒ| j d d d ƒt | d |  j d d	 ƒ|  _ |  j j d
 |  j ƒ t | d |  j j ƒ} | j |  j _ t | d d d d ƒ|  _ |  j j d d d d d d ƒ | j d d d d d d ƒ |  j j d d d d d d d d d g ƒ | j d d d d ƒ i  |  _ d |  _ |  |  _ |  j |  _  d } x6 t! |  j" ƒ D]% } |  j# | ƒ | d | d } q¼W|  j j | ƒ |  j j$ d ƒ |  j d ƒ d S(   s  Part of the config dialog used for configuring IDLE extensions.

        This code is generic - it works for any and all IDLE extensions.

        IDLE extensions save their configuration options using idleConf.
        This code reads the current configuration using idleConf, supplies a
        GUI interface to change the configuration values, and saves the
        changes using idleConf.

        Not all changes take effect immediately - some may require restarting IDLE.
        This depends on each extension's implementation.

        All values are treated as text, and it is up to the user to supply
        reasonable values. The only exception to this are the 'enable*' options,
        which are boolean, and can be toggled with a True/False button.
        RL   Rf  i    Rç   i   i   t   listvariablet
   selectmodet   browses   <<ListboxSelect>>Ra   R*   iú   R)   Ré   Rè   Rë   t   nwst   nst   nsewR[   i
   R\   R
   t   {s   } N(%   R.   R?   R†   R‡   R   Rw  t   ext_defaultCfgR«  t   ext_userCfgt   registert   is_intt   load_extensionsR|   t   extension_namesR  R   R‹   t   extension_listR�   t   extension_selectedR�   R‘   R’   Rp   Rˆ   t   details_frameR  R1   t   config_frameR“   t   current_extensiont
   outerframet   tabbed_page_sett   sortedRf  t   create_extension_framet   selection_set(   RE   R.   R‡   t   scrollt	   ext_namest   ext_name(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRX   Â  s<    	
+			c   
      C   sæ  i  |  _  x' t j d t ƒ D] } g  |  j  | <q Wx¬|  j  D]¡} t |  j j | ƒ ƒ } g  | D] } | j d ƒ rb | ^ qb } x | D] } | j | ƒ qŠ W| | } x0| D](} |  j j	 | | d t
 ƒ} y" i t
 d 6t d 6| } d } WnG t k
 r>y t | ƒ } d } Wq?t k
 r:| } d } q?Xn Xy+ |  j j	 | | d | d t
 d	 | ƒ} Wn t k
 rƒ| } n Xt |  ƒ }	 |	 j t | ƒ ƒ |  j  | j i | d
 6| d 6| d	 6| d 6|	 d 6ƒ q² Wq= Wd S(   sA   Fill self.extensions with data from the default and user configs.t   active_onlyt   enablet   rawR  R  R  R   Rÿ  Rb  R\  R»   RR  N(   Rf  R   t   GetExtensionsR  R8  R+  Rx  t
   startswitht   removeRy  R  t   KeyErrorR   Rø  R“   R,  R|   R’   Rr  RÞ  (
   RE   R=  t   opt_listt   opt_namet   enablest   def_strt   def_objt   opt_typeR»   RR  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR/  ÷  sH    	
	

	
c         C   sÐ   |  j  j ƒ  } | r* |  j  j | ƒ } n  | d  k sE | |  j k r„ |  j r„ |  j j d d ƒ |  j |  j j ƒ  d  |  _ q„ n  | rÌ |  j j d | ƒ |  j | j	 d d d d d d ƒ | |  _ n  d  S(   NR`   R
   Ré   i    Rè   Rë   R)  (
   R1  R¡  RV  R“   R5  R3  R�   R4  t   grid_forgetR  (   RE   R·   t   newsel(    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR2  $  s    	#c         C   s~  t  |  j d d d d ƒ} | |  j | <| j } xFt |  j | ƒ D]1\ } } t | d | d ƒ} | j d | d d d	 t ƒ | d
 } | d d k rò t	 | d | d | d d d d d t
 d d d d ƒj d | d d d	 t d d ƒ qE | d d k rHt | d | d d d |  j d f ƒj d | d d d	 t d d ƒ qE t | d | ƒj d | d d d	 t d d ƒ qE Wd S(    s=   Create a frame holding the widgets to configure one extensionR)   iú   R*   R`   R\  Rè   Ré   i    Rë   RR  Rÿ  R  R  Rq   Rr   R  Rs   R  t   indicatoront   selectcolorR
   i   i   R[   i   R   t   validateR§  t   validatecommands   %PN(   t   VerticalScrolledFrameR3  R4  t   interiort	   enumerateRf  RŠ   R  t   NWR–   R:   R�   R  R.  R  (   RE   R=  t   ft
   entry_areaRè   t   optt   labelRR  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR9  2  s&    	 
c         C   sv   | d } | d } | d j  ƒ  j ƒ  p- | } | d j | ƒ | | k r` |  j j | | ƒ S|  j j | | | ƒ S(   NR\  Rb  RR  (   RV  t   stripR’   R,  R  R  (   RE   Rt  RW  R\  Rb  R»   (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   set_extension_valueL  s    

c         C   sm   t  } xJ |  j D]? } |  j | } x) | D]! } |  j | | ƒ r* t } q* q* Wq W| ri |  j j ƒ  n  d S(   s3   Save configuration changes to the user config file.N(   R  Rf  RZ  R  R,  R­  (   RE   t   has_changesR=  R}  RW  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR  X  s    N(Q   t   __name__t
   __module__R  R-   R8   RY   RT   RU   RV   RW   RB   RS  R@  RA  RB  RC  RD  RE  RF  RG  RH  RI  RJ  RK  RL  RM  RN  RO  R7   RW  R  RÓ   Rø   Rõ   R…  Rÿ   Ró   Rˆ  Rn  Rý   RØ   RÌ   RZ  R¸  RÒ   R¹  RŽ   R“   R”   Rc  RÏ   RÒ  Ra  R   RÛ  R#  R!  R%  Rß  Rþ  R  R  R	  R  RA   R™  RÊ  R  R®  Rª  R¯  R>   R]   R^   R_   RX   R/  R2  R9  RZ  R  (    (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR	      sš   5			D	o	M	s		
																							$									
																	!									
					5	-			sh  When you click either the Apply or Ok buttons, settings in this
dialog that are different from IDLE's default are saved in
a .idlerc directory in your home directory. Except as noted,
these changes apply to all versions of IDLE installed on this
machine. Some do not take affect until IDLE is restarted.
[Cancel] only cancels changes made since the last save.
s¨   
Highlighting:
The IDLE Dark color theme is new in October 2015.  It can only
be used with older IDLE releases if it is saved as a custom
theme, with a different name.
RI   c         C   s5   |  s
 t  Sy t |  ƒ t  SWn t k
 r0 t SXd S(   s(   Return 's is blank or represents an int'N(   R  R   Rø  R  (   Rû  (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyR.  v  s    
RQ  c           B   s   e  Z d  Z d „  Z RS(   sÞ   A pure Tkinter vertically scrollable frame.

    * Use the 'interior' attribute to place widgets inside the scrollable frame
    * Construct and pack/place/grid normally
    * This frame only allows vertical scrolling
    c      
      s0  t  j |  | | | Ž t |  d t ƒ} | j d t d t d t ƒ t |  d d d d d | j	 d	 d
 ƒ‰  ˆ  j d t
 d t d t ƒ | j d ˆ  j ƒ ˆ  j d ƒ ˆ  j d ƒ t  ˆ  ƒ |  _ ‰ ˆ  j d d d ˆ d t ƒ‰ ‡  ‡ f d †  } ˆ j d | ƒ ‡  ‡ ‡ f d †  } ˆ  j d | ƒ d  S(   NRv   RO   RM   RN   R¾   i    Rª   Rp   R*   ið   Ra   t   windowR{   c            s0   ˆ j  ƒ  ˆ j ƒ  f } ˆ  j d d | ƒ d  S(   Nt   scrollregions	   0 0 %s %s(   t   winfo_reqwidtht   winfo_reqheightR�   (   R·   RÜ  (   t   canvasRR  (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   _configure_interior�  s    s   <Configure>c            s8   ˆ j  ƒ  ˆ  j ƒ  k r4 ˆ  j ˆ d ˆ  j ƒ  ƒn  d  S(   NR*   (   R`  t   winfo_widtht   itemconfigure(   R·   (   Rb  RR  t   interior_id(    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   _configure_canvas£  s    (   Rd   R-   R�   t   VERTICALRP   R›   RÜ   R:   t   CanvasR’   Rf   RS   RR   R�   R‘   t   xview_movetot   yview_movetoRR  t   create_windowRT  R�   (   RE   R.   RÓ  t   kwt
   vscrollbarRc  Rg  (    (   Rb  RR  Rf  s,   /usr/lib64/python2.7/idlelib/configDialog.pyR-   ˆ  s     (   R\  R]  t   __doc__R-   (    (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyRQ  �  s   t   __main__s#   idlelib.idle_test.test_configdialogt	   verbosityi   t   exit(   t   run("   Ro  t   TkinterR¨  R¶  Rƒ   t   idlelib.configHandlerR   t   idlelib.dynOptionMenuWidgetR   t   idlelib.keybindingDialogR   t   idlelib.configSectionNameDialogR   t   idlelib.configHelpSourceEditR   t   idlelib.tabbedpagesR   t   idlelib.textViewR   t   idlelibR   R,   R	   R!  R"  R.  Rd   RQ  R\  t   unittestRT  R  t   idlelib.idle_test.htestRs  (    (    (    s,   /usr/lib64/python2.7/idlelib/configDialog.pyt   <module>   s6   
$ÿ ÿ ÿ ÿ ÿ X
	+