[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: *** GMX Spamverdacht *** [PyQt] problem with passing tuple with
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2007-04-26 14:35:44
Message-ID: 20070426143544.GA15245 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]
On 26.04.07 19:39:30, Pradnyesh Sawant wrote:
> Hello,
> I have a pyqt4 code in which i'm trying the signal/slot mechanism. The
> (stripped) code is as follows:
>
> class D(QtCore.QThread):
> def __init__(self):
> QtCore.QThread.__init__(self)
> tpl = ("Primary", "priSec")
> print "tpl:", tpl
> self.emit(QtCore.SIGNAL("setLabel"), tpl)
> QtCore.QObject.connect(d, QtCore.SIGNAL("setLabel"),
> dialog.setLabel, QtCore.Qt.QueuedConnection)
> sys.exit(dialog.exec_())
>
> Can anyone kindly tell me what's happening here?
You have to say which arguments your signal transports, i.e. use
SIGNAL("setLabel(PyObject*)") in both cases. Else your argument will
just be dropped.
Andreas
--
You plan things that you do not even attempt because of your extreme caution.
_______________________________________________
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