#NEWLINE# def handle_keyrelease( self , event ) : #NEWLINE# #INDENT# 'event handler for the keyrelease event on this widget' #NEWLINE# ctrl = ( ( event . state & 4 ) != 0 ) #NEWLINE# if self . cycle : #NEWLINE# #INDENT# if ( event . keysym == 'BackSpace' ) : #NEWLINE# #INDENT# self . cycle = 0 #NEWLINE# self . delete ( self . index ( tk . INSERT ) , tk . END ) #NEWLINE# self . position = self . index ( tk . END ) #NEWLINE# #UNINDENT# if ( event . keysym == 'Right' ) : #NEWLINE# #INDENT# self . position = self . index ( tk . END ) #NEWLINE# self . cycle = 0 #NEWLINE# #UNINDENT# if ( event . keysym == 'Left' ) : #NEWLINE# #INDENT# self . cycle = 0 #NEWLINE# #UNINDENT# #UNINDENT# if ( ( event . keysym == 'space' ) and ctrl ) : #NEWLINE# #INDENT# self . triggeredcomplete ( ) #NEWLINE# if ( self . cycle == 0 ) : #NEWLINE# #INDENT# self . cycle = 1