Chapter 2. Static functions in GUI

Allow application to process its events, so the gui can redraw itself. Useful, it it is called periodically while doing some lenthy operation