import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLineEdit
def onChangeText():
Text = fieldEdit.text()
print(Text)
app = QApplication(sys.argv)
widget = QWidget()
fieldEdit = QLineEdit(widget)
fieldEdit.move(70 , 20)
fieldEdit.resize(200 , 30)
fieldEdit.textChanged.connect(onChangeText)
widget.setGeometry(100,100,400,200)
widget.setWindowTitle("QLineEdit Input Text Field !")
widget.show()
sys.exit(app.exec_())
Younes Derfoufi
my-courses.net
my-courses.net