Advertisement
basystyi

Untitled

Apr 29th, 2020
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 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,100], [320,400],width=0,fill="gray")
  7. canv.create_polygon( [250,60],[140,100],[360,100],fill="dim gray")
  8. canv.create_oval([210,110],[290,190], fill="lime")
  9. canv.create_oval([210,210],[290,290], fill="yellow")
  10. canv.create_oval([210,310],[290,390], fill="red")
  11. w1.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement