ENH: Template code to demonstrate GUI event handling.