#NEWLINE# def key_press_event( self , widget , event ) : #NEWLINE# #INDENT# keyname = event . key ( ) #NEWLINE# keyname2 = ( '%s' % event . text ( ) ) #NEWLINE# keyname = self . transkey ( keyname , keyname2 ) #NEWLINE# self . logger . debug ( ( 'key press event, key=%s' % keyname ) ) #NEWLINE# return self . make_ui_callback ( 'key-press' , keyname )