<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>How does your private git branch differ from what's currently in svn?</span></div><br>One thing I'd like to point out is that your tkwidgets suffer from the same problem tot/widget did -- by handling all the widget state in tcl you make it impossible to use your objects inside a subpatch/abstraction that doesn't have a visible canvas (because the widget no longer exists).&nbsp; I was considering create a "master" widget as a child of the main window and sync it to the widget drawn on the canvas, but that seems like a lot of trouble.&nbsp; Is there some other workaround?<br><br>Another thing: to get "Pd-style" interaction, bind $canvas &lt;&lt;EditMode&gt;&gt; to a proc that sets -state to disabled  for all tkwidgets in that $canvas when editmode == 1.&nbsp; That way you don't end up triggering the widget when you want
 to edit it.<br><br>-Jonathan<br><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> Hans-Christoph Steiner &lt;hans@at.or.at&gt;<br><b><span style="font-weight: bold;">To:</span></b> Jonathan Wilkes &lt;jancsika@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> pd-dev List &lt;pd-dev@iem.at&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 17, 2011 2:54 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: tkwidgets<br></font><br><div id="yiv1426514273"><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="yiv1426514273Apple-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 rel="nofollow" ymailto="mailto:jancsika@yahoo.com" target="_blank" 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 rel="nofollow" ymailto="mailto:hans@at.or.at" target="_blank" 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="yiv1426514273"><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="yiv1426514273Apple-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;text-indent:0px;text-transform:none;orphans:2;white-space:normal;widows:2;word-spacing:0px;"><br class="yiv1426514273Apple-interchange-newline"><span class="yiv1426514273Apple-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;text-indent:0px;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="yiv1426514273khtml-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="yiv1426514273Apple-interchange-newline"></span></span> </div><br></div><br><br></div></div></blockquote></div></div></body></html>