Here's what I use for my classes. I took that out of a tutorial, but
couldn't find the url again.

class_methods = self.__class__.__dict__
callbacks = {}
for method_name in class_methods.keys():
    method = class_methods[method_name]
    if type(method) == types.FunctionType:
        callbacks[method_name] = new.instancemethod(method, self,
self.__class__)
self.xml.signal_autoconnect(callbacks)


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to