connecting a slot to a button in qdialogbuttonbox,self.buttonBox.button(QtGui.QDialogButtonBox.Reset).clicked.connect(foo)