[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Beginners - signal - slots - question
From: Henrik Pauli <henrik.pauli () gmail ! com>
Date: 2007-12-22 17:07:07
Message-ID: 200712221807.07623.henrik.pauli () gmail ! com
[Download RAW message or body]
On Saturday 22 December 2007, Phil Thompson wrote:
> On Saturday 22 December 2007, Henrik Pauli wrote:
> >
> [...]
> > QtCore.QObject.connect(self.lineEdit,QtCore.SIGNAL("returnPressed()"),
> > self.blabla)
> > QtCore.QObject.connect(self, QtCore.PYSIGNAL("blabla2"),
> > self.lb_ergebnis,
> > QtCore.SLOT("setText(QString)")) ## no () after a pysignal's name
> >
> > def blabla(self):
> > #some code
> > self.emit( PYSIGNAL("blabla2"), (myString,) )
> > ## N.B. the comma after the argument, that's so it's a tuple.
>
> Note that this is PyQt3. In PyQt4 it is...
>
> self.emit(QtCore.SIGNAL("blabla2"), myString)
>
Ah yes, that's what I get for cheating from the KDE3/Qt3 part of my software,
hehehe! Thanks for the quick correction!
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic