I think, that is the point.
You may check with an additional widget, which constantly shows the
current focus. I suppose, the tab label has still the focus.
pack [label .l]
proc showfocus {} {
catch {focus} Focus
::.l configure -text $Focus
after 1000 showfocus
}
showfocus
As a frame does not take focus, it may be difficult to do it like that.
I suppose, binding to the tabbed notebook and then checking the current
front tab would be a better solution.
Take care,
Harald