I'd rather like to be able to write code like this: for name in dir(obj): a = getattr(obj, name) if isinstance(a, QtCore.pyqtSignal): setattr(self, name, a)
Unfortunately, signals of objects are of class pyqtBoundSignal and I can't find a class object to pass to isinstance - does it exist? For similar purposes of metaclass hackery, it would be useful to get the string form out of a signal object so that I can call functions like QObject.connectNotify and QObject.receivers _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt