[PyQt] QButtongroup signal buttonclicked

F.A.Pinkse fapinkse at gmail.com
Tue Mar 15 21:43:51 GMT 2011


Hi All,


I have this:

def InitApp(self):

     self.ui.buttonGroup.buttonClicked.connect(ButtonGroupClicked)

def ButtonGroupClicked(clicked):
     print('clicked', clicked)

  When I run this I get:

clicked <PyQt4.QtGui.QRadioButton object at 0x01602078>


How do I communicate which button is clicked with the rest of my suite 
when I only have reference to clicked as QRadiobutton?


Thanks,


Frans.



More information about the PyQt mailing list