<a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-docstring">Classes that wish to emit events inherit from L{Publisher}. Interested</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"><tt class="py-docstring">clients call the L{Publisher.register} method on the object. The</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"><tt class="py-docstring">publisher then calls L{Publisher.emit} to emit the event."""</tt> </tt>
</div><div id="WeakError-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="WeakError-expanded"><a name="L12"></a><tt class="py-lineno"> 12</tt> <tt class="py-line"> <tt class="py-docstring">""" Invoked when a function call is performed on a destroyed method """</tt> </tt>
</div><div id="WeakMethodBound.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="WeakMethodBound.__init__-expanded"><a name="L21"></a><tt class="py-lineno"> 21</tt> <tt class="py-line"> <tt class="py-comment"># Keep a hard reference on the function itself</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt> <tt class="py-line"> <tt class="py-docstring">""" Base class for objects that wish to emit signals to registered</tt> </tt>
</div><div id="Publisher.emit-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Publisher.emit-expanded"><a name="L84"></a><tt class="py-lineno"> 84</tt> <tt class="py-line"> <tt class="py-docstring">""" Call this method to emit a signal. Registered client will</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt> <tt class="py-line"><tt class="py-docstring"> have their callbacks automatically invoked, with the specified</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt> <tt class="py-line"> <tt class="py-docstring">""" Clients interested in a given signal must register with</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt> <tt class="py-line"><tt class="py-docstring"> this method. The optional args are passed as the last</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt> <tt class="py-line"><tt class="py-docstring"> arguments (after the emit arguments) to the callback. """</tt> </tt>