Test that the event aliases are actually the same reference

I thought I thought I wanted what I thought but now I think about it I think
I thought wrong and now I think better.
This commit is contained in:
Dave Pearson
2023-05-04 16:43:20 +01:00
parent 8b36d29e74
commit 6139c95f3a
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ class CheckboxApp(App[None]):
def on_checkbox_changed(self, event: Checkbox.Changed) -> None:
self.events_received.append(
(event.checkbox.id, event.checkbox.value, event.checkbox is event.control)
(event.checkbox.id, event.checkbox.value, event.checkbox == event.control)
)

View File

@@ -19,7 +19,7 @@ class RadioButtonApp(App[None]):
(
event.radio_button.id,
event.radio_button.value,
event.radio_button is event.control,
event.radio_button == event.control,
)
)