def _initializeTkVariantTests(root):
 global _tk_type
 if (sys.platform == 'darwin'):
  ws = root.tk.call('tk', 'windowingsystem')
  if ('x11' in ws):
   _tk_type = 'xquartz'
  elif ('aqua' not in ws):
   _tk_type = 'other'
  elif ('AppKit' in root.tk.call('winfo', 'server', '.')):
   _tk_type = 'cocoa'
  else:
   _tk_type = 'carbon'
 else:
  _tk_type = 'other'

def _initializeTkVariantTests ( root ) : global _tk_type if ( sys . platform == 'darwin' ) : ws = root . tk . call ( 'tk' , 'windowingsystem' ) if ( 'x11' in ws ) : _tk_type = 'xquartz' elif ( 'aqua' not in ws ) : _tk_type = 'other' elif ( 'AppKit' in root . tk . call ( 'winfo' , 'server' , '.' ) ) : _tk_type = 'cocoa' else : _tk_type = 'carbon' else : _tk_type = 'other'
initializes os x tk variant values for isaquatk() .