'''pacman0.py Jed Yang, 2017-02-08 Skeleton file for Pacman class. ''' from graphics import * class Pacman: pass def testModule(): winHeight = 300 winWidth = 500 win = GraphWin('Pacman Module Test', winWidth, winHeight, autoflush=False) 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 update(24) # pause for roughly 1/24 of a second if __name__ == '__main__': testModule()