Python Forum
[Tkinter] What can the event.widget reference be used for?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] What can the event.widget reference be used for?
#1
Widgets bound with self.root.bind_all("", lambda e: self.focus(e)) return a widget reference through e.widget such as ".!entry2" when a widget receives the focus.

I can't find anywhere how this notation can be used to identify or access the particular widget receiving the focus. I'm sure it can be done otherwise it wouldn't be useful to report this value.

How does one use ".!entry2" to access the associated widget?
Reply


Messages In This Thread
What can the event.widget reference be used for? - by Knickers - Aug-25-2021, 09:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TKinter Widget Attribute and Method Quick Reference zunebuggy 3 962 Oct-15-2023, 05:49 PM
Last Post: zunebuggy
  [Tkinter] moniter which widget triggerd event catlessness 5 2,514 Mar-07-2020, 01:38 AM
Last Post: Larz60+
  pygtk2, how to disconnect all callback of widget or window event ? harun2525 1 3,375 Feb-19-2017, 11:44 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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