how do I make pyqt5 QLineEdit accept value like input() in normal programing and to call the value to perform a function? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how do I make pyqt5 QLineEdit accept value like input() in normal programing and to call the value to perform a function?

I'm new to pyqt5 and I'm trying to develop an application that can run the program I had already written and perfected. I have also designed the app using QDesigner but I don't know how to make my QLineEdit accept values that can be called to perform certain functions in the rest of the program just like the "input()" function would do in normal python coding. Thanks in advance for helping.

12th Aug 2020, 7:41 AM
Ayomide Akindahunsi
Ayomide Akindahunsi - avatar
1 Answer
0
Download qpython 3l from google store. It has examples. One from there: import androidhelper app = androidhelper.Android() name = app.dialogGetInput("Enter Your Information", "Name:").result app.dialogDismiss() app.dialogCreateAlert("Welcome", "Hello %s" % name) app.dialogSetPositiveButtonText('OK') app.dialogShow()
14th Aug 2020, 5:58 AM
zoldaten
zoldaten - avatar