I am writing a program in which whenever a user press the button the circle should draw on the window. But I don't know why this button is not working properly.
from tkinter import *
root = Tk()
root.geometry("500x500")
myCanvas = Canvas(root)
myCanvas.pack()
def create_circle(x, y, r, canvasName):
x0 = x - r
y0 = y - r
x1 = x + r
y1 = y + r
return canvasName.create_oval(x0, y0, x1, y1)
buttonCal = Button(myCanvas, text="Submit",
command=lambda: create_circle(200, 200, 80, myCanvas))
buttonCal.pack(padx = 5, pady = 5)
root.mainloop()