parameters: (self)
docstring: set up a dictionary of config parsers for default and user
          configurations respectively
docstring_summary: set up a dictionary of config parsers for default and user
          configurations respectively
docstring_tokens: set up a dictionary of config parsers for default and user configurations respectively
function: def CreateConfigHandlers(self):
          """
          set up a dictionary of config parsers for default and user
          configurations respectively
          """
          #build idle install path
          if __name__ != '__main__': # we were imported
              idleDir=os.path.dirname(__file__)
          else: # we were exec'ed (for testing only)
              idleDir=os.path.abspath(sys.path[0])
          userDir=self.GetUserCfgDir()
          configTypes=('main','extensions','highlight','keys')
          defCfgFiles={}
          usrCfgFiles={}
          for cfgType in configTypes: #build config file names
              defCfgFiles[cfgType]=os.path.join(idleDir,'config-'+cfgType+'.def')
              usrCfgFiles[cfgType]=os.path.join(userDir,'config-'+cfgType+'.cfg')
          for cfgType in configTypes: #create config parsers
              self.defaultCfg[cfgType]=IdleConfParser(defCfgFiles[cfgType])
              self.userCfg[cfgType]=IdleUserConfParser(usrCfgFiles[cfgType])
function_tokens: def CreateConfigHandlers ( self ) : #build idle install path if __name__ != '__main__' : # we were imported idleDir = os . path . dirname ( __file__ ) else : # we were exec'ed (for testing only) idleDir = os . path . abspath ( sys . path [ 0 ] ) userDir = self . GetUserCfgDir ( ) configTypes = ( 'main' , 'extensions' , 'highlight' , 'keys' ) defCfgFiles = { } usrCfgFiles = { } for cfgType in configTypes : #build config file names defCfgFiles [ cfgType ] = os . path . join ( idleDir , 'config-' + cfgType + '.def' ) usrCfgFiles [ cfgType ] = os . path . join ( userDir , 'config-' + cfgType + '.cfg' ) for cfgType in configTypes : #create config parsers self . defaultCfg [ cfgType ] = IdleConfParser ( defCfgFiles [ cfgType ] ) self . userCfg [ cfgType ] = IdleUserConfParser ( usrCfgFiles [ cfgType ] )