Unformatted text preview: program program. Graphics window usually only runs when our program tells it to...which it does in gr.sleep() gr.sleep() function. Our program and graphics program explicitly take turns running. Closing the Graphics Window
OS handles buttons and mouse actions. When graphics program is running, user clicks window's kill button. OS tells graphics program, which ( soon as i ll hi hi h (as it can run) kills the graphics window, and sends message to our program. Our program is in gr.sleep() function, gets gr.sleep() message, and returns False...
View Full Document
- Fall '07