<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setValue(self, newText):

 """Sets new text into the field"""

        self.text = newText
        self.cursorPosition = len(self.text)
        self._updateImage()