def isCarbonAquaTk(root):
 global _carbonaquatk
 if (_carbonaquatk is None):
  _carbonaquatk = (runningAsOSXApp() and ('aqua' in root.tk.call('tk', 'windowingsystem')) and ('AppKit' not in root.tk.call('winfo', 'server', '.')))
 return _carbonaquatk

def isCarbonAquaTk ( root ) : global _carbonaquatk if ( _carbonaquatk is None ) : _carbonaquatk = ( runningAsOSXApp ( ) and ( 'aqua' in root . tk . call ( 'tk' , 'windowingsystem' ) ) and ( 'AppKit' not in root . tk . call ( 'winfo' , 'server' , '.' ) ) ) return _carbonaquatk
returns true if idle is using a carbon aqua tk .