[Tutor] window graphics

Lie Ryan lie.1296 at gmail.com
Fri Jul 3 17:23:43 CEST 2009


David H. Burns wrote:
> Thanks, Alan,
> 
> With the Python3.0, I have installed, he entry "from tkinter import *"
> doesn't produce any error message, but "tk = TK()" results in
> "NameError: 'TK' is not defined". Also for the word "canvas"

Python is CaSe-SEnsITiVe. TK() is different from Tk() and canvas is
different from Canvas. Also, Python 2.x's Tkinter has been renamed to
python 3.x's tkinter



More information about the Tutor mailing list