diff --git a/docs/examples/widgets/radio_set_changed.py b/docs/examples/widgets/radio_set_changed.py index be0ecbab27..c360cb8687 100644 --- a/docs/examples/widgets/radio_set_changed.py +++ b/docs/examples/widgets/radio_set_changed.py @@ -35,7 +35,7 @@ def on_radio_set_changed(self, event: RadioSet.Changed) -> None: f"Pressed button label: {event.pressed.label}" ) self.query_one("#index", Label).update( - f"Pressed button index: {event.input.pressed_index}" + f"Pressed button index: {event.radio_set.pressed_index}" )