Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get input from user in 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.
 
PREVIOUS NEXT
Tagged: #input #user
ADD COMMENT
Topic
Name
3+3 =