Tcl/Tk Support

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Diego.andrade

    Tcl/Tk Support

    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.[color=blue][color=green][color=darkred]
    >>> import tkinter[/color][/color][/color]
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    ImportError: No module named tkinter[color=blue][color=green][color=darkred]
    >>>[/color][/color][/color]

    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


  • Aahz

    #2
    Re: Tcl/Tk Support

    In article <mailman.231.10 73668582.12720. python-list@python.org >,
    Diego.andrade <diego.andrade@ smartech.com.br > wrote:[color=blue]
    >
    >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.[color=green][color=darkred]
    >>>> import tkinter[/color][/color]
    >Traceback (most recent call last):
    >File "<stdin>", line 1, in ?
    >ImportError: No module named tkinter[color=green][color=darkred]
    >>>>[/color][/color][/color]

    What happens when you type "import Tkinter" (note initial capital)
    --
    Aahz (aahz@pythoncra ft.com) <*> http://www.pythoncraft.com/

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

    Comment

    • Diego Ribeiro de Andrade

      #3
      Re: Tcl/Tk Support

      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" <aahz@pythoncra ft.com> escreveu na mensagem
      news:btms6u$9rr $1@panix2.panix .com...[color=blue]
      > In article <mailman.231.10 73668582.12720. python-list@python.org >,
      > Diego.andrade <diego.andrade@ smartech.com.br > wrote:[color=green]
      > >
      > >Im not a Python programer, but I need to use Python on some aplications[/color][/color]
      CVS[color=blue][color=green]
      > >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[/color][/color]
      and[color=blue][color=green]
      > >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.[color=darkred]
      > >>>> import tkinter[/color]
      > >Traceback (most recent call last):
      > >File "<stdin>", line 1, in ?
      > >ImportError: No module named tkinter[color=darkred]
      > >>>>[/color][/color]
      >
      > What happens when you type "import Tkinter" (note initial capital)
      > --
      > Aahz (aahz@pythoncra ft.com) <*>[/color]
      http://www.pythoncraft.com/[color=blue]
      >
      > A: No.
      > Q: Is top-posting okay?
      > --
      > http://mail.python.org/mailman/listinfo/python-list
      >[/color]


      Comment

      • Aahz

        #4
        Re: Tcl/Tk Support

        In article <mailman.236.10 73676782.12720. python-list@python.org >,
        Diego Ribeiro de Andrade <diego.andrade@ smartech.com.br > wrote:[color=blue]
        >
        >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?[/color]

        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.
        --
        Aahz (aahz@pythoncra ft.com) <*> http://www.pythoncraft.com/

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

        Comment

        Working...