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