Hacked By AnonymousFox

Current Path : /opt/alt/python33/lib64/python3.3/idlelib/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/idlelib/__pycache__/configSectionNameDialog.cpython-33.pyc

�
��f�c@s�dZddlTddljZGdd�de�Zedkr�ddlZej	ddd	d
d�e�Zdd�Z
eed
d�j�eed
dde
�j�ej�ndS(u
Dialog that allows user to specify a new config file section name.
Used to get new highlight theme and keybinding set names.
The 'return value' for the dialog, used two placed in configDialog.py,
is the .result attribute set in the Ok and Cancel methods.
i(u*NcBsV|EeZdZdd�Zdd�Zdd�Zddd�Zdd	d
�ZdS(uGetCfgSectionNameDialogcCs5tj||�|jdd�|jdtdt�|j|�|j|�|j�|jd|j	�||_
||_||_|j
�|j�|j�|jjd|jj��|jd|j�|j�d|j�d|j�|j�d|j�df�|j�|j�dS(	u�
        message - string, informational message to display
        used_names - string collection, names already in use for validity check
        uborderwidthiuheightuwidthuWM_DELETE_WINDOWu+%d+%diN(uToplevelu__init__u	configureu	resizableuFALSEutitleu	transientugrab_setuprotocoluCanceluparentumessageu
used_namesucreate_widgetsuwithdrawuupdate_idletasksumessageInfouconfigu	frameMainuwinfo_reqwidthugeometryuwinfo_rootxuwinfo_widthuwinfo_rootyuwinfo_heightuwinfo_reqheightu	deiconifyuwait_window(uselfuparentutitleumessageu
used_names((uD/opt/alt/python33/lib64/python3.3/idlelib/configSectionNameDialog.pyu__init__s,


			


		$
u GetCfgSectionNameDialog.__init__cCs�t|j�|_t|j�|_t|dddt�|_|jjdtdt	dt
�t|jdtdt
d	d
dd
d|j�|_t|jd
|jdd�}|j�|jjd	d
dd
�|jd	d
dd
�t|dd�}|jdt�t|ddddd|j�|_|jjdt
d	d
�t|ddddd|j�|_|jjdtd	d
�dS(NuborderwidthiureliefusideuexpandufilluanchorujustifyupadxiupadyutextutextvariableuwidthiuOkiucommanduCancel(u	StringVaruparentunameufontSizeuFrameuSUNKENu	frameMainupackuTOPuTRUEuBOTHuMessageuWuLEFTumessageumessageInfouEntryu	focus_setuBOTTOMuButtonuOkubuttonOkuCancelubuttonCanceluRIGHT(uselfu	entryNameuframeButtons((uD/opt/alt/python33/lib64/python3.3/idlelib/configSectionNameDialog.pyucreate_widgets)s$
u&GetCfgSectionNameDialog.create_widgetscCs�|jj�j�}|s:tjddddd|�not|�dkrutjdddddd|�d	}n4||jkr�tjdddd
d|�d	}n|S(u� After stripping entered name, check that it is a  sensible
        ConfigParser file section name. Return it if it is, '' if not.
        utitleu
Name ErrorumessageuNo name specified.uparentiu)Name too long. It should be no more than u30 characters.uuThis name is already in use.(unameugetustriputkMessageBoxu	showerrorulenu
used_names(uselfuname((uD/opt/alt/python33/lib64/python3.3/idlelib/configSectionNameDialog.pyuname_ok>s	
	uGetCfgSectionNameDialog.name_okcCs,|j�}|r(||_|j�ndS(N(uname_okuresultudestroy(uselfueventuname((uD/opt/alt/python33/lib64/python3.3/idlelib/configSectionNameDialog.pyuOkQs	uGetCfgSectionNameDialog.OkcCsd|_|j�dS(Nu(uresultudestroy(uselfuevent((uD/opt/alt/python33/lib64/python3.3/idlelib/configSectionNameDialog.pyuCancelWs	uGetCfgSectionNameDialog.CancelN(	u__name__u
__module__u__qualname__u__init__ucreate_widgetsuname_okuNoneuOkuCancel(u
__locals__((uD/opt/alt/python33/lib64/python3.3/idlelib/configSectionNameDialog.pyuGetCfgSectionNameDialog
s
uGetCfgSectionNameDialogu__main__u"idlelib.idle_test.test_config_nameu	verbosityiuexitcCs)ttdddh�}t|j�dS(NuGet Nameu�After the text entered with [Ok] is stripped, <nothing>, 'abc', or more that 30 chars are errors. Close with a valid entry (printed), [Cancel], or [X]uabc(uGetCfgSectionNameDialogurootuprinturesult(udlg((uD/opt/alt/python33/lib64/python3.3/idlelib/configSectionNameDialog.pyurunas	urunutextuuClick to begin dialog testucommandF(u__doc__utkinterutkinter.messageboxu
messageboxutkMessageBoxuTopleveluGetCfgSectionNameDialogu__name__uunittestumainuFalseuTkurooturunuMessageupackuButtonumainloop(((uD/opt/alt/python33/lib64/python3.3/idlelib/configSectionNameDialog.pyu<module>s
Q	

Hacked By AnonymousFox1.0, Coded By AnonymousFox