S or /

SourceClass Checkbox

from egui import Checkbox
class Checkbox:

Boolean on/off control with text label.

Usually you'd use Ui.checkbox instead.

Methods§

@staticmethod def from_widget_text(value: Mutable, text: WidgetText) -> Checkbox§
Sourcedef indeterminate(self, /, indeterminate: bool) -> Checkbox§

Display an indeterminate state (neither checked nor unchecked)

This only affects the checkbox's appearance. It will still toggle its boolean value when clicked.

def show(self, /, ui: Ui) -> Response§
def text(self, /, text: Any) -> Checkbox§
def widget_text(self, /, text: WidgetText) -> Checkbox§
def with_class(self, /, class: str) -> Checkbox§
def with_class_if(self, /, class: str, condition: bool) -> Checkbox§
Source@staticmethod def without_text(value: Mutable) -> Checkbox§