;ò
�ü?c           @   sy   d  Z  d k Td k Z d e f d „  ƒ  YZ e d j o< e ƒ  Z d „  Z e	 e d d d	 e ƒi
 ƒ  e i ƒ  n d S(
   s~   
Dialog that allows user to specify a new config file section name.
Used to get new highlight theme and keybinding set names.
(   s   *Ns   GetCfgSectionNameDialogc           B   s;   t  Z d „  Z d „  Z d „  Z e d „ Z e d „ Z RS(   Nc         C   s>  t  i |  | ƒ |  i d d ƒ |  i d t d t ƒ |  i | ƒ |  i | ƒ |  i	 ƒ  |  i
 d |  i ƒ | |  _ | |  _ | |  _ d |  _ |  i ƒ  |  i ƒ  |  i ƒ  |  i i d |  i i ƒ  ƒ |  i d | i ƒ  | i ƒ  d |  i ƒ  d | i ƒ  | i ƒ  d |  i ƒ  d f ƒ |  i ƒ  |  i ƒ  d	 S(
   sŽ   
        message - string, informational message to display
        usedNames - list, list of names already in use for validity check
        s   borderwidthi   s   heights   widths   WM_DELETE_WINDOWs    s   +%d+%di   N(   s   Toplevels   __init__s   selfs   parents	   configures	   resizables   FALSEs   titles	   transients   grab_sets   protocols   Cancels   messages	   usedNamess   results   CreateWidgetss   withdraws   update_idletaskss   messageInfos   configs	   frameMains   winfo_reqwidths   geometrys   winfo_rootxs   winfo_widths   winfo_rootys   winfo_heights   winfo_reqheights	   deiconifys   wait_window(   s   selfs   parents   titles   messages	   usedNames(    (    s<   /mit/python/lib/python2.3/idlelib/configSectionNameDialog.pys   __init__	   s&     
				


[
c         C   sš  t  |  ƒ |  _ t  |  ƒ |  _ t |  d d d t ƒ|  _ |  i i d t d t	 d t
 ƒ t |  i d t d t d	 d
 d d
 d |  i ƒ|  _ t |  i d |  i d d ƒ} | i ƒ  |  i i d	 d
 d d
 ƒ | i d	 d
 d d
 ƒ t |  ƒ } | i d t d t ƒ t | d d d d d |  i ƒ|  _ |  i i d d d d d	 d
 d d
 ƒ t | d d d d d |  i ƒ|  _ |  i i d d d d d	 d
 d d
 ƒ d  S(   Ns   borderwidthi   s   reliefs   sides   expands   fills   anchors   justifys   padxi   s   padys   texts   textvariables   widthi   s   Oki   s   commands   rowi    s   columns   Canceli   (   s	   StringVars   selfs   names   fontSizes   Frames   SUNKENs	   frameMains   packs   TOPs   TRUEs   BOTHs   Messages   Ws   LEFTs   messages   messageInfos   Entrys	   entryNames	   focus_sets   frameButtonss   BOTTOMs   Xs   Buttons   Oks   buttonOks   grids   Cancels   buttonCancel(   s   selfs   frameButtonss	   entryName(    (    s<   /mit/python/lib/python2.3/idlelib/configSectionNameDialog.pys   CreateWidgets&   s$    !
%c         C   sÈ   d } |  i i ƒ  } | i ƒ  | o& t i d d d d d |  ƒ d } nt t | ƒ d j o* t i d d d d	 d
 d |  ƒ d } n7 | |  i j o& t i d d d d d |  ƒ d } n | Sd  S(   Ni   s   titles
   Name Errors   messages   No name specified.s   parenti    i   s)   Name too long. It should be no more than s   30 characters.s   This name is already in use.(	   s   nameOks   selfs   names   gets   strips   tkMessageBoxs	   showerrors   lens	   usedNames(   s   selfs   nameOks   name(    (    s<   /mit/python/lib/python2.3/idlelib/configSectionNameDialog.pys   NameOk:   s"    





c         C   s7   |  i ƒ  o& |  i i ƒ  i ƒ  |  _ |  i ƒ  n d  S(   N(   s   selfs   NameOks   names   gets   strips   results   destroy(   s   selfs   event(    (    s<   /mit/python/lib/python2.3/idlelib/configSectionNameDialog.pys   OkO   s    c         C   s   d |  _ |  i ƒ  d  S(   Ns    (   s   selfs   results   destroy(   s   selfs   event(    (    s<   /mit/python/lib/python2.3/idlelib/configSectionNameDialog.pys   CancelT   s    	(   s   __name__s
   __module__s   __init__s   CreateWidgetss   NameOks   Nones   Oks   Cancel(    (    (    s<   /mit/python/lib/python2.3/idlelib/configSectionNameDialog.pys   GetCfgSectionNameDialog   s
   			s   __main__c          C   s$   d } t t d d ƒ }  |  i GHd  S(   Ns    s   Get Names:   The information here should need to be word wrapped. Test.(   s   keySeqs   GetCfgSectionNameDialogs   roots   dlgs   result(   s   dlgs   keySeq(    (    s<   /mit/python/lib/python2.3/idlelib/configSectionNameDialog.pys   run[   s    		s   texts   Dialogs   command(   s   __doc__s   Tkinters   tkMessageBoxs   Toplevels   GetCfgSectionNameDialogs   __name__s   Tks   roots   runs   Buttons   packs   mainloop(   s   runs   GetCfgSectionNameDialogs   tkMessageBoxs   root(    (    s<   /mit/python/lib/python2.3/idlelib/configSectionNameDialog.pys   ?   s   	P		