You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
616B

  1. from modules.core.basetypes import Step
  2. from modules.core.core import cbpi
  3. from modules.core.proptypes import Property
  4. @cbpi.addon.step.type("Dummy Step")
  5. class Dummy(Step):
  6. @cbpi.addon.step.action("WOHOO")
  7. def myaction(self):
  8. self.stop_timer()
  9. self.start_timer(10)
  10. print "HALLO"
  11. text = Property.Text(label="Text", configurable=True, description="WOHOOO")
  12. time = Property.Text(label="Text", configurable=True, description="WOHOOO")
  13. def execute(self):
  14. #print self.text
  15. pass
  16. def reset(self):
  17. print "RESET STEP!!!"
  18. self.stop_timer()