<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hey Jonathan,</div><div><br></div><div>I'm cc'ing pd-dev since this is a topic that could interest others and others could contribute to. &nbsp;I've started a private git branch of tkwidgets that I intent to push once I get somewhere with it. &nbsp;The idea is to try out a new idea for how GUI objects can work. &nbsp;Basically, I think I can make it so that Tcl handles more of the interaction with the user, minimizing on pd-gui &lt;--&gt; pd communications, and making it easier to write GUI objects. &nbsp;Its not trivial to do, but should be doable.</div><div><br></div><div>.hc</div><div><br></div><br><div><div>On Aug 17, 2011, at 12:26 PM, Jonathan Wilkes wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Never mind, I see it now inside canvas_vis... too bad canvas' "window" subcommand doesn't have something like pack's "-in" option...</span></div><div><br><span></span></div><div><span>But I guess I could make a toplevel checkbutton widget and just manually clone it.<br></span></div><div><br><span></span></div><div><span>-Jonathan<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Jonathan Wilkes &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;<br><b><span style="font-weight: bold;">To:</span></b> Hans- Christoph Steiner &lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 17, 2011 3:14 AM<br><b><span style="font-weight: bold;">Subject:</span></b> tkwidgets<br></font><br><div id="yiv1405278837"><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div>Hi Hans,</div><div>&nbsp;&nbsp;&nbsp;&nbsp; Do I have it right that your tkwidgets get destroyed when the containing patch is vis'd 0?&nbsp; If so, any hints on how this happens?</div><div><br></div><div>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:</div><div><br></div><div>(Tcl) INVALID COMMAND NAME: invalid command name ".x252a690.c.widget25272b0"<br>&nbsp;&nbsp;&nbsp; while executing<br>".x252a690.c.widget25272b0 cget -onvalue"<br>&nbsp;&nbsp;&nbsp; ("uplevel" body line 2)<br>&nbsp;&nbsp;&nbsp; invoked from within<br>"uplevel #0 $cmd_from_pd"</div><div><br></div><div><br></div></div></div><br><br></div></div></blockquote></div></div></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br style="font-family: Tahoma; "></div><div>----------------------------------------------------------------------------<br style="font-family: Tahoma; "></div><div><br class="khtml-block-placeholder"></div><div>Man has survived hitherto because he was too ignorant to know how to realize his wishes.&nbsp;&nbsp;Now that he can realize them, he must either change them, or perish. &nbsp; &nbsp;-William Carlos Williams</div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>