code: def close(self, cancelled=False):
          
          self._on_close(cancelled)
          self._scene.remove_effect(self)
docs: Close this temporary pop-up.
  
          :param cancelled: Whether the pop-up was cancelled (e.g. by pressing Esc).