mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 23:01:00 -06:00
ui: add shortcuts
This commit is contained in:
1 parent
b66b3fca18
commit
a265dc6d9d
4 files changed
+80
-19
No files matched your search
@@ -10,8 +10,12 @@ class ExitView(urwid.Overlay):
|
||||
|
||||
def __init__(self, parent: urwid.Widget) -> None:
|
||||
question = urwid.Text(("bold", "Really quit?"), "center")
|
||||
yes_btn = MenuButton("Yes", lambda _user_data: self.exit())
|
||||
no_btn = MenuButton("No", lambda _user_data: self.cancel())
|
||||
yes_btn = MenuButton(
|
||||
"Yes", hint="Y", on_press=lambda _user_data: self.exit()
|
||||
)
|
||||
no_btn = MenuButton(
|
||||
"No", hint="N", on_press=lambda _user_data: self.cancel()
|
||||
)
|
||||
|
||||
line_box = urwid.LineBox(
|
||||
urwid.ListBox(
|
||||
|
||||
Reference in new issue
Block a user