def METHOD_NAME(self):
    """Handles the user changing the contents of the edit control."""
    if self.control is None:
        return
    try:
        self.value = str(self.control.text())
    except TraitError as excp:
        pass