title: execute function after click OK (QDialogButtonBox)
body: <p>i am using python 2.7 with PyQT5, this is my button:</p>
  
  <pre><code>self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
  self.buttonBox.setGeometry(QtCore.QRect(50, 240, 341, 32))
  self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
  self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
  self.buttonBox.setObjectName("buttonBox")
  self.buttonBox.clicked.connect(Dialog.accept)
  self.buttonBox.rejected.connect(Dialog.reject)
  </code></pre>
  
  <p>etc....</p>
  
  <pre><code>if __name__ == "__main__":
  
  app = QApplication(sys.argv)
  window = QDialog()
  ui = Ui_Dialog()
  ui.setupUi(window)
  
  window.show()
  sys.exit(app.exec_())
  </code></pre>
  
  <p>how can I execute a function after click OK?? </p>