python (3.11.7)
    e$                         d Z ddlmZ ddlZddlmZ ddlZdad Zd Z	d Z
d Zd	 Zd
 Z
d Zd Zd
 Zd Zd Zd Zedk    rddlmZ  edd           dS dS )z3
A number of functions that enhance IDLE on macOS.
    )
expanduserN)platformc                  ^   t           dk    rddlm}  | r#ddlm}m} 	  |d           n# |$ r daY dS w xY wt          j                    }|j	        
                    dd	          }d
|v rdan*d|vrd
an#d|j	        
                    ddd          v rdanda|                                 nd
adS )zu Initialize _tk_type for isXyzTk functions.
    This function is only called once, when _tk_type is still None.
    darwinr   )testing)requiresResourceDeniedguicocoaNtkwindowingsystemx11xquartzaquaotherAppKitwinfoserver.carbon)r   idlelib.__init__r   test.supportr   r	   _tk_typetkinterTkr   calldestroy)r   r   r	   rootwss        B/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/idlelib/macosx.py
_init_tk_typer!      s    8
 	-,,,,, 	========
! 
 
 
"
 z||
W\\$ 1
2
2B;; HH
2
HH
gx==
=
=HHH
Fs   ) 44c                  X    t           st                       t           dk    p
t           dk    S )zK
    Returns True if IDLE is using a native OS X Tk (Cocoa or Carbon).
    r   r   r   r!        r    isAquaTkr&