Am 18.08.2023 um 01:57 schrieb LuoChunlei:
On 8/18/23 6:03 AM, Silas Silva wrote:
I think this is general problem, because the frame have ho focus, so the
key <a> can not send to it.
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
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)