All pastes #507482 Raw Edit

Stuff

public python v1 · immutable
·published 2007-05-24 16:16 UTC
rendered paste body
import gobjectimport gtkclass Core(gobject.GObject):        __gsignals__ = {        "query-ready" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, [gobject.TYPE_PYOBJECT]),        "initialized" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, []),    }        def __init__(self):    	gobject.GObject.__init__(self)    	    def doit(self):    	self.emit("initialized")    	def on_init(s):	print "TATA"    	c = Core()c.connect("initialized", on_init)c.doit()gtk.main()