471,348 Members | 1,195 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Build Python 2.5 against Tk 8.5

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?
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 16 '07 #1
4 978
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
Oct 16 '07 #2
Martin v. Lwis wrote:
>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.
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...

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 16 '07 #3
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
Oct 16 '07 #4
Martin v. Lwis wrote:
>
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.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 16 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Skip Montanaro | last post: by
reply views Thread by matt okeson-harlow | last post: by
4 posts views Thread by Torsten Mohr | last post: by
12 posts views Thread by David Murmann | last post: by
26 posts views Thread by Kevin D. Smith | last post: by
reply views Thread by Russell E. Owen | last post: by
1 post views Thread by Owen Zhang | last post: by
2 posts views Thread by Robin Becker | last post: by
4 posts views Thread by M.-A. Lemburg | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.