Build Python 2.5 against Tk 8.5

K

Kevin Walzer

I'd like to experiment with Tk 8.5 (now in beta) in my Python
application, but Python 2.5 requires Tk 8.4.x. What would I need to
patch in the Python sources or build scripts to get it built against Tk
8.5?
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

I'd like to experiment with Tk 8.5 (now in beta) in my Python
application, but Python 2.5 requires Tk 8.4.x.

Why do you say that? AFAIK, that's not the case.

Regards,
Martin
 
K

Kevin Walzer

Martin said:
Why do you say that? AFAIK, that's not the case.

It's been a while, but when I've tried to run my Tkinter app against Tk
8.5 with a stock Python installation, I get an error message saying that
Tk 8.4.x is required. It's probably tkinter.so that hard-codes the
Tcl/Tk version, not Python itself--I should have been clearer on that.
However, I still need to know what to patch...
 
R

Russell E. Owen

Kevin Walzer said:
It's been a while, but when I've tried to run my Tkinter app against Tk
8.5 with a stock Python installation, I get an error message saying that
Tk 8.4.x is required. It's probably tkinter.so that hard-codes the
Tcl/Tk version, not Python itself--I should have been clearer on that.
However, I still need to know what to patch...

I have no idea how Tkinter does with Tcl/Tk 8.5.

But one way to try it is to build python from source (after installing
Tcl/Tk 8.5). It's not hard, but it takes awhile and you have to specify
the right options to get a framework build (these are documented in the
build instructions).

-- Russell
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

It's been a while, but when I've tried to run my Tkinter app against Tk
8.5 with a stock Python installation, I get an error message saying that
Tk 8.4.x is required.

Can you please clarify what you mean by "stock Python installation"?
I just built Python 2.5.1 with Tk 8.5 on Debian unstable, and it works
fine.
It's probably tkinter.so that hard-codes the
Tcl/Tk version, not Python itself--I should have been clearer on that.

It's still not clear. I'm the current maintainer of the _tkinter module,
and I can assert that _tkinter.c does *not* hard-code Tk 8.4. As you
refer to _tkinter.so, it appears you are talking about a precompiled
version - did you try to build Python yourself?

Regards,
Martin
 
K

Kevin Walzer

Martin said:
Can you please clarify what you mean by "stock Python installation"?
I just built Python 2.5.1 with Tk 8.5 on Debian unstable, and it works
fine.

OK, that's good to know. I'm using the precompiled Mac OS X build of
2.5.1 from python.org.
It's still not clear. I'm the current maintainer of the _tkinter module,
and I can assert that _tkinter.c does *not* hard-code Tk 8.4. As you
refer to _tkinter.so, it appears you are talking about a precompiled
version - did you try to build Python yourself?

I'll try to build Python from source and link it against Tk 8.5.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top