Use a data type for the various buttons.
Demo a hierchical menu.

- Actually, the reason why the Python demo code was so simple is that it didn't
perform "proper" polling of the buttons (one needs to filter out several similar
events in a row)...