Python Forum
[Tkinter] Getting the Respective Value
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Getting the Respective Value
#2
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") 
Reply


Messages In This Thread
Getting the Respective Value - by Vicolas - Feb-13-2019, 12:41 PM
RE: Getting the Respective Value - by woooee - Feb-13-2019, 05:55 PM
RE: Getting the Respective Value - by Vicolas - Feb-14-2019, 02:57 PM
RE: Getting the Respective Value - by woooee - Feb-14-2019, 10:15 PM
RE: Getting the Respective Value - by Vicolas - Feb-15-2019, 05:53 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020