    def close(self, cancelled=False):
        """
        Close this temporary pop-up.

        :param cancelled: Whether the pop-up was cancelled (e.g. by pressing Esc).
        """
        self._on_close(cancelled)
        self._scene.remove_effect(self)
Close this temporary pop-up.

:param cancelled: Whether the pop-up was cancelled (e.g. by pressing Esc).
asciimatics/widgets/temppopup.py