S or /

SourceClass ModalResponse

from egui import ModalResponse
class ModalResponse:

The response of a modal dialog.

Properties§

@property def any_popup_open(self, /) -> bool§
@property def backdrop_response(self, /) -> Response§
@property def is_top_modal(self, /) -> bool§
@property def response(self, /) -> Response§

Methods§

Sourcedef should_close(self, /) -> bool§

Should the modal be closed? Returns true if: - the backdrop was clicked - this is the topmost modal, no popup is open and the escape key was pressed