hi, for a gui-plugin I have the following focus problem:
say I create a window on top of an existing tkcanvas and I'd like to give the focus back to an existing textbox ($tag) without killing the new window. I do:
$tkcanvas focus $tag
which gives the focus to $tag (keys events work) but I don't see the cursor until I focus any another window and focus $tkcanvas again (with the mouse or Alt-Tab/Alt-Tab) which is pretty boring.
is there a trick around this or am I missing something ?
cheers, _y
say I create a window on top of an existing tkcanvas and I'd like to give the focus back to an existing textbox ($tag) without killing the new window. I do:
$tkcanvas focus $tag
which gives the focus to $tag (keys events work) but I don't see the cursor until I focus any another window and focus $tkcanvas again
replying to myself:
focus --force $tkcanvas
does the trick.
cheers, _y