On Sun, 22 Apr 2012 08:54:44 +0100, Andrew Suffield
wrote:
> 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 pyqtBound
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