Sindbad~EG File Manager
�
%ΜgJ$ � � � d Z ddlmZ ddlZddlmZ ddlZdad� Zd� Z d� Z
d� Zd � Zd
� Z
d� Zd� Zd
� Zd� Zd� Zd� Zedk( rddlmZ edd�� yy)z3
A number of functions that enhance IDLE on macOS.
� )�
expanduserN)�platformc �L � t dk( r�ddlm} | rddlm}m} |d� t j � }|j j dd � }d
|v rdan+d|vrd
an$d|j j ddd� v rdanda|j � yd
ay# |$ r daY yw xY w)zu Initialize _tk_type for isXyzTk functions.
This function is only called once, when _tk_type is still None.
�darwinr )�testing)�requires�ResourceDenied�gui�cocoaN�tk�windowingsystem�x11�xquartz�aqua�other�AppKit�winfo�server�.�carbon)r �idlelib.__init__r �test.supportr r �_tk_type�tkinter�Tkr �call�destroy)r r r �root�wss �+/usr/local/lib/python3.12/idlelib/macosx.py�
_init_tk_typer! s� � � �8��
-��=�
����
�z�z�|��
�W�W�\�\�$� 1�
2���B�;� �H�
�2�
��H�
������g�x��=�
=��H��H����� � ��
��# "�
�"���
�s �B �B#�"B#c �J � t s
t � t dk( xs t dk( S )zK
Returns True if IDLE is using a native OS X Tk (Cocoa or Carbon).
r r �r r! � � r �isAquaTkr&