##p1 = FileImage("kitty.gif") ##p2 = FileImage("gude.gif") ##drawPicture(p1, p2) # Write a functino drawPicture that takes in two # IMAGE OBJECTS and hang both pictures on the frame. from cImage import * def drawPicture(pic1, pic2): height = max(pic1.getHeight(), pic2.getHeight()) width = pic1.getWidth() + pic2.getWidth() + 5 myIMWin = ImageWin("New Image", width, height) acc = 0 pic1.setPosition(acc, 0) pic1.draw(myIMWin) acc = acc + pic1.getWidth() + 5 pic2.setPosition(acc, 0) pic2.draw(myIMWin) myIMWin.exitOnClick()