Keypress Input

Chris Angelico rosuav at gmail.com
Sat Jun 6 17:20:42 EDT 2015


On Sun, Jun 7, 2015 at 4:28 AM, John McKenzie <davros at bellaliant.net> wrote:
>  It turns out Tkinter is installed on Raspian and my Pi has it. Typing
> import tkinter into the Python interpreter gave me an error, then I
> corrected my spelling. The T should be upper case. No errors with "import
> Tkinter".

Ah, that means your Python interpreter is the older (version 2) type,
rather than the newer (version 3). As of Python 3.0, the module is
named "tkinter". Use whichever one you have; there are a few other
changes inside the module, but the functionality's mostly the same.

ChrisA



More information about the Python-list mailing list