Python code written in 1998, how to improve/change it?

Petr Jakes petr at tpc.cz
Sun Jan 22 17:06:32 EST 2006


Sorry, I can't get in. Can you please show me, how to use your approach
on the simple push/push ON/OFF button for example please?

PS: seriously it is not a homework :) and I feel it like a shame I am
asking such a simple questions :(

States: ON, OFF
Transition event: "push", "lift"

transition diagram:
=========================

           ___ lift
          |   |
         _V___|__
     ,->|  ON    |__
     |  |________|  |
lift |              | push
     |   ________   |
     '--|  OFF   |<-'
        |________|
          ^   |
          |___|push




More information about the Python-list mailing list