''' Created on 24.06.2014 @author: volkma_s ''' from mc_control.mc_statemachine import mc_state_machine, mc_event import time if __name__ == '__main__': Port_Up = 0 Port_Down = 1 sm = mc_state_machine(Port_Up, Port_Down) sm.MailBox.put(mc_event.Up) while(1==1): time.sleep(1) print('State = {}'.format(sm.state)) pass