A clone of: https://github.com/nutechsoftware/alarmdecoder This is requires as they dropped support for older firmware releases w/o building in backward compatibility code, and they had previously hardcoded pyserial to a python2 only version.
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.

40 lines
700 B

  1. event Package
  2. *************
  3. "event" Package
  4. ===============
  5. "event" Module
  6. ==============
  7. class class pyad2.event.event.Event(doc=None)
  8. Bases: "object"
  9. class class pyad2.event.event.EventHandler(event, obj)
  10. Bases: "object"
  11. add(func)
  12. Add new event handler function.
  13. Event handler function must be defined like func(sender, earg).
  14. You can add handler also by using '+=' operator.
  15. remove(func)
  16. Remove existing event handler function.
  17. You can remove handler also by using '-=' operator.
  18. fire(earg=None)
  19. Fire event and call all handler functions
  20. You can call EventHandler object itself like e(earg) instead of
  21. e.fire(earg).