Tcl/Tk Support

D

Diego.andrade

Hi,

Im not a Python programer, but I need to use Python on some aplications CVS
related. Im trying to install ViewCVS who need Tkinter library. But It
doesnt Work. Im using RedHat 9 Default Installation, to test if Tcl/Tk
suport for Python is working I Type in the Python console import tkinter and
received the following output:

[root@Diego-Linux root]# python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):

Im searching over the Python.org for a explanation of what I have to do but
with no sucess...

Thanks for help.

Diego.

________________________________________________
Message sent using UebiMiau 2.7.2
 
A

Aahz

Im not a Python programer, but I need to use Python on some aplications CVS
related. Im trying to install ViewCVS who need Tkinter library. But It
doesnt Work. Im using RedHat 9 Default Installation, to test if Tcl/Tk
suport for Python is working I Type in the Python console import tkinter and
received the following output:

[root@Diego-Linux root]# python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):

What happens when you type "import Tkinter" (note initial capital)
 
D

Diego Ribeiro de Andrade

Yes... I typed import Tkinter too but the output was the same!

how I do to install support for Tkinter? Can I download the Tkinter.py file
and paste in the include directory of Python2.2?


Aahz said:
Im not a Python programer, but I need to use Python on some aplications CVS
related. Im trying to install ViewCVS who need Tkinter library. But It
doesnt Work. Im using RedHat 9 Default Installation, to test if Tcl/Tk
suport for Python is working I Type in the Python console import tkinter and
received the following output:

[root@Diego-Linux root]# python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import tkinter
Traceback (most recent call last):

What happens when you type "import Tkinter" (note initial capital)
--
Aahz ([email protected]) <*> http://www.pythoncraft.com/

A: No.
Q: Is top-posting okay?
 
A

Aahz

Yes... I typed import Tkinter too but the output was the same!

how I do to install support for Tkinter? Can I download the Tkinter.py file
and paste in the include directory of Python2.2?

You'll probably have to install a package called something like
"tk8.3-dev" (that's what it's called in Debian), download the Python
source, and build Python. It's possible that the RPMs for Python already
have Tkinter built in, but you'll still need to install Tcl/Tk to make it
work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top