(root)
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.
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.
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 .
def tkVersionWarning(root):
    """
    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.
    """

    if isCocoaTk():
        patchlevel = root.tk.call('info', 'patchlevel')
        if patchlevel not in ('8.5.7', '8.5.9'):
            return False
        return ("WARNING: The version of Tcl/Tk ({0}) in use may"
                " be unstable.\n"
                "Visit https://www.python.org/download/mac/tcltk/"
                " for current information.".format(patchlevel))
    else:
        return False
def tkVersionWarning ( root ) : if isCocoaTk ( ) : patchlevel = root . tk . call ( 'info' , 'patchlevel' ) if patchlevel not in ( '8.5.7' , '8.5.9' ) : return False return ( "WARNING: The version of Tcl/Tk ({0}) in use may" " be unstable.\n" "Visit https://www.python.org/download/mac/tcltk/" " for current information." . format ( patchlevel ) ) else : return False