[PyQt] Simple connect error
Jason H
scorp1us at yahoo.com
Wed Jan 27 06:05:41 GMT 2010
class Main(QGraphicsView):
def __init__(self, useGL=False, parent=None):
pass
@pyqtSlot()
def screenFinished(self):
print "Main.screenFinished"
class Screen(QObject):
finished = pyqtSignal()
def __init__(self, instanceName, main):
QObject.__init__(self)
self.main.screenFinished.connect(self.finished)
gives me the error:
self.main.screenFinished.connect(self.finished)
AttributeError: 'Main' object has no attribute 'screenFinished'
What am I doing wrong?
More information about the PyQt
mailing list