Package kiwi :: Module decorators :: Class signal_block
[frames | no frames]

Type signal_block

object --+
         |
        signal_block


A decorator to be used on kiwi.ui.views.SlaveView methods. It takes a list of arguments which is the name of the widget and the signal name separated by a dot.

For instance:
>>> class MyView(SlaveView):
...     @signal_block('money.changed')
...     def update_money(self):
...         self.money.set_value(10)
...     def on_money__changed(self):
...         pass
When calling update_money() the value of the spinbutton called money will be updated, but on_money__changed will not be called.
Generated by Epydoc 2.1 on Fri Mar 23 15:56:54 2007 http://epydoc.sf.net