Try something like:
########### untested code
import gobject
class MyClass(gobject.GObject):
#{'signame':(<signal run time>, <signal return type>, (<sig arg1>,...)),..}
__gsignals__ = { "mysig" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
(gobject.TYPE_STRING,)) }
def __init__(self):
gobject.GObject.__init__(self)
def do_something(self):
self.emit("mysig","A message from MyClass")
gobject.type_register(MyClass)
###############
-Brett.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/