On Thursday, August 04, 2011 01:38:10 PM Di Zou wrote: > My code is based on classes. This is how my code looks right now: >
> def Function(self): > addAppButtonGroup = QButtonGroup() > addAppButtonGroup.addButton(addCustomAppButton) > addAppButtonGroup.addButton(addAppleStoreAppButton) > addAppButtonGroup.addButton(addWebLinkButton) > > addAppButtonGroup.setId(addCustomAppButton, 0) > addAppButtonGroup.setId(addAppleStoreAppButton, 1) > addAppButtonGroup.setId(addWebLinkButton, 2) > > self.connect(addAppButtonGroup, SIGNAL("buttonClicked(int)"), try adding self to addAppButtonGroup, I believe it's not staying in memory when the singal is emitted or it can't find it. I tend to do things this way and don't have a problem with it. Mike -- All of the packets are empty. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt