'''pacman0.py Jed Yang, 2016-10-14 Skeleton file for Pacman class. ''' from graphics import * class Pacman: 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()