This example demonstrates how to generate Python code from a multi state machine scenario.
This digital watch was first designed by David Harel, the founder of the Statecharts Theory. He described it in "On Visual Formalisms", published in "Communications of the ACM" in May 1988. A digital watch by that time had a display to show just a few digits. Using four control buttons, the user was able to toggle between displaying the time, displaying the date, using a stopwatch, maintaining an alarm, and setting time, date, and alarm.