/* jquery */ /* jquery accordion style*/ /* jquery init */

22 April 2013

Learn Python - Installing Tkinter

Before we do some GUI coding we'll need the Tkinter installed.

To check if it's already installed open a new Python interactive session, then enter this statement (making sure there's an uppercase T in Tkinter):

>>> import Tkinter

Did you see an    ImportError: No module named Tkinter    error message?

If you did then follow the installation steps below (which presume you're running the Raspbian Jessie distro or the older Raspbian Wheezy image).

Connect the Raspberry Pi to the Internet, open an LXTerminal window and enter this command:

sudo apt-get install python-tk

If prompted enter the your login password, and reply y to any prompts.

Now we're ready to create GUI apps.

A post from my Learn Python on the Raspberry Pi tutorial.