#NEWLINE# def lookup_keysym( self , keysym ) : #NEWLINE# #INDENT# for name in dir ( XK ) : #NEWLINE# #INDENT# if ( name . startswith ( 'XK_' ) and ( getattr ( XK , name ) == keysym ) ) : #NEWLINE# #INDENT# return name . lstrip ( 'XK_' ) #NEWLINE# #UNINDENT# #UNINDENT# return ( '[%d]' % self )