Python-list Digest, Vol 74, Issue 245

Threader Slash threaderslash at gmail.com
Thu Nov 19 17:00:36 EST 2009


On Thu, Nov 19, 2009 at 7:05 PM, <python-list-request at python.org> wrote:

>
> ----------  ----------
> From: Threader Slash <threaderslash at gmail.com>
> To: python-list at python.org
> Date: Thu, 19 Nov 2009 14:51:27 +1100
> Subject: Qt Python radiobutton: activate event
> Hi Guys,
>
> I am trying to get the choice made by the user on Python Qt with
> radiobutton.
>
> QtCore.QObject.connect(self.radioButton1,
> QtCore.SIGNAL("toggled()"),self.radio_activateInput)
> QtCore.QObject.connect(self.radioButton2,
> QtCore.SIGNAL("toggled()"),self.radio_activateInput)
>
> and that
>
> QtCore.QObject.connect(self.performGroupBox,
> QtCore.SIGNAL("toggled()"),self.radio_activateInput)
>
> But it didn't make anything when I click on the option.
>
> Yes, I have enabled it:
>
> self.radioButton1.setCheckable(True)
> self.radioButton1.setChecked(True)
> self.radioButton2.setCheckable(True)
>
> Any suggestion?
>
>
> ---------- Forwarded message ----------
>

Here is solution... now working:

QtCore.QObject.connect(self.radioButton1,QtCore.SIGNAL("toggled(bool)"),self.radio_activateInput)

when have the parameter bool included into toggled to signal, it worked.

ThreadeSlash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091120/2330cac7/attachment.html>


More information about the Python-list mailing list