tkinter draw squaer
canvas.create_rectangle(30, 10, 120, 80,
outline="#fb0", fill="#fb0")
tkinter draw squaer
canvas.create_rectangle(30, 10, 120, 80,
outline="#fb0", fill="#fb0")
tkinter create_line
canvas.create_line(15, 25, 200, 25)
tkinter draw squaer
from Tkinter import *
master = Tk()
w = Canvas(master, width=250, height=200)
w.create_rectangle(0, 0, 100, 100, fill="blue", outline = 'blue')
w.create_rectangle(50, 50, 100, 100, fill="red", outline = 'blue')
w.pack()
master.mainloop()
how to draw polygon in tkinter
from tkinter import *
root = Tk()
c = Canvas(root)
c.pack()
points = [x1,y1, x2,y2, xn,yn]
c.create_polygon(points)
root.mainloop()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us