mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Declutter the status line
This commit is contained in:
@@ -10,6 +10,7 @@ from textual.widget import Widget
|
|||||||
from textual.widgets import Footer, Button, Static
|
from textual.widgets import Footer, Button, Static
|
||||||
from textual.css.query import DOMQuery
|
from textual.css.query import DOMQuery
|
||||||
from textual.reactive import reactive
|
from textual.reactive import reactive
|
||||||
|
from textual.binding import Binding
|
||||||
|
|
||||||
from rich.markdown import Markdown
|
from rich.markdown import Markdown
|
||||||
|
|
||||||
@@ -118,14 +119,14 @@ class Game(Screen):
|
|||||||
|
|
||||||
#: The bindings for the main game grid.
|
#: The bindings for the main game grid.
|
||||||
BINDINGS = [
|
BINDINGS = [
|
||||||
("n", "new_game", "New Game"),
|
Binding("n", "new_game", "New Game"),
|
||||||
("h,question_mark", "app.push_screen('help')", "Help"),
|
Binding("h,question_mark", "app.push_screen('help')", "Help"),
|
||||||
("q", "quit", "Quit"),
|
Binding("q", "quit", "Quit"),
|
||||||
("up,w", "navigate(-1,0)", "Move Up"),
|
Binding("up,w", "navigate(-1,0)", "Move Up", False),
|
||||||
("down,s", "navigate(1,0)", "Move Down"),
|
Binding("down,s", "navigate(1,0)", "Move Down", False),
|
||||||
("left,a", "navigate(0,-1)", "Move Left"),
|
Binding("left,a", "navigate(0,-1)", "Move Left", False),
|
||||||
("right,d", "navigate(0,1)", "Move Right"),
|
Binding("right,d", "navigate(0,1)", "Move Right", False),
|
||||||
("space", "move", "Toggle"),
|
Binding("space", "move", "Toggle", False),
|
||||||
]
|
]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user