def isXQuartz():
 assert (_tk_type is not None)
 return (_tk_type == 'xquartz')

def isXQuartz ( ) : assert ( _tk_type is not None ) return ( _tk_type == 'xquartz' )
returns true if idle is using an os x x11 tk .