'''pacman1.py Jed Yang, 2016-10-14 Skeleton file for Pacman class. ''' from graphics import * class Pacman: def __init__(self, x, y, radius, colour, velocity): pass def makeParts(self): '''Create the parts.''' pass def draw(self, window): '''Draw the parts.''' pass def move(self, dx, dy): '''Move the parts.''' pass def step(self): '''Take one step.''' pass def testModule(): import time winHeight = 300 winWidth = 500 win = GraphWin('Pacman Module Test', winWidth, winHeight) win.setBackground(color_rgb(0,0,0)) # make a Pacman and draw it in the window # pac = Pacman() print('Pacman test. Click the window to quit.') while True: # animate the Pacman if win.checkMouse(): # Why do I use checkMouse() instead of getMouse()? break time.sleep(0.02) if __name__ == '__main__': testModule()