<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">I have a bunch of buttons in a button group. </div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">Here is my code:</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "> def Function():</div><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> addAppButtonGroup = QButtonGroup()</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> addAppButtonGroup.addButton(addCustomAppButton)</font></div><div><font class="Apple-style-span"
face="arial, helvetica, sans-serif"> addAppButtonGroup.addButton(addAppleStoreAppButton)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> addAppButtonGroup.addButton(addWebLinkButton)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> </font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> addAppButtonGroup.setId(addCustomAppButton, 0)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> addAppButtonGroup.setId(addAppleStoreAppButton, 1)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"> addAppButtonGroup.setId(addWebLinkButton, 2)</font></div><div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><div> self.connect(addAppButtonGroup, SIGNAL("buttonClicked(int)"), self.AddApplication)</div><div><br></div><div> """</div><div> Code that makes the buttons show up on screen</div><div> """</div><div> </div><div> def AddApplication(id):</div><div> print "hi"</div><div> print id</div><div><br></div><div>The buttons show up. However when I click a button, nothing is printed on screen. How do I get the buttons connected to the AddApplication function?</div><div><br></div><div>Thanks.</div></font></div></div></div></body></html>