From 42db236291400ca87f80a8b7bab33f147207b437 Mon Sep 17 00:00:00 2001 From: NosokYT <100868283+Nosok2011@users.noreply.github.com> Date: Tue, 25 Jul 2023 23:49:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BD=D0=B5=D1=81=D1=83=D1=89=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B2=D1=83=D1=8E=D1=89=D0=B8=D0=B5=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B=D0=B5=20=D0=B2=20yes=5Fno?= =?UTF-8?q?=5Fdialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/prompt_toolkit/shortcuts/dialogs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prompt_toolkit/shortcuts/dialogs.py b/src/prompt_toolkit/shortcuts/dialogs.py index 9a4dc8eb9..02ce3d837 100644 --- a/src/prompt_toolkit/shortcuts/dialogs.py +++ b/src/prompt_toolkit/shortcuts/dialogs.py @@ -66,8 +66,8 @@ def no_handler() -> None: title=title, body=Label(text=text, dont_extend_height=True), buttons=[ - Button(text=yes_text, handler=yes_handler, width=width), - Button(text=no_text, handler=no_handler, width=width), + Button(text=yes_text, handler=yes_handler, width=yes_width), + Button(text=no_text, handler=no_handler, width=no_width), ], with_background=True, )