472,975 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,975 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 1020
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. Löwis 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. Löwis 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Skip Montanaro | last post by:
I'm trying to build the released version of Python 2.3 on Solaris 8 for the first time. It has problems when building _ssl.so. The command generated is gcc -shared...
0
by: matt okeson-harlow | last post by:
i am getting errors trying to build MySQLdb on solaris 8, i have tried changing the libs, no joy, anyone have any ideas? Python 2.3.4 gcc -v Reading specs from...
4
by: Torsten Mohr | last post by:
Hi, i'd like to build an executable file that is linked with a python library and executes a script via PyRun_SimpleString or similar functions. Is there a static library of python available,...
12
by: David Murmann | last post by:
hi all! i just built revision 41809 under winxp using a rather uncommon setup (at least i think so). since i have no visual studio here, i only used freely available tools: cygwin to get the...
26
by: Kevin D. Smith | last post by:
I've written a simple Python extension for UNIX, but I need to get it working on Windows now. I'm having some difficulties figuring out how to do this. I've seen web pages that say that MS Visual...
0
by: Russell E. Owen | last post by:
I'm trying to build a non-framework python on MacOS X 10.5 using a custom tcl/tk that lives in an arbitrary directory. (For complicated reasons we don't want the system tcl/tk). It is easy to build...
1
by: Owen Zhang | last post by:
I am trying to build lxml package in SunOS 5.10. I got the following errors. Does anybody know why? $ python setup.py build Building lxml version 2.1. NOTE: Trying to build without Cython,...
2
by: Robin Becker | last post by:
I'm trying to build Python from the unix sources on an OS 10.5 machine. This is because we're getting strange faults when using the built in python 2.5 together with some precompiled versions of...
4
by: M.-A. Lemburg | last post by:
Hi Robin, On 2008-10-23 17:55, Robin Becker wrote: That looks like a classical name clash between C header files. It also suggests that you have 64-bit client libs of MySQL installed. As...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.