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,100], [320,400],width=0,fill="gray")
- canv.create_polygon( [250,60],[140,100],[360,100],fill="dim gray")
- canv.create_oval([210,110],[290,190], fill="lime")
- canv.create_oval([210,210],[290,290], fill="yellow")
- canv.create_oval([210,310],[290,390], fill="red")
- w1.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement