Search Here

Python program to draw Rectangle using inbuilt graphics functions

from tkinter import *

app=Tk()
app.title("Rectangle")

canvas=Canvas(app)
canvas.pack()
canvas.config(width=400,height=400)

canvas.create_rectangle(100, 100, 300, 200, outline="black", fill="", width=2)

app.mainloop()

Rectangle using inbuilt graphics functions
Output

No comments:

Post a Comment