Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problem with tkinter

Reply
Thread Tools

Problem with tkinter

 
 
rolf peter
Guest
Posts: n/a
 
      11-12-2003
Hello Friends,

i installed the new Python 2.3 tarball but have a little (or big) problem.

When testing turtle.py i get the following message.
I am using Linux SUSE 8.2, Tk ist installed as version 8.4

../configure, make and make install work fine ....

Python 2.3 (#2, Nov 11 2003, 17:40:46)
[GCC 3.3 20030226 (prerelease) (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


but:

ropebu@z3pc47:/usr/local/lib/python2.3/lib-tk> python turtle.py
Traceback (most recent call last):
File "turtle.py", line 4, in ?
import Tkinter
File "/usr/local/lib/python2.3/lib-tk/Tkinter.py", line 38, in ?
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter

So the questions is: how to configure python to use Tk.

Greeting from Karlsruhe
 
Reply With Quote
 
 
 
 
Jan S. Voges
Guest
Posts: n/a
 
      11-12-2003
Hi!

http://www.velocityreviews.com/forums/(E-Mail Removed) (rolf peter) wrote:

>So the questions is: how to configure python to use Tk.


IIRC the package "tcl-devel" isn't installed by default, but nessesary
before compiling python.

hth
Jan

 
Reply With Quote
 
 
 
 
rolf peter
Guest
Posts: n/a
 
      11-13-2003
Thank You,

that was it after installing the package tcl-devel it works.

Do i have to modify the Modules/Setup - i did.

Rolf



Jan S. Voges <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Hi!
>
> (E-Mail Removed) (rolf peter) wrote:
>
> >So the questions is: how to configure python to use Tk.

>
> IIRC the package "tcl-devel" isn't installed by default, but nessesary
> before compiling python.
>
> hth
> Jan

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: What is the differences between tkinter in windows and Tkinter inthe other platform? Hidekazu IWAKI Python 0 12-15-2009 05:58 AM
What is the differences between tkinter in windows and Tkinter in theother platform? Hidekazu IWAKI Python 1 12-14-2009 03:44 PM
from Tkinter import *,win = Tk() "from Tkinter import *" Pierre Dagenais Python 0 08-03-2008 10:33 PM
Re: [Tkinter-discuss] Please help -- Tkinter Scale widget withDoubleVar is acting weird Jeff Epler Python 0 08-23-2004 02:31 PM
Re: [Tkinter-discuss] Please help -- Tkinter Scale widget withDoubleVar is acting weird Jeff Epler Python 0 08-20-2004 12:07 PM



Advertisments