libs/tkinter_extension.py
def handle_keyrelease(self, event):
		"""event handler for the keyrelease event on this widget"""
		if event.keysym == "BackSpace":
			self.delete(self.index(INSERT), END)
			self.position = self.index(END)
		if event.keysym == "Left":
			if self.position < self.index(END): # delete the selection
				self.delete(self.position, END)
			else:
				self.position = self.position-1 # delete one character
				self.delete(self.position, END)
		if event.keysym == "Right":
			self.position = self.index(END) # go to end (no selection)
		if len(event.keysym) == 1:
			self.autocomplete()
			#self.autofill()
event handler for the keyrelease event on this widget
event handler for the keyrelease event on this widget
event handler for the keyrelease event on this widget
def handle_keyrelease(self, event):
		if event.keysym == "BackSpace":
			self.delete(self.index(INSERT), END)
			self.position = self.index(END)
		if event.keysym == "Left":
			if self.position < self.index(END): 
				self.delete(self.position, END)
			else:
				self.position = self.position-1 
				self.delete(self.position, END)
		if event.keysym == "Right":
			self.position = self.index(END) 
		if len(event.keysym) == 1:
			self.autocomplete()
def handle_keyrelease ( self , event ) : if event . keysym == "BackSpace" : self . delete ( self . index ( INSERT ) , END ) self . position = self . index ( END ) if event . keysym == "Left" : if self . position < self . index ( END ) : self . delete ( self . position , END ) else : self . position = self . position - 1 self . delete ( self . position , END ) if event . keysym == "Right" : self . position = self . index ( END ) if len ( event . keysym ) == 1 : self . autocomplete ( )
event handler for the keyrelease event on this widget
event handler for the keyrelease event on this widget
"""event handler for the keyrelease event on this widget""" # delete the selection # delete one character # go to end (no selection) #self.autofill()
self
event