Python GUI Tutorial - 18 - Canvas - create oval | Tkinter

Опубликовано: 30 Сентябрь 2024
на канале: Tech-Gram Academy
10,884
67

In this video you're going to learn about how we can draw oval on a canvas in tkinter.

There is a method called create_oval() which takes 4 arguments which represents the coordinates of a rectangle. it will make an ellipse or circle which touches in the middle of edges of the rectangle.
example-

from tkinter import *

root = Tk()

canvas = Canvas(width=400, height=400, bg='blue')
canvas.pack()
canvas.create_oval(100,100,200,200, fill="red")

root.mainloop()

--------------------------------------------------



I am sure your queries like -
- how to create an oval in tkinter?
- how to draw an oval in tkinter?
- how to create an ellipse in tkinter?
- how to draw an ellipse in tkinter?
- how to create a circle in tkinter?
- how to draw a circle in tkinter?
- how to draw circles and ellipse on canvas in tkinter?
- what is create oval in canvas?
- how to use create_oval method in canvas tkinter?
have been solved.

if you have any query related with this video then please let us know in comment box. we'll reply as soon as possible.

Thanks