0
How can send enter key in this code?
num1, num2, num3= self.qlineedit.text().split() # after insert num1, num2, num3 I want send enter key automatically. #all num1, num2, num3 are three digit numbers
6 ответов
+ 2
I think that module has a function called :
def returnPressed ()
you may want to read up on it at :
https://srinikom.github.io/pyside-docs/PySide/QtGui/QLineEdit.html#PySide.QtGui.PySide.QtGui.QLineEdit.returnPressed
+ 1
didnt work
+ 1
think we have a qlineedit, and we define a function (def add:)when we insert something to qlineedit we want press enter to run add function.
0
look into :
.sendline("") or .sendcontrol('m')
0
You should give a better explanation on what you are trying to accomplish with your code .
0
thanks