[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: No signals from Plasma.ComboBox?
From:       Luca Beltrame <einar () heavensinferno ! net>
Date:       2009-09-30 17:58:50
Message-ID: 200909301958.59356.einar () heavensinferno ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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.

["signature.asc" (application/pgp-signature)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic