No signals from Plasma.ComboBox?

Luca Beltrame einar at heavensinferno.net
Wed Sep 30 19:58:50 CEST 2009


In data mercoledì 30 settembre 2009 14:09:52, Thomas Olsen ha scritto:

>  QObject.connect(self.currency_from,SIGNAL("activated(PyQt_PyObject)"),self
> .do_convert_from)

In addition to what Aaron said (the signature in quote is not correct), you 
could also use the new PyQt signal API, which is more Pythonic and prevents 
connections not working if you make a typing error.

Basically:

self.currency_form.activated.connect(self.do_convert_form)

so it's object.SIGNAL.connect(SLOT).

Notice that this works only for newer PyQt and SIP versions. In PyKDE4 it 
works most of the time, but not always.

A little OT, but I hope it helps.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090930/624753ca/attachment-0001.sig 


More information about the Plasma-devel mailing list