Skip to main content
Checkbox(checked=False)

Example

from mirmod.controls import Checkbox

@wob.receiver("value", "enabled", control=Checkbox(checked=False))
def receive_input(self, i):
  self.enabled = i.lower() == "true"
The Checkbox returns a string ("true" or "false"), not a boolean. Convert the value as shown in the example above.

Parameters

NameTypeDescription
checkedboolInitial checked state when the node loads. Default: False.