Re: [PyQt] Type information for signals

2012-04-25 Thread Phil Thompson
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

[PyQt] Type information for signals

2012-04-24 Thread Andrew Suffield
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