<aname="L4"></a><ttclass="py-lineno"> 4</tt><ttclass="py-line"><ttclass="py-docstring">Classes that wish to emit events inherit from L{Publisher}. Interested</tt></tt>
<aname="L5"></a><ttclass="py-lineno"> 5</tt><ttclass="py-line"><ttclass="py-docstring">clients call the L{Publisher.register} method on the object. The</tt></tt>
<aname="L6"></a><ttclass="py-lineno"> 6</tt><ttclass="py-line"><ttclass="py-docstring">publisher then calls L{Publisher.emit} to emit the event."""</tt></tt>
</div><divid="WeakError-collapsed"style="display:none;"pad="+++"indent="++++"></div><divid="WeakError-expanded"><aname="L12"></a><ttclass="py-lineno"> 12</tt><ttclass="py-line"><ttclass="py-docstring">""" Invoked when a function call is performed on a destroyed method """</tt></tt>
</div><divid="WeakMethodBound.__init__-collapsed"style="display:none;"pad="+++"indent="++++++++"></div><divid="WeakMethodBound.__init__-expanded"><aname="L21"></a><ttclass="py-lineno"> 21</tt><ttclass="py-line"><ttclass="py-comment"># Keep a hard reference on the function itself</tt></tt>
<aname="L31"></a><ttclass="py-lineno"> 31</tt><ttclass="py-line"><ttclass="py-keyword">raise</tt><ttid="link-3"class="py-name"targets="Class Pyblio.Callback.WeakError=Pyblio.Callback.WeakError-class.html"><atitle="Pyblio.Callback.WeakError"class="py-name"href="#"onclick="return doclink('link-3', 'WeakError', 'link-3');">WeakError</a></tt><ttclass="py-op">,</tt><ttclass="py-string">'Method called on dead object'</tt></tt>
</div><divid="WeakMethodFree-collapsed"style="display:none;"pad="+++"indent="++++"></div><divid="WeakMethodFree-expanded"><aname="L45"></a><ttclass="py-lineno"> 45</tt><ttclass="py-line"><ttclass="py-docstring">""" A weak reference on an unbound method """</tt></tt>
<aname="L72"></a><ttclass="py-lineno"> 72</tt><ttclass="py-line"><ttclass="py-docstring">""" Base class for objects that wish to emit signals to registered</tt></tt>
</div><divid="Publisher.emit-collapsed"style="display:none;"pad="+++"indent="++++++++"></div><divid="Publisher.emit-expanded"><aname="L84"></a><ttclass="py-lineno"> 84</tt><ttclass="py-line"><ttclass="py-docstring">""" Call this method to emit a signal. Registered client will</tt></tt>
<aname="L85"></a><ttclass="py-lineno"> 85</tt><ttclass="py-line"><ttclass="py-docstring"> have their callbacks automatically invoked, with the specified</tt></tt>
<aname="L105"></a><ttclass="py-lineno">105</tt><ttclass="py-line"><ttclass="py-docstring">""" Clients interested in a given signal must register with</tt></tt>
<aname="L106"></a><ttclass="py-lineno">106</tt><ttclass="py-line"><ttclass="py-docstring"> this method. The optional args are passed as the last</tt></tt>
<aname="L107"></a><ttclass="py-lineno">107</tt><ttclass="py-line"><ttclass="py-docstring"> arguments (after the emit arguments) to the callback. """</tt></tt>
</div><divid="Publisher.unregister-collapsed"style="display:none;"pad="+++"indent="++++++++"></div><divid="Publisher.unregister-expanded"><aname="L114"></a><ttclass="py-lineno">114</tt><ttclass="py-line"><ttclass="py-docstring">""" Stop notifying events for the specified signal/callback</tt></tt>