Python GUI Tutorial - 17 - Canvas - create rectangle | Tkinter

preview_player
Показать описание
In this video, you'll learn, how we can draw rectangle in tkinter.

to draw a rectangle on canvas we'll use create_rectangle() method of Canvas.

we can pass other arguments also like fill = for filling the color , bd = for border, outline= for border color.

example -

from tkinter import *

root = Tk()

canvas = Canvas(width=400, height=400, bg='blue')

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

so i'm sure your queries like -
- how we can create rectangle on canvas?
- how to draw rectangle on canvas in tkinter?
- how we can fill the color in rectangle in tkinter canvas?
- how we can change border color of rectangle in tkinter?
- how to change color of outline?

have been solved.

if you have any problem related with this video then please let us know in comment box.
Thanks
Рекомендации по теме
Комментарии
Автор

it would be nice if i could speak what ever you are using ..did not get a single word.

johnpro