mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-09 20:50:17 +00:00
Refactored bindings to use Binding class for consistency across modal and screen components.
This commit is contained in:
parent
b1e83aabbb
commit
8a10fddb14
@@ -1,4 +1,5 @@
|
||||
from textual.app import ComposeResult
|
||||
from textual.binding import Binding
|
||||
from textual.containers import Vertical, Horizontal
|
||||
from textual.screen import ModalScreen
|
||||
from textual.widgets import Label, Input, Button
|
||||
@@ -8,7 +9,7 @@ class RenameEntryModal(ModalScreen[str]):
|
||||
"""A modal screen to rename a diary entry."""
|
||||
|
||||
BINDINGS = [
|
||||
("escape", "cancel", "Cancel"),
|
||||
Binding("escape", "cancel", "Cancel"),
|
||||
]
|
||||
|
||||
def __init__(self, current_name: str):
|
||||
|
||||
Reference in New Issue
Block a user