ruff formatted

This commit is contained in:
Tim Bendt
2025-05-08 12:09:43 -06:00
parent e0e7e6ac76
commit 125f500769
17 changed files with 485 additions and 286 deletions

View File

@@ -18,22 +18,21 @@ class CreateTaskScreen(ModalScreen[str]):
Button("Submit", id="submit", variant="primary"),
),
id="create_task_container",
classes="modal_screen"
classes="modal_screen",
)
@on(Input.Submitted)
def handle_task_args(self) -> None:
input_widget = self.query_one("#task_input", Input)
self.visible = False
self.disabled = True
self.loading = True
task_args = input_widget.value
self.dismiss(task_args)
input_widget = self.query_one("#task_input", Input)
self.visible = False
self.disabled = True
self.loading = True
task_args = input_widget.value
self.dismiss(task_args)
def on_key(self, event) -> None:
if (event.key == "escape" or event.key == "ctrl+c"):
self.dismiss()
if event.key == "escape" or event.key == "ctrl+c":
self.dismiss()
def button_on_click(self, event):
if event.button.id == "cancel":