code: def editText(self, y, x, w, record=True, **kwargs):
          'Wrap global editText with `preedit` and `postedit` hooks.'
          v = self.callHook('preedit') if record else None
          if not v or v[0] is None:
              with EnableCursor():
                  v = editText(self.scr, y, x, w, **kwargs)
          else:
              v = v[0]
  
          if kwargs.get('display', True):
              status('"%s"' % v)
              self.callHook('postedit', v) if record else None
          return f editText(self, y, x, w, record=True, **kwargs):
          'Wrap global editText with `preedit` and `postedit` hooks.'
          v = self.callHook('preedit') if record else None
          if not v or v[0] is None:
              with EnableCursor():
                  v = editText(self.scr, y, x, w, **kwargs)
          else:
              v = v[0]
  
          if kwargs.get('display', True):
              status('"%s"' % v)
              self.callHook('postedit', v) if record else None
          return v
docs: Wrap global editText with `preedit` and `postedit` hooks.