Under the enter() function, print the field you name as event, as it should contain the item selected, which should also be the key for the self.messages dictionary.
def enter(self,event): if event in self.messages: print(event, self.messages[event]) else: print(event, "Lookup error")