Your IP : 52.14.223.136
3
� f�% � @ s� d Z ddlmZ ddlZddlmZ ddlZdadd� Zdd� Z d d
� Z
dd� Zd
d� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zedkr�dd lmZ ed!d"d#� dS )$z3
A number of functions that enhance IDLE on macOS.
� )�
expanduserN)�platformc C sj t dkrbtj� } | jjdd�}d|kr,dan,d|kr:dand| jjd d
d�krTdand
a| j� ndadS )zl
Initializes OS X Tk variant values for
isAquaTk(), isCarbonTk(), isCocoaTk(), and isXQuartz().
�darwin�tkZwindowingsystemZx11�xquartzZaqua�otherZAppKitZwinfoZserver�.�cocoa�carbonN)r �tkinterZTkr �call�_tk_typeZdestroy)�rootZws� r �3/opt/alt/python36/lib64/python3.6/idlelib/macosx.py�
_init_tk_type s
r c C s t s
t� t dkpt dkS )zK
Returns True if IDLE is using a native OS X Tk (Cocoa or Carbon).
r r
)r
r r r r r �isAquaTk% s r c C s t s
t� t dkS )zb
Returns True if IDLE is using a Carbon Aqua Tk (instead of the
newer Cocoa Aqua Tk).
r
)r
r r r r r �
isCarbonTk- s r c C s t s
t� t dkS )z8
Returns True if IDLE is using a Cocoa Aqua Tk.
r )r
r r r r r � isCocoaTk6 s r c C s t s
t� t dkS )z7
Returns True if IDLE is using an OS X X11 Tk.
r )r
r r r r r � isXQuartz>