<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>It might be a good idea to list the problems with tcl/tk so we can weigh them against the difficulty of using a different GUI toolkit.&nbsp; The problems I see are:</span></div><div><span>* difficult to implement a decent zoom function for a canvas</span></div><div><span>* can't display png without the Img library (included in 8.6)<br></span></div><div><span>* can't do alpha transparency<br></span></div><div><br></div><div>Of the three I listed, I'm mostly interested in the first as it means that (without prior planning) it's hard to take a patch you've been working on at font size 10 and display it adequately over a projector, for example.&nbsp; (If there's a work around I'd like to know it.)</div><div><br></div>I'd like to hear others, but I'm mostly interested in problems with tcl/tk &gt;= 8.5 as the
 GUI.<br><br><div><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> András Murányi &lt;muranyia@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> pd-list &lt;pd-list@iem.at&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, August 25, 2011 8:19 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [PD] [PD-dev] tkwidgets<br></font><br><div id="yiv608989668">Yeah and afaiu this is exactly the job that HC just started (see his announcement below).<br>Yvan: in my simple understanding it goes like this: 1. getting rid of tcl-specific code in pd c core 2. minimizing the communication between the core and
 the gui (3. defining the api/protocol?) 4. anyone can go make all sorts of guis for pd... at this point or later on vanilla may or may not switch from tcl - imho it's to be decided when we're there<br>

<br>Andras<br><br><div class="yiv608989668gmail_quote">On Fri, Aug 26, 2011 at 01:39, Jonathan Wilkes <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:jancsika@yahoo.com" target="_blank" href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="yiv608989668gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div>The pd/pd-gui divide is a little misleading-- there are lots of places in the c code where there are sys_gui and sys_vgui calls with tcl in them, plus c code that probably assumes tcl is being used on the gui side.</div>

<br>You'll either need to write a wrapper for those calls, or modify a lot of c code and basically make a fork (iemguis, canvas stuff, etc.)<span></span><br><br>But even if you write a wrapper, there are still issues that will need to be dealt with on the c side to minimize the number of messages passing back and forth between pd and gui.&nbsp; For example, there is one call per xlet to the gui when an object gets instantiated/vis'd, plus drawing the border and text, rather than one call per object (and letting the gui deal with where to draw xlets, box width, font,
 etc.).<br><br>-Jonathan<br><div><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> yvan volochine &lt;<a rel="nofollow" ymailto="mailto:yvan.pd@gmail.com" target="_blank" href="mailto:yvan.pd@gmail.com">yvan.pd@gmail.com</a>&gt;<div class="yiv608989668im"><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>

</div><b><span style="font-weight:bold;">Cc:</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;; pd-dev List &lt;<a rel="nofollow" ymailto="mailto:pd-dev@iem.at" target="_blank" href="mailto:pd-dev@iem.at">pd-dev@iem.at</a>&gt;<br>

<b><span style="font-weight:bold;">Sent:</span></b> Thursday, August 25, 2011 6:18 PM<br><b><span style="font-weight:bold;">Subject:</span></b> Re: [PD-dev] tkwidgets<br></font><div class="yiv608989668im"><br>On 08/17/2011 08:54 PM, Hans-Christoph Steiner wrote:<br>

&gt; I've started a private git branch of<br>&gt; tkwidgets
 that I intent to push once I get somewhere with it. The idea<br>&gt; is to try out a new idea for how GUI objects can work. Basically, I<br>&gt; think I can make it so that Tcl handles more of the interaction with the<br>

&gt; user, minimizing on pd-gui &lt;--&gt; pd communications, and making it easier<br>&gt; to write GUI objects. Its not trivial to do, but should be doable.<br><br>hiho<br><br>sorry for bumping in but what about giving up tcl-tk and go on with something more "modern" (ŕ la Qt), with a decent OO interface ?<br>

<br>I might miss the obvious as I'm new here but what about rewriting pd GUI in Qt ?<br>wouldn't it make more sense than spending time hacking on and on tcl-tk code ?<br><br>my 0.001$<br>_y<br><br><br></div></div>

</div></blockquote></div></div></div><br>
</blockquote></div><br>
</div><br>_______________________________________________<br><a ymailto="mailto:Pd-list@iem.at" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div></div></blockquote></div></div></body></html>