Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Python and Tk< Next Oldest | Next Newest >
cgeorge Offline





Group: Members
Posts: 3
Joined: Dec. 2006
Posted: Dec. 10 2006,03:35 QUOTE

Has anybody gotten Python working with Tkinter TCL/Tk. I've tried both the 2.3 and 2.5 version and both say they can't find the Tkinter libraries (or weren't compiled for them).

I even tried to recompile myself from sources and ran into the same problem. I couldn't seem to get the Tk libraries to be seen by the Python make file. There are a ton of Python programs that need this to work.

Thanks
-Chad
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 10 2006,15:44 QUOTE

I haven't done anything with python beyond using it with Blender, so I can't say for sure what might be needed for python-tk or tkinter. When building the tcl/tk extensions, I didn't even take python into consideration.  I'll have to look into that at some point, particularly since I still want to do more tweaking of the tcl/tk extension.

I wonder if it might just need some modification of your environment, such as setting a library path before running python.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
cgeorge Offline





Group: Members
Posts: 3
Joined: Dec. 2006
Posted: Dec. 11 2006,17:48 QUOTE

I noticed the problem first when I tried to run IDLE the IDE that comes with python. It errors out and says it hasn't been "configured" for Tk. I found that when I tried rebuild python 2.5 from sources I get a warning saying that it couldn't find the Tk libraries. So I'd imagine that they need to be present when python builds or it doesn't even make the tkinter extensions that its GUI library needs later.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 11 2006,22:04 QUOTE

The existing Tcl/Tk extensions do not include the headers needed to compile Tcl/Tk applications, so maybe that's why the libraries couldn't be found.
I built a 8.4.14 Tcl/Tk package quite a while ago that includes the necessary headers, but apparently I forgot to mail it to roberts...i don't see it in my "sent" box.
Anyway, in case I don't get around to sending it soon (2K/s uploading is kind of annoying), you should be made aware that Tcl/Tk compiles very easily in DSL.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
ubermai Offline





Group: Members
Posts: 17
Joined: Dec. 2006
Posted: Jan. 10 2007,02:39 QUOTE

I built Tcl and Tk from source files, and created .unc extensions for both. They seem to function, but Python still does not seem to recognize the needed files for Tkinter, and thus IDLE.

Perhaps the source package I used did not include the Tkinter libraries or something. Or perhaps my extensions are faulty.

Do I need to use some other package for Python? I am currently using the python2.5.unc file posted in the repository.

- UberMai
Back to top
Profile PM 
10 replies since Dec. 10 2006,03:35 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: Python and Tk

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code