This commit is contained in:
Will McGugan
2021-08-13 21:29:07 +01:00
parent c837e248b5
commit 7140df6418

View File

@@ -2,13 +2,12 @@ from textual.app import App
class Colorizer(App):
async def on_load(self, event):
await self.bind("r", "color('red')")
await self.bind("g", "color('green')")
await self.bind("b", "color('blue')")
async def action_color(self, color:str) -> None:
async def action_color(self, color: str) -> None:
self.background = f"on {color}"