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 the name of the currently active text color theme.
  
  idlelib.config-main.def includes this section
  [Theme]
  default= 1
  name= IDLE Classic
  name2=
  # name2 set in user config-main.cfg for themes added after 2015 Oct 1
  
  Item name2 is needed because setting name to a new builtin
  causes older IDLEs to display multiple error messages or quit.
  See https://bugs.python.org/issue25313.
  When default = True, name2 takes precedence over name,
  while older IDLEs will just use name.
code: def CurrentTheme(self):
      """Return the name of the currently active text color theme.
  
      idlelib.config-main.def includes this section
      [Theme]
      default= 1
      name= IDLE Classic
      name2=
      # name2 set in user config-main.cfg for themes added after 2015 Oct 1
  
      Item name2 is needed because setting name to a new builtin
      causes older IDLEs to display multiple error messages or quit.
      See https://bugs.python.org/issue25313.
      When default = True, name2 takes precedence over name,
      while older IDLEs will just use name.
      """
      default = self.GetOption(
          "main", "Theme", "default", type="bool", default=True
      )
      if default:
          theme = self.GetOption("main", "Theme", "name2", default="")
      if default and not theme or not default:
          theme = self.GetOption("main", "Theme", "name", default="")
      source = self.defaultCfg if default else self.userCfg
      if source["highlight"].has_section(theme):
          return theme
      else:
          return "IDLE Classic"
  
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 9 for calling the IdleConf obj's underlying member method code with example usage: obj.CurrentTheme() and returns: theme, str