How can send enter key in this code? | Sololearn: Learn to code for FREE!


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

2/24/2017 1:35:02 PM


6 Answers

New Answer


I think that module has a function called : def returnPressed () you may want to read up on it at :


didnt work


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.


look into : .sendline("") or .sendcontrol('m')


You should give a better explanation on what you are trying to accomplish with your code .