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.

159 lines
7.5 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>event Package &mdash; pyad2usb documentation</title>
  7. <link rel="stylesheet" href="_static/default.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: './',
  12. VERSION: '',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/underscore.js"></script>
  20. <script type="text/javascript" src="_static/doctools.js"></script>
  21. <link rel="top" title="pyad2usb documentation" href="index.html" />
  22. <link rel="up" title="pyad2usb Package" href="pyad2usb.html" />
  23. <link rel="prev" title="pyad2usb Package" href="pyad2usb.html" />
  24. </head>
  25. <body>
  26. <div class="related">
  27. <h3>Navigation</h3>
  28. <ul>
  29. <li class="right" style="margin-right: 10px">
  30. <a href="genindex.html" title="General Index"
  31. accesskey="I">index</a></li>
  32. <li class="right" >
  33. <a href="py-modindex.html" title="Python Module Index"
  34. >modules</a> |</li>
  35. <li class="right" >
  36. <a href="pyad2usb.html" title="pyad2usb Package"
  37. accesskey="P">previous</a> |</li>
  38. <li><a href="index.html">pyad2usb documentation</a> &raquo;</li>
  39. <li><a href="pyad2usb.html" accesskey="U">pyad2usb Package</a> &raquo;</li>
  40. </ul>
  41. </div>
  42. <div class="document">
  43. <div class="documentwrapper">
  44. <div class="bodywrapper">
  45. <div class="body">
  46. <div class="section" id="event-package">
  47. <h1>event Package<a class="headerlink" href="#event-package" title="Permalink to this headline">¶</a></h1>
  48. <div class="section" id="id1">
  49. <h2><tt class="xref py py-mod docutils literal"><span class="pre">event</span></tt> Package<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
  50. <span class="target" id="module-pyad2usb.event"></span></div>
  51. <div class="section" id="module-pyad2usb.event.event">
  52. <span id="event-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">event</span></tt> Module<a class="headerlink" href="#module-pyad2usb.event.event" title="Permalink to this headline">¶</a></h2>
  53. <dl class="class">
  54. <dt id="pyad2usb.event.event.Event">
  55. <em class="property">class </em><tt class="descclassname">pyad2usb.event.event.</tt><tt class="descname">Event</tt><big>(</big><em>doc=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/event/event.html#Event"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.event.event.Event" title="Permalink to this definition">¶</a></dt>
  56. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  57. </dd></dl>
  58. <dl class="class">
  59. <dt id="pyad2usb.event.event.EventHandler">
  60. <em class="property">class </em><tt class="descclassname">pyad2usb.event.event.</tt><tt class="descname">EventHandler</tt><big>(</big><em>event</em>, <em>obj</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/event/event.html#EventHandler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.event.event.EventHandler" title="Permalink to this definition">¶</a></dt>
  61. <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
  62. <dl class="method">
  63. <dt id="pyad2usb.event.event.EventHandler.add">
  64. <tt class="descname">add</tt><big>(</big><em>func</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/event/event.html#EventHandler.add"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.event.event.EventHandler.add" title="Permalink to this definition">¶</a></dt>
  65. <dd><p>Add new event handler function.</p>
  66. <p>Event handler function must be defined like func(sender, earg).
  67. You can add handler also by using &#8216;+=&#8217; operator.</p>
  68. </dd></dl>
  69. <dl class="method">
  70. <dt id="pyad2usb.event.event.EventHandler.remove">
  71. <tt class="descname">remove</tt><big>(</big><em>func</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/event/event.html#EventHandler.remove"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.event.event.EventHandler.remove" title="Permalink to this definition">¶</a></dt>
  72. <dd><p>Remove existing event handler function.</p>
  73. <p>You can remove handler also by using &#8216;-=&#8217; operator.</p>
  74. </dd></dl>
  75. <dl class="method">
  76. <dt id="pyad2usb.event.event.EventHandler.fire">
  77. <tt class="descname">fire</tt><big>(</big><em>earg=None</em><big>)</big><a class="reference internal" href="_modules/pyad2usb/event/event.html#EventHandler.fire"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyad2usb.event.event.EventHandler.fire" title="Permalink to this definition">¶</a></dt>
  78. <dd><p>Fire event and call all handler functions</p>
  79. <p>You can call EventHandler object itself like e(earg) instead of
  80. e.fire(earg).</p>
  81. </dd></dl>
  82. </dd></dl>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="sphinxsidebar">
  89. <div class="sphinxsidebarwrapper">
  90. <h3><a href="index.html">Table Of Contents</a></h3>
  91. <ul>
  92. <li><a class="reference internal" href="#">event Package</a><ul>
  93. <li><a class="reference internal" href="#id1"><tt class="docutils literal"><span class="pre">event</span></tt> Package</a></li>
  94. <li><a class="reference internal" href="#module-pyad2usb.event.event"><tt class="docutils literal"><span class="pre">event</span></tt> Module</a></li>
  95. </ul>
  96. </li>
  97. </ul>
  98. <h4>Previous topic</h4>
  99. <p class="topless"><a href="pyad2usb.html"
  100. title="previous chapter">pyad2usb Package</a></p>
  101. <h3>This Page</h3>
  102. <ul class="this-page-menu">
  103. <li><a href="_sources/pyad2usb.event.txt"
  104. rel="nofollow">Show Source</a></li>
  105. </ul>
  106. <div id="searchbox" style="display: none">
  107. <h3>Quick search</h3>
  108. <form class="search" action="search.html" method="get">
  109. <input type="text" name="q" />
  110. <input type="submit" value="Go" />
  111. <input type="hidden" name="check_keywords" value="yes" />
  112. <input type="hidden" name="area" value="default" />
  113. </form>
  114. <p class="searchtip" style="font-size: 90%">
  115. Enter search terms or a module, class or function name.
  116. </p>
  117. </div>
  118. <script type="text/javascript">$('#searchbox').show(0);</script>
  119. </div>
  120. </div>
  121. <div class="clearer"></div>
  122. </div>
  123. <div class="related">
  124. <h3>Navigation</h3>
  125. <ul>
  126. <li class="right" style="margin-right: 10px">
  127. <a href="genindex.html" title="General Index"
  128. >index</a></li>
  129. <li class="right" >
  130. <a href="py-modindex.html" title="Python Module Index"
  131. >modules</a> |</li>
  132. <li class="right" >
  133. <a href="pyad2usb.html" title="pyad2usb Package"
  134. >previous</a> |</li>
  135. <li><a href="index.html">pyad2usb documentation</a> &raquo;</li>
  136. <li><a href="pyad2usb.html" >pyad2usb Package</a> &raquo;</li>
  137. </ul>
  138. </div>
  139. <div class="footer">
  140. &copy; Copyright 2013, Author.
  141. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2b1.
  142. </div>
  143. </body>
  144. </html>