parameters: ()
docstring: Initializes OS X Tk variant values for
      isAquaTk(), isCarbonTk(), isCocoaTk(), and isXQuartz().
docstring_summary: Initializes OS X Tk variant values for
      isAquaTk(), isCarbonTk(), isCocoaTk(), and isXQuartz().
docstring_tokens: Initializes OS X Tk variant values for isAquaTk () isCarbonTk () isCocoaTk () and isXQuartz () .
function: def _init_tk_type():
      """
      Initializes OS X Tk variant values for
      isAquaTk(), isCarbonTk(), isCocoaTk(), and isXQuartz().
      """
      global _tk_type
      if platform == 'darwin':
          root = tkinter.Tk()
          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"
          root.destroy()
      else:
          _tk_type = "other"
function_tokens: def _init_tk_type ( ) : global _tk_type if platform == 'darwin' : root = tkinter . Tk ( ) 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" root . destroy ( ) else : _tk_type = "other"