This commit is contained in:
2026-01-28 02:23:40 +03:00
parent 0567a3f4a3
commit 2a9281a421
9 changed files with 107 additions and 66 deletions
+21 -3
View File
@@ -1,4 +1,22 @@
from argenta import App
from prompt_toolkit.shortcuts import checkboxlist_dialog
from prompt_toolkit.styles import Style
app = App()
app._autocompleter.initial_setup(set())
results = checkboxlist_dialog(
title="CheckboxList dialog",
text="What would you like in your breakfast ?",
values=[
("eggs", "Eggs"),
("bacon", "Bacon"),
("croissants", "20 Croissants"),
("daily", "The breakfast of the day")
],
style=Style.from_dict({
'dialog': 'bg:#cdbbb3',
'button': 'bg:#bf99a4',
'checkbox': '#e8612c',
'dialog.body': 'bg:#a9cfd0',
'dialog shadow': 'bg:#c98982',
'frame.label': '#fcaca3',
'dialog.body label': '#fd8bb6',
})
).run()