class_docstr: Hold config parsers for all idle config files in singleton instance.
  
  Default config files, self.defaultCfg --
      for config_type in self.config_types:
          (idle install dir)/config-{config-type}.def
  
  User config files, self.userCfg --
      for config_type in self.config_types:
      (user home dir)/.idlerc/config-{config-type}.cfg
class_docstr_tok: ["Hold","config","parsers","for","all","idle","config","files","in","singleton","instance",".","Default","config","files",",","self.defaultCfg","--","for","config_type","in","self.config_types",":","(","idle","install","dir",")","\/config-","{","config-type","}",".def","User","config","files",",","self.userCfg","--","for","config_type","in","self.config_types",":","(","user","home","dir",")","\/.idlerc\/config-","{","config-type","}",".cfg"]
docstr: Return individual theme element highlight color(s).
  
  fgBg - string ('fg' or 'bg') or None.
  If None, return a dictionary containing fg and bg colors with
  keys 'foreground' and 'background'.  Otherwise, only return
  fg or bg color, as specified.  Colors are intended to be
  appropriate for passing to Tkinter in, e.g., a tag_config call).
code: def GetHighlight(self, theme, element, fgBg=None):
      """Return individual theme element highlight color(s).
  
      fgBg - string ('fg' or 'bg') or None.
      If None, return a dictionary containing fg and bg colors with
      keys 'foreground' and 'background'.  Otherwise, only return
      fg or bg color, as specified.  Colors are intended to be
      appropriate for passing to Tkinter in, e.g., a tag_config call).
      """
      if self.defaultCfg["highlight"].has_section(theme):
          themeDict = self.GetThemeDict("default", theme)
      else:
          themeDict = self.GetThemeDict("user", theme)
      fore = themeDict[element + "-foreground"]
      if element == "cursor":  # There is no config value for cursor bg
          back = themeDict["normal-background"]
      else:
          back = themeDict[element + "-background"]
      highlight = {"foreground": fore, "background": back}
      if not fgBg:  # Return dict of both colors
          return highlight
      else:  # Return specified color only
          if fgBg == "fg":
              return highlight["foreground"]
          if fgBg == "bg":
              return highlight["background"]
          else:
              raise InvalidFgBg("Invalid fgBg specified")
  
imports: from __future__ import print_function
  import os
  import sys
  from ConfigParser import ConfigParser
  from Tkinter import TkVersion
  from tkFont import Font, nametofont
label_desc: Use image node_id 7 for calling the IdleConf obj's underlying member method code with example usage: obj.GetHighlight(theme, element, fgBg) and returns: highlight, highlight, highlight