Advertisement
basystyi

Untitled

Apr 29th, 2020
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. from tkinter import *
  2. w1=Tk()
  3. w1.geometry("500x500")
  4. canv=Canvas(w1, width=500, height=500, bg="light blue")
  5. canv.place(x=0,y=0)
  6. canv.create_rectangle([180,150],[160,70],fill="light green")
  7. canv.create_rectangle([150,150],[350,330],fill="indigo")
  8. canv.create_polygon([250,60],[130,160],[370,160],fill="royal blue")
  9. canv.create_rectangle([210,200],[290,260],fill="light gray")
  10. canv.create_line([250,200],[250,260],width=2)
  11. canv.create_line([210,230],[290,230],width=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement