Comment obtenir la contribution de l'utilisateur dans PYQT5

name, result = QtWidgets.QInputDialog.getText(MainWindow, "Name of the Team",
                                                          "Enter the name of your team:")
# Put this code inside a function and connect it to any signal.
Homely Hare