[PD-dev] focus textbox

yvan volochine yvan.pd at gmail.com
Wed May 4 13:26:23 CEST 2011


> 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



More information about the Pd-dev mailing list