Python, Tcl/tk, and Tkinter [Solved]

Questions about applications and software
Forum rules
Before you post please read this

Python, Tcl/tk, and Tkinter [Solved]

Postby chakraps on Sun Jun 21, 2009 3:21 am

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 chakraps on Sun Jun 21, 2009 10:19 pm, edited 1 time in total.
chakraps
Level 1
Level 1
 
Posts: 23
Joined: Sat Jun 06, 2009 4:22 pm

Linux Mint is funded by ads and donations.
 

Re: Python, Tcl/tk, and Tkinter

Postby DrHu on Sun Jun 21, 2009 5:05 am

Run menu, Package Manager, and when it starts seach for the package file names tkinker, tcl
--just checked it is called python-tk
Attachments
Screenshot.png
Screenshot.png (143.17 KiB) Viewed 863 times
User avatar
DrHu
Level 16
Level 16
 
Posts: 6710
Joined: Wed Jun 17, 2009 8:20 pm

Re: Python, Tcl/tk, and Tkinter

Postby chakraps on Sun Jun 21, 2009 10:08 pm

Thanks DrHu. installing python-tk pulled in the latest tcl, tk and tkinter. Thank you.
chakraps
Level 1
Level 1
 
Posts: 23
Joined: Sat Jun 06, 2009 4:22 pm


Return to Software & Applications

Who is online

Users browsing this forum: Google Adsense [Bot] and 14 guests