[PD-dev] focus textbox

yvan volochine yvan.pd at gmail.com
Wed May 4 12:49:50 CEST 2011


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



More information about the Pd-dev mailing list