Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This code requires Python 3 and tkinter (which is usually installed by default)
- # This code will NOT work on trinket.io as the tkinter module is not supported
- # TechnologyIsNotDull 2018
- # Not going to win the Turner Prize!
- from shapes import Triangle, Rectangle, Oval
- rect1=Rectangle()
- rect1.set_width(200)
- rect1.set_height(100)
- rect1.set_color("blue")
- rect1.draw()
- rect2=Rectangle()
- rect2.set_width(50)
- rect2.set_height(150)
- rect2.set_color("yellow")
- rect2.set_x(100)
- rect2.set_y(100)
- rect2.draw()
- tri=Triangle(5,200,100,200,100,400,'red')
- tri.draw()
- rectx=Rectangle(40,40,200,200,'green')
- rectx.draw()
- ov1=Oval(50,100,450,150,'purple')
- ov1.draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement