code: def text_has_changed(self, text):
          
          text = to_text_string(text)
          if text:
              self.lineno = int(text)
          else:
              self.lineno = None
docs: Line edit's text has changed