您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
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()