mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -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)
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user