Hi Hans,
Do I have it right that your tkwidgets get destroyed when the containing patch is vis'd 0? If so, any hints on how this happens?
Specifically, I'm playing around with [checkbutton], and even if I comment out everything in eraseme and checkbutton_free, and every single "destroy" subcommand, I still get a tcl error when sending a bang or float to a [checkbutton] that's in a subpatch with no window mapped:
(Tcl) INVALID COMMAND NAME: invalid command name ".x252a690.c.widget25272b0"
while executing
".x252a690.c.widget25272b0 cget -onvalue"
("uplevel" body line 2)
invoked from within
"uplevel #0 $cmd_from_pd"