Unit tests for DataTable reverse sort

This commit is contained in:
Darren Burns
2023-02-08 12:54:15 +00:00
27 changed files with 274 additions and 143 deletions

View File

@@ -25,8 +25,8 @@ class ColorButton(Static):
self.styles.border = ("tall", self.color)
async def on_click(self) -> None:
# The emit method sends an event to a widget's parent
await self.emit(self.Selected(self, self.color))
# The post_message method sends an event to be handled in the DOM
await self.post_message(self.Selected(self, self.color))
def render(self) -> str:
return str(self.color)