Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- w1=Tk()
- w1.geometry("500x500")
- canv=Canvas(w1, width=500, height=500, bg="light blue")
- canv.place(x=0,y=0)
- canv.create_rectangle([180,150],[160,70],fill="light green")
- canv.create_rectangle([150,150],[350,330],fill="indigo")
- canv.create_polygon([250,60],[130,160],[370,160],fill="royal blue")
- canv.create_rectangle([210,200],[290,260],fill="light gray")
- canv.create_line([250,200],[250,260],width=2)
- canv.create_line([210,230],[290,230],width=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement