5 Jan 2009 knipknap   » (Journeyer)

Release: SpiffSignal 0.1.0

SpiffSignal is a simple signal/event mechanism for Python. This is the initial release. Instead of screenshots, look at the following example that prints “hello world”:

from SpiffSignal import Trackable

class WatchMe(Trackable):
    def __init__(self):
        Trackable.__init__(self)

    def do_something(self):
        self.signal_emit('did-something', 'hello world')

def my_callback(arg):
    print arg

foo = WatchMe()
foo.signal_connect('did-something', my_callback)
foo.do_something()

Links:
Download
Project page
API documentation
Handbook (PDF)

Syndicated 2009-01-05 17:49:47 from Debain.org

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!