mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Rename buttons in removal tester
This makes it easier for me to see which widget is which in the focus chain, etc, when logging.
This commit is contained in:
@@ -8,11 +8,19 @@ from textual.containers import Container
|
||||
from textual.widgets import Static, Header, Footer, Button
|
||||
|
||||
|
||||
class LeftButton(Button):
|
||||
pass
|
||||
|
||||
|
||||
class RightButton(Button):
|
||||
pass
|
||||
|
||||
|
||||
class NonFocusParent(Static):
|
||||
def compose(self):
|
||||
yield Button("Do Not Press")
|
||||
yield LeftButton("Do Not Press")
|
||||
yield Static("Test")
|
||||
yield Button("Really Do Not Press")
|
||||
yield RightButton("Really Do Not Press")
|
||||
|
||||
|
||||
class FocusRemovalTester(App[None]):
|
||||
|
||||
Reference in New Issue
Block a user