<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 21 May, 2010, at 17:31, Michael Foord wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On 21 May 2010 16:21, ronaldoussoren <span dir="ltr"><<a href="mailto:ronaldoussoren@mac.com">ronaldoussoren@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div><br><br>On May 21, 2010, at 02:24 PM, Kevin Walzer <kw@codebykevincom> wrote:<br><br></div><div><blockquote type="cite"><div><div>On 5/21/10 1:16 AM, Stephen M. Gava wrote:<br>
> Hi there,<br>
> I've installed the <a href="http://python.org/" target="_blank">python.org</a> package of python 2.7b2 for osx snow leopard.<br>
><br>
> It's Tkinter appears to be built against Tk 84, but I want to use<br>
> Tkinter with my installed framework build of Tk 8.6 (for native Tk .png<br>
> support among other things).<br>
><br>
> So, I assume I need to build my own osx packages of 2.7 linking against<br>
> Tk 8.6 to achieve this?<br>
><br>
> Thanks,<br>
> Stephen<br>
<br>
Yes, most likely. I believe the binary installers from <a href="http://Python.org/" target="_blank">Python.org</a> still <br>
link against 8.4 by default--anything else requires you to build your own.</div><div></div></div></blockquote><div><br></div><div>The binary installers link to 8.4, and that won't change until all supported versions of OSX ship with a newer version of Tk.</div>
<div><br></div><div>I'm willing to ship a version of tkinter that links with 8.5, but only if someone provides a patch that enables linking to both 8.4 and 8.5 (in two different builds of _tkinter) and automaticly selects the right version to use.</div>
<div><br></div><div>What I'm thinking of is:</div><div><br></div><div>have _tkinterpy that does:</div><div><br></div><div>try:</div><div> from _tkinter85 import *</div><div>except ImportError:</div><div> from _tkinter84 import *</div>
<div><br></div><div>Then patch setup.py to build _tkinter84.so and _tkinter85.so from _tkinter.c while linking to the right version of Tk. This should only be done when a special configure argument is present, if it isn't setup.py should default to building _tkinter.so like it currently does. </div>
</div></div></blockquote><div><br><br>That sounds great!<br></div></div></blockquote><div><br></div>Cool. When can I expect a patch ;-)</div><div><br></div><div>Ronald</div><div><br></div></body></html>