SourceClass ClosableTag
from egui import ClosableTagclass ClosableTag:A tag to mark a container as closable.
Usually set via UiBuilder.closable.
Ui.close will find the closest parent ClosableTag and set its close field to True.
Use Ui.should_close to check if close has been called.
Properties§
@property
def close(self, /) -> bool§
@close_field.setter
def close_field(self, /, close: bool) -> None§
Methods§
Sourcedef set_close(self, /) -> None§
Set close to True
Sourcedef should_close(self, /) -> bool§
Returns True if ClosableTag.set_close has been called.