Search Here

Python program to draw Straight Line using inbuilt graphics functions

from tkinter import *
app=Tk()
app.title("Line")

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

canvas.create_line(60,160,280,90,fill='black',width=5)

app.mainloop()

Straight Line using inbuilt graphics functions
Output

No comments:

Post a Comment