AlkantarClanX12
Current Path : /proc/thread-self/root/lib64/python2.7/idlelib/ |
Current File : //proc/thread-self/root/lib64/python2.7/idlelib/macosxSupport.pyo |
� {fc @ s� d Z d d l Z d d l Z d d l m Z d d l Z d � Z d � Z d a d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d S( s5 A number of functions that enhance IDLE on Mac OSX. i����N( t pathc C s t j d t d d �t � S( Ns/ runningAsOSXApp() is deprecated, use isAquaTk()t stackleveli ( t warningst warnt DeprecationWarningt isAquaTk( ( ( s- /usr/lib64/python2.7/idlelib/macosxSupport.pyt runningAsOSXApp s c C s t j d t d d �t � S( Ns4 isCarbonAquaTk(root) is deprecated, use isCarbonTk()R i ( R R R t isCarbonTk( t root( ( s- /usr/lib64/python2.7/idlelib/macosxSupport.pyt isCarbonAquaTk s c C s� t j d k r~ | j j d d � } d | k r9 d a q� d | k rN d a q� d | j j d d d � k ru d a q� d a n d a d S( sl Initializes OS X Tk variant values for isAquaTk(), isCarbonTk(), isCocoaTk(), and isXQuartz(). t darwint tkt windowingsystemt x11t xquartzt aquat othert AppKitt winfot servert .t cocoat carbonN( t syst platformR t callt _tk_type( R t ws( ( s- /usr/lib64/python2.7/idlelib/macosxSupport.pyt _initializeTkVariantTests s c C s t d k p t d k S( sK Returns True if IDLE is using a native OS X Tk (Cocoa or Carbon). R R ( R ( ( ( s- /usr/lib64/python2.7/idlelib/macosxSupport.pyR * s c C s t d k S( sb Returns True if IDLE is using a Carbon Aqua Tk (instead of the newer Cocoa Aqua Tk). R ( R ( ( ( s- /usr/lib64/python2.7/idlelib/macosxSupport.pyR 1 s c C s t d k S( s8 Returns True if IDLE is using a Cocoa Aqua Tk. R ( R ( ( ( s- /usr/lib64/python2.7/idlelib/macosxSupport.pyt isCocoaTk9 s c C s t d k S( s7 Returns True if IDLE is using an OS X X11 Tk. R ( R ( ( ( s- /usr/lib64/python2.7/idlelib/macosxSupport.pyt isXQuartz@ s c C sC t � r; | j j d d � } | d k r. t Sd j | � St Sd S( s2 Returns a string warning message if the Tk version in use appears to be one known to cause problems with IDLE. 1. Apple Cocoa-based Tk 8.5.7 shipped with Mac OS X 10.6 is unusable. 2. Apple Cocoa-based Tk 8.5.9 in OS X 10.7 and 10.8 is better but can still crash unexpectedly. t infot patchlevels 8.5.7s 8.5.9s� WARNING: The version of Tcl/Tk ({0}) in use may be unstable.\nVisit http://www.python.org/download/mac/tcltk/ for current information.N( s 8.5.7s 8.5.9( R R R t Falset format( R R ( ( s- /usr/lib64/python2.7/idlelib/macosxSupport.pyt tkVersionWarningG s c s# � f d � } | j d | � d S( s� 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 s"