> How can I write this python program?

How can I write this python program?

Posted at: 2014-12-18 
This is the question:

Write a program that allows the user to draw a simple house using five mouse clicks. The first two clicks will be the opposite corners of the rectangular frame of the house. The third click will indicate the center of the top edge of a rectangular door. The door should have a total width that is 1/5 of the house frame. The sides of the door should extend from the corners of the top down to the bottom of the frame. The fourth click will indicate the center of a square window. The window is half as wide as the door. The last click will indicate the peak of the roof. The edges of the roof will extend form the point at the peak to the corners of the top edge of the house frame.

So far I have the rectangular frame lol :

from graphics import *

def main():

win = GraphWin("5 Click House", 230, 170)

win.setCoords(0.0, 0.0,17.0,23.0)

p1 = win.getMouse()

p1.getX()

p1.draw(win)

p2 = win.getMouse()

p2.getY()

p2.draw(win)

rect = Rectangle(p1,p2)

rect.draw(win)

I chose the values 230, 170 and coords 17, 23 because i sketched the house on paper to try to help me along and that's what the increments turned out to be upon measurement