Re: [PyQt] Connecting to base class signals in subclass

2010-03-20 Thread Russell Valentine
On 03/19/10 18:45, Demetrius Cassidy wrote: > > I am not sure if this is the intended behavior, but if I subclass a QWidget > instance, and then try to connect to one of those signals in my subclass, I > get a TypeError: > class MyLabel(QtGui.QLabel): > ... def __init__(self): > ...

[PyQt] Connecting to base class signals in subclass

2010-03-19 Thread Demetrius Cassidy
I am not sure if this is the intended behavior, but if I subclass a QWidget instance, and then try to connect to one of those signals in my subclass, I get a TypeError: >>> class MyLabel(QtGui.QLabel): ... def __init__(self): ... self.linkActivated.connect(self._lnkActivated) ...