#NEWLINE# def get_best_config( self , template = None ) : #NEWLINE# #INDENT# 'Get the best available GL config.\n\n        Any required attributes can be specified in `template`.  If\n        no configuration matches the template, `NoSuchConfigException` will\n        be raised.\n\n        :deprecated: Use `pyglet.gl.Config.match`.\n\n        :Parameters:\n            `template` : `pyglet.gl.Config`\n                A configuration with desired attributes filled in.\n\n        :rtype: `pyglet.gl.Config`\n        :return: A configuration supported by the platform that best\n            fulfils the needs described by the template.\n        ' #NEWLINE# if ( template is None ) : #NEWLINE# #INDENT# template = gl . Config ( ) #NEWLINE# #UNINDENT# configs = self . get_matching_configs ( template ) #NEWLINE# if ( not configs ) : #NEWLINE# #INDENT# raise window . NoSuchConfigException ( ) #NEWLINE# #UNINDENT# return template [ 0 ]