samkit-jain/Handwriting-Recognition

name error canvas is not defined

Kalsaniya25 opened this issue · 1 comments

from tkinter import *

tk = Tk()
canvas = canvas(tk, width=500, height= 400)
tk.title("drawing")
canvas.pack()

canvas.mainloop()

please find the issue why it shows the name error :
canvas is not defined.

Hi, Canvas is not used in the latest version and you should switch to that assuming you are not. Also, you have made a typo. Use Canvas() instead of canvas(). That should solve it.