mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove some debugging stuff from sandbox/buttons
This commit is contained in:
committed by
Will McGugan
parent
8d6a4adff8
commit
91a31581ae
@@ -14,16 +14,11 @@ class ButtonsApp(App[str]):
|
|||||||
|
|
||||||
def handle_pressed(self, event: Button.Pressed) -> None:
|
def handle_pressed(self, event: Button.Pressed) -> None:
|
||||||
self.app.bell()
|
self.app.bell()
|
||||||
print("pressed", event.button.id)
|
|
||||||
|
|
||||||
async def on_key(self, event: events.Key) -> None:
|
async def on_key(self, event: events.Key) -> None:
|
||||||
await self.dispatch_key(event)
|
await self.dispatch_key(event)
|
||||||
|
|
||||||
def key_a(self):
|
def key_d(self):
|
||||||
print(f"text-success: {self.stylesheet.variables.get('text-success')}")
|
|
||||||
print(
|
|
||||||
f"text-success-darken-1: {self.stylesheet.variables.get('text-success-darken-1')}"
|
|
||||||
)
|
|
||||||
self.dark = not self.dark
|
self.dark = not self.dark
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user