Update gui.py

Added event for the basic widget EVENT_ONUPDATE. It will be generated at specified rate time when it is set up the setUpdateTimer for a widget.