Numeric text field scripting

Good day! I am trying to use a numeric text field to change a .value of a tag when entered.

Is this the correct way? Im very new to python scripting.

The standard procedure is to bind the numeric text field to the tag. Then the update is automatic and no scripting is involved.

  1. Add the component.
  2. Add a binding.
  3. Select the tag.
  4. Make it bidirectional.