����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib64
/
python2.7
/
idlelib
/
Filename :
configSectionNameDialog.pyc
back
Copy
� {fc�����������@���s����d��Z��d�d�l�Td�d�l�Z�d�e�f�d�������YZ�e�d�k�r��d�d�l�Z�e�j�d�d�d �d �e��d�d�l �m �Z �e �e���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. The 'return value' for the dialog, used two placed in configDialog.py, is the .result attribute set in the Ok and Cancel methods. i����(���t���*Nt���GetCfgSectionNameDialogc�����������B���s>���e��Z�e�d����Z�d����Z�d����Z�d�d���Z�d�d���Z�RS(���c���������C���sA��t��j�|��|���|��j�d�d���|��j�d�t�d�t���|��j�|���|��j�|���|��j����|��j�d�|��j ���|�|��_ �|�|��_�|�|��_�|��j ����|��j����|��j����|��j�j�d�|��j�j������|��j�d�|�j����|�j����d�|��j����d�|�j����|�s|�j����d�|��j����d�n�d�f���|��j����|��j����d �S( ���s���� message - string, informational message to display used_names - string collection, names already in use for validity check _htest - bool, change box location when running htest t���borderwidthi���t���heightt���widtht���WM_DELETE_WINDOWs���+%d+%di���id���N(���t���Toplevelt���__init__t ���configuret ���resizablet���FALSEt���titlet ���transientt���grab_sett���protocolt���Cancelt���parentt���messaget ���used_namest���create_widgetst���withdrawt���update_idletaskst���messageInfot���configt ���frameMaint���winfo_reqwidtht���geometryt���winfo_rootxt���winfo_widtht���winfo_rootyt���winfo_heightt���winfo_reqheightt ���deiconifyt���wait_window(���t���selfR���R���R���R���t���_htest(����(����s7���/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyR��� ���s,���� 0 c���������C���s���t��|��j���|��_�t��|��j���|��_�t�|��d�d�d�t��|��_�|��j�j�d�t�d�t �d�t ���t�|��j�d�t�d�t �d �d �d�d �d�|��j��|��_�t�|��j�d �|��j�d�d��}�|�j����|��j�j�d �d �d�d ���|�j�d �d �d�d ���t�|��d�d��}�|�j�d�t���t�|�d�d�d�d�d�|��j��|��_�|��j�j�d�t �d �d ���t�|�d�d�d�d�d�|��j��|��_�|��j�j�d�t�d �d ���d��S(���NR���i���t���relieft���sidet���expandt���fillt���anchort���justifyt���padxi���t���padyt���textt���textvariableR���i���t���Oki���t���commandR���(���t ���StringVarR���t���namet���fontSizet���Framet���SUNKENR���t���packt���TOPt���TRUEt���BOTHt���Messaget���Wt���LEFTR���R���t���Entryt ���focus_sett���BOTTOMt���ButtonR.���t���buttonOkR���t���buttonCancelt���RIGHT(���R"���t ���entryNamet���frameButtons(����(����s7���/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyR���)���s$���� c���������C���s����|��j��j����j����}�|�s:�t�j�d�d�d�d�d�|����no�t�|���d�k�ru�t�j�d�d�d�d�d�d�|����d �}�n4�|�|��j�k�r��t�j�d�d�d�d �d�|����d �}�n��|�S(���s���� After stripping entered name, check that it is a sensible ConfigParser file section name. Return it if it is, '' if not. R���s ���Name ErrorR���s���No name specified.R���i���s)���Name too long. It should be no more than s���30 characters.t����s���This name is already in use.(���R1���t���gett���stript���tkMessageBoxt ���showerrort���lenR���(���R"���R1���(����(����s7���/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyt���name_ok=���s���� c���������C���s6���|��j�����}�|�r2�|�|��_�|��j����|��j����n��d��S(���N(���RK���t���resultt���grab_releaset���destroy(���R"���t���eventR1���(����(����s7���/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyR.���O���s ���� c���������C���s!���d�|��_��|��j����|��j����d��S(���NRE���(���RL���RM���RN���(���R"���RO���(����(����s7���/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyR���U���s���� N( ���t���__name__t ���__module__t���FalseR���R���RK���t���NoneR.���R���(����(����(����s7���/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyR��� ���s ��� t���__main__s"���idlelib.idle_test.test_config_namet ���verbosityi���t���exit(���t���run(���t���__doc__t���TkinterRH���R���R���RP���t���unittestt���mainRR���t���idlelib.idle_test.htestRW���(����(����(����s7���/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyt���<module>���s��� Q