[Pythonmac-SIG] [pythonmac-sig] python 2.7 tkinter using tk 8.6
Stephen Gava
stephen.gava at gmail.com
Sat May 22 02:33:00 CEST 2010
On 22/05/10 1:21 AM, ronaldoussoren wrote:
>
>
> On May 21, 2010, at 02:24 PM, Kevin Walzer <kw at codebykevincom> wrote:
>
>> On 5/21/10 1:16 AM, Stephen M. Gava wrote:
>> > Hi there,
>> > I've installed the python.org <http://python.org> package of python
>> 2.7b2 for osx snow leopard.
>> >
>> > It's Tkinter appears to be built against Tk 84, but I want to use
[...]
> two different builds of _tkinter) and automaticly selects the right
> version to use.
>
> What I'm thinking of is:
>
> have _tkinterpy that does:
>
> try:
> from _tkinter85 import *
> except ImportError:
> from _tkinter84 import *
>
> 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.
>
> Ronald
hmm, sounds great. i don't have the c expertise to patch cpython tho.
i notice that the tcl/tk 'roadmap' for 8.6 mentions an immanent (last
month) beta 2 release that will be a release candidate. of course these
things (schedules) are _very_ rubbery with tcl-tk, but it would be nice
if something like this tkinter tk choosing mechanism could be in place
by the time there is an 'official' tk 8.6 release (lol, no rush, could
be years yet...).
the native .png support is worth the price of admission to tk 8.6 alone
i think, no faffing about with PIL builds for recent osx just to have
.png images supported in your ui.
anyway, thanks for the replies,
stephen.
>
>>
>>
>> --Kevin
>> --
>> Kevin Walzer
>> Code by Kevin
>> http://www.codebykevin.com
>> _______________________________________________
>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>> <http://mailpython.org/mailman/options/Pythonmac-SIG>
More information about the Pythonmac-SIG
mailing list