def isCocoaTk():
 assert (_tk_type is not None)
 return (_tk_type == 'cocoa')

def isCocoaTk ( ) : assert ( _tk_type is not None ) return ( _tk_type == 'cocoa' )
returns true if idle is using a cocoa aqua tk .