mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-09 19:40:18 +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
|
||||
@@ -6,7 +7,7 @@ from textual.widgets import Label, Input, Button
|
||||
|
||||
class EditDiaryModal(ModalScreen[tuple[int,str]]):
|
||||
BINDINGS = [
|
||||
("escape", "cancel", "Cancel"),
|
||||
Binding("escape", "cancel", "Cancel"),
|
||||
]
|
||||
|
||||
def __init__(self, diary_id: int):
|
||||
|
||||
Reference in New Issue
Block a user