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

24th Feb 2017, 1:35 PM
hamid
hamid - avatar
6 odpowiedzi
+ 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
25th Feb 2017, 2:18 AM
Jay
Jay - avatar
+ 1
didnt work
24th Feb 2017, 4:50 PM
hamid
hamid - avatar
+ 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.
24th Feb 2017, 5:12 PM
hamid
hamid - avatar
0
look into : .sendline("") or .sendcontrol('m')
24th Feb 2017, 3:36 PM
Jay
Jay - avatar
0
You should give a better explanation on what you are trying to accomplish with your code .
24th Feb 2017, 4:55 PM
Jay
Jay - avatar
0
thanks
25th Feb 2017, 12:27 PM
hamid
hamid - avatar