403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python313/Lib/idlelib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python313/Lib/idlelib/__pycache__/config_key.cpython-313.opt-1.pyc
�

��i�<��`�SrSSKJrJrJrJr SSKJrJrJ	r	J
r
JrJr SSKJ
r
 SSKJr SSKrSSKrSr\"\R(\R*-5r\"S5rS	rS
rSr\\-\-\-\-\-rSr"S
S\5r"SS\5r\S:XaSSK J!r! \!"SSSS9 SSK"J#r# \#"\5 gg)z6
Dialog for building Tkinter accelerator key bindings
�)�Toplevel�Listbox�	StringVar�TclError)�Frame�Button�Checkbutton�Entry�Label�	Scrollbar)�
messagebox)�
_setup_dialogN)�F1�F2�F3�F4�F5�F6�F7�F8�F9�F10�F11�F12z~!@#%^&*()_-+={}[]|;:,.<>/?)�Tab�Space�Return)�	BackSpace�Delete�Insert)�Home�End�Page Up�	Page Down�
Left Arrow�Right Arrow�Up Arrow�
Down Arrowc�^�0SS_SS_SS_SS_S	S
_SS_S
S_SS_SS_SS_SS_SS_SS_SS_SS_SS _S!S"_0S#S$_S%S&_S'S(_S)S*_S+S,_S-S._S/S0_S1S2_S3S4_S5S6_S7S8_S9S:_S;S<_S=S>_S?S@_SASB_SCSD_ESESE0EnURX5nSFU;a$U[R;aUR5nSGU3$)Hz3Translate from keycap symbol to the Tkinter keysym.r�space�~�
asciitilde�!�exclam�@�at�#�
numbersign�%�percent�^�asciicircum�&�	ampersand�*�asterisk�(�	parenleft�)�
parenright�_�
underscore�-�minus�+�plus�=�equal�{�	braceleft�}�
braceright�[�bracketleft�]�bracketright�|�bar�;�	semicolon�:�colon�,�comma�.�period�<�less�>�greater�/�slash�?�questionr#�Priorr$�Nextr%�Leftr&�Rightr'�Upr(�Downr�ShiftzKey-)�get�string�ascii_lowercase�upper)�key�	modifiers�mappings   �'C:\Python313\\Lib\idlelib\config_key.py�
translate_keyrps���@�w�w�@���@�!�(�@�,/��@�69�,�@��	�@��}�@�.1�+�@�
�
�@� ��@�.1��@�
��	@�"�'�	@�,/�v�	@�8;�7�	@�

��@�
!��@�
�
�
@� #�>�
@�47�u�
@�
��@�!��@�+.�g�@�8;�8�@�
��@��I�@�(+�7�@�58�
�@�
�g�@� +�6�@�
��@�"/�w�@�
�t�@�*�6�@�49��@�G��+�+�c�
�C��)���v�'=�'=� =��i�i�k��
�#��<��c�r^�\rSrSrSrU4SjrSrSrSrSr	SSjr
S	rS
rSr
SrS
rSrSrU=r$)�GetKeysFrame�,zKey Sequence Errorc�>�[TU]U5 SUS'SUS'XlX lX0lSUl[
U5UlURRS5 UR5 /Ul
URH:n[
U5nURS5 URRU5 M< SUl
UR5 g)z�
parent - parent of this dialog
action - the name of the virtual event these keys will be
         mapped to
current_key_sequences - a list of all key sequence lists
         currently mapped to virtual events, for overlap checking
��borderwidth�sunken�relief�FN)�super�__init__�parent�action�current_key_sequences�resultr�
key_string�set�set_modifiers_for_platform�
modifier_varsrm�append�advanced�create_widgets)�selfr}r~r�modifier�variable�	__class__s      �ror|�GetKeysFrame.__init__1s����	���� ���]��!��X������%:�"����#�D�/��������B���'�'�)�������H� ���H��L�L������%�%�h�/�'���
����rqc�0�[R"U0UD6 g�N)r
�	showerror)r��args�kwargss   ror��GetKeysFrame.showerrorLs�����d�-�f�-rqc
��[USS9UlURRSSSSSS9 [URSURS3S	9nURS
S9 [URSURS
SS9nURSSSS9 [U5UlURRSSSSS9 0UlSn[URUR5HfupEURRXD5n[URURUXTSS9nURSUSS
S9 XpRU'US-
nMh [URSSS9nURSSSSS
S9 [!URSSSS9UlUR"R$"S/[&Q76 UR"R)S UR*5 UR"RSSSS!S"9 [-URS#UR"R.S$9n	UR"R1U	R2S%9 U	RSSSS!S"9 [5URS&UR6S'9UlUR8RSSSS(9 [US)S9UlUR:RSSSSSS9 [UR:SS*URS+3S,-S9n
U
RS
S9 [=UR:URS-9UlUR>RSS.9 [U5Ul UR@RSSSSS9 [UR@SS/S9nURSSSS09 [5XRBS1S29Ul"URDRSSS3SSS49 URC5 g)5N�keyseq_basic)�namer�nsew�)�row�column�sticky�padx�padyzNew keys for 'z' :��text�w)�anchor�left�grooverv)�justify�textvariableryrw�x)�ipadx�ipady�fill�)r�r�r�r�rz)�commandr�r��onvalue�offvalue)r�r�r�r�z�Select the desired modifier keys
above, and the final key from the
list on the right.

Use upper case Symbols when using
the Shift modifier.  (Letters will be
converted automatically.))r�r��)r�r��
columnspanr�r���
�single)�width�height�
selectmode�endz<ButtonRelease-1>�ns)r�r��rowspanr��vertical)�orientr�)�yscrollcommandz
Clear Keys)r�r�)r�r�r��keyseq_advancedzEnter new binding(s) for 'z' :
z2(These bindings will not be checked for validity!))r�)r�a�Key bindings are specified using Tkinter keysyms as
in these samples: <Control-f>, <Shift-F2>, <F12>,
<Control-space>, <Meta-less>, <Control-Alt-Shift-X>.
Upper case is used when the Shift modifier is present!

'Emacs style' multi-keystroke bindings are specified as
follows: <Control-x><Control-y>, where the first key
is the 'do-nothing' keybinding.

Multiple separate bindings for one action should be
separated by a space, eg., <Alt-v> <Meta-v>.)r�r�r��<< Basic Key Binding Entry)r�r��ew)r�r��stickr�r�)#r�frame_keyseq_basic�gridrr~�packr��frame_controls_basic�modifier_checkbuttons�ziprmr��modifier_labelrhr	�build_key_stringr�list_keys_final�insert�AVAILABLE_KEYS�bind�final_key_selectedr�yview�configr�r�
clear_key_seq�button_clear�frame_keyseq_advancedr
�
advanced_keys�frame_help_advanced�toggle_level�button_level)r��basic_title�
basic_keysr�r�r��label�check�
help_basic�scroll_keys_final�advanced_title�
help_advanceds            ror��GetKeysFrame.create_widgetsPs���"'��>�"B������$�$��1�V�+,�1�	%�	6��D�3�3�#1�$�+�+��c�!B�D�������$��4�2�2�F�(,����'(�*�
�	���a�q�s��3�%*�$�K��!��!�!�&�&�1�Q�v�A�&�N�&(��"���"%�d�n�n�d�6H�6H�"I��H��'�'�+�+�H�?�E��� 9� 9�(,�(=�(=�E�)1�b�R�E�
�J�J�1�V�!�C�J�@�38�&�&�x�0��a�K�F�#J��4�4�4�f�!<�=�
�	���A�a�A�A�c��J� '�t�'@�'@��.0�X� G������#�#�E�;�N�;����!�!�"5�t�7N�7N�O����!�!�a��1�T�!�J�%�d�&?�&?�-7�.2�.B�.B�.H�.H�J��	
���#�#�3D�3H�3H�#�I����1�Q��$��G�"�4�#<�#<�(4�+/�+=�+=�?���	
�����1�Q�1��=�&+�4�6G�%H��"��"�"�'�'�A�a��./�a�	(�	9��t�9�9�6�&@����
�U�$S�%Y�%Z�[��	���3��'�"�4�#=�#=�04���A��������S��)�$)��;�� �� � �%�%�!�A�f�1�%�M��d�6�6��@�	B�
�	���q��6��:�#�4�1B�1B�'C�E��������1�Q�d����K����rqc�d�[RS:Xa
/SQUlO	/SQUlSS0Ulg)a.Determine list of names of key modifiers for this platform.

The names are used to build Tk bindings -- it doesn't matter if the
keyboard has these keys; it matters if Tk understands them.  The
order is also important: key binding equality depends on it, so
config-keys.def must use the same ordering.
�darwin)rg�Control�Option�Command)r��Altrgr��CtrlN)�sys�platformrmr��r�s ror��'GetKeysFrame.set_modifiers_for_platform�s+���<�<�8�#�F�D�N�8�D�N�(�&�1��rqc�(�URRS5RS5(aUR5 URR	SS9 UR
R
5 URR
5 URR5 SUl
gUR5 URR	SS9 URR
5 URR
5 SUl
g)	z'Toggle between basic and advanced keys.r��Advancedr�r�TzAdvanced Key Binding Entry >>FN)
r��cget�
startswithr�r�r��liftr�r��	focus_setr�r�r�r�s ror��GetKeysFrame.toggle_level�s������"�"�6�*�5�5�j�A�A���� ����$�$�*F�$�G��&�&�+�+�-��$�$�)�)�+����(�(�*� �D�M���� ����$�$�*I�$�J��#�#�(�(�*��%�%�*�*�,�!�D�Mrqc�$�UR5 g)z3Handler for clicking on key in basic settings list.N)r��r��events  ror��GetKeysFrame.final_key_selected�s�����rqc��UR5=pURRS5nU(a[X25nUR	U5 UR
R
SSRU5S35 g)z2Create formatted string of modifiers plus the key.r�rYrAr[N)�
get_modifiersr�rhrpr�r�r��join)r��keylistrm�	final_keys    ror��GetKeysFrame.build_key_string�sg��"�0�0�2�2���(�(�,�,�X�6�	��%�i�;�I��N�N�9�%������a����� 1�2�!�4�5rqc��URVs/sHoR5PM nnUVs/sH
o3(dMUPM sn$s snfs snf)z9Return ordered list of modifiers that have been selected.)r�rh)r�r��mod_list�mods    ror��GetKeysFrame.get_modifiers�sB��37�3E�3E�F�3E�x�L�L�N�3E��F�'�/�x��3��x�/�/��G��/s�A�
A
�A
c���URRSS5 URRSS5 URHnUR	S5 M UR
R	S5 g)z#Clear modifiers and keys selection.rr��movetoz0.0rzN)r��select_clearr�r�r�r�)r�r�s  ror��GetKeysFrame.clear_key_seq�s\�����)�)�!�U�3����"�"�8�U�3��*�*�H��L�L���+������B�rqc�.�SUlURR5R5nU(dUR	UR
USS9 gUR(dURU5(aURU5(aXlg)NrzzNo key specified.��titler}�message)	r�r�rh�stripr��keyerror_titler��keys_ok�bind_ok)r��keyss  ro�ok�GetKeysFrame.ok�ss��������"�"�$�*�*�,����N�N��!4�!4�T�#6�
�
8���M�M�T�\�\�$�/�/�T�\�\�$�5G�5G��K�rqc��URRS5nUR5nURnURVVs/sHnUHnUPM M nnnURS5(dUR
X@SS9 gU(d"U[[-;aUR
X@SS9 gUS/:Xa'U[[-S-;aS	nUR
X@US9 gX;aS
nUR
X@US9 ggs snnf)
z�Validity check on user's 'basic' keybinding selection.

Doesn't check the string produced by the advanced dialog because
'modifiers' isn't set.
r�r[zMissing the final Key)r}rzNo modifier key(s) specified.rrg)rrzBThe shift modifier by itself may not be used with this key symbol.z'This key combination is already in use.TF)	r�rhr�rr�endswithr��
FUNCTION_KEYS�	MOVE_KEYS)	r�r
r�rmrr�rl�
key_sequences�msgs	         ror�GetKeysFrame.keys_ok�s&���(�(�,�,�X�6�	��&�&�(�	��#�#��,0�,F�,F�1�,F��(/���(/��,F�
�1��}�}�S�!�!��N�N�5�#:�
�
<�"���=�9�#<�<��N�N��#B�
�
D���G�9�$��#�i�/�2B�B�C�&�C��N�N��S�N�A���
"�;�C��N�N��S�N�A����'1s�C7c��URUS5nURX5 g![a(nURURUSU3S9 SnAgSnAff=f)z:Return True if Tcl accepts the new keys else show message.c��gr��rrqro�<lambda>�&GetKeysFrame.bind_ok.<locals>.<lambda>s��drqTz2The entered key sequence is not accepted.

Error: rNF)r��unbindrr�r)r�r
�binding�errs    ror	�GetKeysFrame.bind_oksj��
	��i�i��l�3�G�
�K�K��&����	��N�N��-�-�d� '�'*�e�-�
�
/���	�s�'�
A�A�A)r~r�r�r�r�rr�r�r�r�r�r�r�r�r�rmr}r�r�)�__name__�
__module__�__qualname__�__firstlineno__rr|r�r�r�r�r�r�r�r�rrr	�__static_attributes__�
__classcell__�r�s@rorsrs,sM���*�N��6.�W�r2�"�  �6�0�
 �	��>�rqrsc�z^�\rSrSrSSS.U4Sjjr\S5r\RS5rS
SjrS
Sjr	S	r
U=r$)�
GetKeysWindowiF)�_htest�_utestc�
>�[TU]U5 UR5 SUS'URSSS9 UR	5 UR5UR
5S-UR5S--
-nUR5U(d'UR5S-UR5S--
OS-nURSUSU35 URU5 [XU5=Uln	URSUR 5 [#U5n
[%U
S	S
UR&S9Ul[%U
SS
UR S9UlUR(R-S
S
SSS9 UR*R-S
SSSS9 U	R/SSSS9 U
R/SSS9 UR1U5 [3U5 UR55 U(d!UR75 UR95 gg)a�
parent - parent of this dialog
title - string which is the title of the popup dialog
action - string, the name of the virtual event these keys will be
         mapped to
current_key_sequences - list, a list of all key sequence lists
         currently mapped to virtual events, for overlap checking
_htest - bool, change box location when running htest
_utest - bool, do not wait when running unittest
r�rwF)r�r�rv�rC�WM_DELETE_WINDOW�OK�)r�r�r��Cancelr)r�r�r�r�r��topT�both)�side�expandr��bottomr�)r0r�N)r{r|�withdraw�	resizable�update_idletasks�winfo_rootx�winfo_width�winfo_reqwidth�winfo_rooty�winfo_height�winfo_reqheight�geometryrrs�frame�protocol�cancelrrr�	button_ok�
button_cancelr�r��	transientr�grab_set�	deiconify�wait_window)r�r}rr~rr&r'r��yr=�
frame_buttonsr�s           �ror|�GetKeysWindow.__init__s����	���� ��
�
����]�����e�5��1�����
�
�
�
!�� � �"�A�%��(;�(;�(=�q�(@�@�B��
�
�
�
!���"�"�$�a�'�$�*>�*>�*@�!�*C�C�!$�&��	
�
�
��!��A�a�S�k�"��
�
�5��)�$�8M�N�N��
�U��
�
�(�$�+�+�6��d��
��
�D�&'����:���#�M��)*�D�K�K�A���������!�!�!��<������A�a�a�a��@�
�
�
��d��
�8�����s��3����v���d���
�
����N�N������rqc�.�URR$r��r=r�r�s ror��GetKeysWindow.resultJs���z�z� � � rqc�$�XRlgr�rJ)r��values  ror�rKNs��!�
�
�rqc�x�URR5 UR5 UR5 gr�)r=r�grab_release�destroyr�s  ror�GetKeysWindow.okRs$���
�
�
�
���������rqc�R�SUlUR5 UR5 g)Nrz)r�rOrPr�s  ror?�GetKeysWindow.cancelWs������������rq)rAr@r=r�r�)rrrr r|�propertyr��setterrr?r!r"r#s@ror%r%sP���!��,�,�\�!��!��]�]�"��"��
�rqr%�__main__)�mainz!idlelib.idle_test.test_config_keyrvF)�	verbosity�exit)�run)$�__doc__�tkinterrrrr�tkinter.ttkrrr	r
rrr
�tkinter.simpledialogrrir�r�tuplerj�digits�
ALPHANUM_KEYS�PUNCTUATION_KEYS�WHITESPACE_KEYS�	EDIT_KEYSrr�rprsr%r�unittestrW�idlelib.idle_test.htestrZrrqro�<module>rgs����;�:�K�K��.�
�
�8�
��f�,�,�v�}�}�<�=�
��6�7��,��-�	�
6�	��"2�2�]�B�!�"�$-�.�09�:���(k�5�k�\@�H�@�F�z����	,���F�+��
��rq

Youez - 2016 - github.com/yon3zu
LinuXploit