Focus next Control on LineEdit enter.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Skunky

I have 2 LineEdits(mail_in and pass_in) in a menu of mine and i would like the next LineEdit to be focused when the user presses enter on it.

My current not working code would be:

mail_in.connect("text_entered",pass_in,"grab_focus")

but it doesnt work since text_entered returns a string and grab_focus doesnt expect any arguments, so it throws an error.

is there any way to achieve this functionality without having to create an intermediate function in my script that only calls grab_focus without arguments?
since that solution seems quite redundant