Thank you TwistedTwigleg! I created a script for the LineEdit and it and pasted it in there. Then it worked
First I was trying it in the scipt attached to the Control node. That did not work. Even after changing self to $name_of_node, it did not give me the result. Must be me doing something wrong.
And for those who read this. This is written in the docs about it:
Error connect( String signal, Object target, String method, Array binds=[ ], int flags=0 )
Connects a signal to a method on a target object. Pass optional binds to the call. Use flags to set deferred or one shot connections. See CONNECT_* constants. A signal can only be connected once to a method. It will throw an error if already connected. To avoid this, first use is_connected() to check for existing connections.