Problem with Tkinter
cd.cd at wanadoo.fr
Sat Mar 30 12:44:12 CET 2002
Thanks a lot for the help, I will try it.
By the way, do you know which path is used to search for Tk libraries ? Can
I change it manually in the Module/Setup file (after I ran ./configure) ?
"Martin v. Loewis" <martin at v.loewis.de> wrote in message
news:m3pu1nui7l.fsf at mira.informatik.hu-berlin.de...
> "Cyr" <cd.cd at wanadoo.fr> writes:
> > Python has been installed on another station in a common directory and
> > Tkinter works great on the other station. But the Tk library isn't in a
> > common directory. On this station (srv0023), I only have Tcl/Tk 8.0 (and
> > library in the directories mentioned in the error message). Is there any
> > I can configure python so that it would use Tk 8.0 library on the
> > but continue to use Tk 8.3 on the other station ?
> It is possible, but difficult. You need to compile _tkinter.so twice,
> once linking it with Tk 8.0, and once linking it with Tk 8.3. That
> requires that you have both versions installed on the build station,
> including header files for both versions.
> > In fact, I wonder how I can change the path search for the Tk
> > library within python.
> You need to edit Modules/Setup to direct make to a specific Tkinter
> location. In doing so, you must uncomment the *shared* line in Setup,
> since it will otherwise build _tkinter directly into the Python
More information about the Python-list