On Thu, Nov 19, 2009 at 7:05 PM, <python-list-requ...@python.org> wrote:
> > ---------- ---------- > From: Threader Slash <threadersl...@gmail.com> > To: python-list@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
-- http://mail.python.org/mailman/listinfo/python-list