Python, Tcl/tk, and Tkinter [Solved]

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
chakraps

Python, Tcl/tk, and Tkinter [Solved]

Post by chakraps »

Hi folks,

I need to have Python, Tcl/tk, and Tkinter to try some coding exercises. I noticed Mint 7 comes with python 2.6.2. In python interactive mode I ran,

Code: Select all

 >>> import Tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 42, in <module>
    raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package
I was wondering how to make sure I have Tcl/tk and Tkinter. If I don't how to get and install them.

Thanks.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
DrHu

Re: Python, Tcl/tk, and Tkinter

Post by DrHu »

Run menu, Package Manager, and when it starts seach for the package file names tkinker, tcl
--just checked it is called python-tk
chakraps

Re: Python, Tcl/tk, and Tkinter

Post by chakraps »

Thanks DrHu. installing python-tk pulled in the latest tcl, tk and tkinter. Thank you.
Locked

Return to “Software & Applications”