def METHOD_NAME(self):
    """Disposes of the contents of an editor."""
    if self.control is not None:  # just in-case
        parent = self.control.GetParent()
        parent.Unbind(
            wx.EVT_TEXT_ENTER,
            handler=self.update_object,
            id=self.control.GetId(),
        )
        self.control.Unbind(wx.EVT_KILL_FOCUS, handler=self.update_object)
    super().METHOD_NAME()