from graphics import *
from time import *

def main():
  win = GraphWin("Sky", 1000, 1000)
  win.setCoords(0,0,1000,1000)
  win.setBackground(color_rgb(180,220,255))
  
  ground = Rectangle(Point(0,0), Point(1000,200))
  ground.draw(win)
  ground.setFill(color_rgb(0,96,0))
  
  win.getMouse()
  
  basket = Rectangle(Point(400,200),Point(450,250))
  basket.draw(win)
  basket.setFill("brown")

  wire1 = Line(Point(400,250),Point(400,350))
  wire1.draw(win)
  wire2 = Line(Point(450,250),Point(450,350))
  wire2.draw(win)
  
  hot_air_balloon = Circle(Point(425,350),60)
  hot_air_balloon.setFill("white")
  hot_air_balloon.draw(win)
  
  win.getMouse()

  for n in range(400):
    basket.move(0,1)
    wire1.move(0,1)
    wire2.move(0,1)
    hot_air_balloon.move(0,1)
    sleep(0.01)

  win.getMouse()

main()
