"bool_control--true_button",
"bool_control--false_button",
}
- value = reactive(False)
- label = reactive("Status")
- true_label = reactive("Start")
- false_label = reactive("Stop")
- swap_red = reactive(False)
- compact = reactive(True)
- control_layout = reactive("vertical")
+ value: reactive[bool] = reactive(False)
+ label: reactive[str] = reactive("Status")
+ true_label: reactive[str] = reactive("Start")
+ false_label: reactive[str] = reactive("Stop")
+ swap_red: reactive[bool] = reactive(False)
+ compact: reactive[bool] = reactive(True)
+ control_layout: reactive[str] = reactive("vertical")
class MsgBase(Message):
control: "BoolControl" = None
- def __init__(self, control):
+ def __init__(self, control: "BoolControl"):
super().__init__()
self.control = control
class SetTrue(MsgBase): ...
def __init__(
self,
- value,
+ value: bool,
label: str = "Boolean",
- true_label = "Start",
- false_label = "Stop",
- swap_red = False,
- compact = True,
+ true_label: str = "Start",
+ false_label: str = "Stop",
+ swap_red: bool = False,
+ compact: bool = True,
*children,
layout = "vertical",
name = None,