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. I'm sure it can be done otherwise it wouldn't be useful to report the value.
How does one use ".!entry2" to access the associated widget?
It doesn't identify the widget, it is the widget.
You don't need to. What you are seeing is just the string representation of the widget. While you can use it to look up the widget instance, there's no reason because you'll just get back the same thing that you already have.
If you want to call a method on the widget, you can do it directly on
event.widget
- eg:event.widget.insert("end", "Hello, world")