3 Ekim 2012 Çarşamba

SpiffSignal 0.1.0

To contact us Click HERE

SpiffSignal A signal/event mechanism for Python

SpiffSignal is a Python library that implements a simple signal/event mechanism:

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()



Product's homepage

Requirements:



· Python


Download SpiffSignal 0.1.0 Free
Tags: signal mechanism   , event mechanism   , Python library   , Python   , signal   , event   ,
def, python, spiffsignal, library, implements, signal/event, mechanismfrom, simple, print argfoo, my_callbackarg print argfoo, 'hello world'def, world'def my_callbackarg, trackable__init__self, my_callbackarg print, selfsignal_emit'did-something', 'hello, print, world'def, my_callbackarg, watchmefoosignal_connect'did-something', requirements, my_callbackfoodo_somethingproduct's, homepage, ·, argfoo

Hiç yorum yok:

Yorum Gönder