layout of panels tweaked
This commit is contained in:
@@ -1,15 +1,24 @@
|
||||
from textual import on
|
||||
from textual.app import ComposeResult, Screen
|
||||
from textual.widgets import Input, Label
|
||||
from textual.containers import Horizontal
|
||||
from textual.app import ComposeResult
|
||||
from textual.screen import ModalScreen
|
||||
from textual.widgets import Input, Label, Button
|
||||
from textual.containers import Horizontal, Vertical
|
||||
|
||||
|
||||
class CreateTaskScreen(Screen[str]):
|
||||
class CreateTaskScreen(ModalScreen[str]):
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Horizontal(
|
||||
Label("$>", id="task_prompt"),
|
||||
Label("task add ", id="task_prompt_label"),
|
||||
Input(placeholder="arguments", id="task_input")
|
||||
yield Vertical(
|
||||
Horizontal(
|
||||
Label("$>", id="task_prompt"),
|
||||
Label("task add ", id="task_prompt_label"),
|
||||
Input(placeholder="arguments", id="task_input"),
|
||||
),
|
||||
Horizontal(
|
||||
Button("Cancel"),
|
||||
Button("Submit")
|
||||
),
|
||||
id="create_task_container",
|
||||
classes="modal_screen"
|
||||
)
|
||||
|
||||
@on(Input.Submitted)
|
||||
|
||||
Reference in New Issue
Block a user