From 58f81b8db126d86a96f408929b807353e7c22ee1 Mon Sep 17 00:00:00 2001 From: vyvir <135277623+vyvir@users.noreply.github.com> Date: Sun, 8 Dec 2024 12:51:35 +0200 Subject: [PATCH] fix #27 and #44 --- main.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/main.py b/main.py index e1dce87..f9fa525 100644 --- a/main.py +++ b/main.py @@ -849,27 +849,27 @@ class VerificationDialog(Gtk.Dialog): super().__init__(title="Verification code", transient_for=parent, flags=0) else: super().__init__(title="Verification code", flags=0) - self.present() - self.add_buttons( - Gtk.STOCK_CANCEL, - Gtk.ResponseType.CANCEL, - Gtk.STOCK_OK, - Gtk.ResponseType.OK, - ) - self.set_resizable(True) - self.set_border_width(10) + self.present() + self.add_buttons( + Gtk.STOCK_CANCEL, + Gtk.ResponseType.CANCEL, + Gtk.STOCK_OK, + Gtk.ResponseType.OK, + ) + self.set_resizable(True) + self.set_border_width(10) - labelhelp = Gtk.Label( - label="Enter the verification \ncode on your device: " - ) - labelhelp.set_justify(Gtk.Justification.CENTER) + labelhelp = Gtk.Label( + label="Enter the verification \ncode on your device: " + ) + labelhelp.set_justify(Gtk.Justification.CENTER) - self.entry2 = Gtk.Entry() + self.entry2 = Gtk.Entry() - box = self.get_content_area() - box.add(labelhelp) - box.add(self.entry2) - self.show_all() + box = self.get_content_area() + box.add(labelhelp) + box.add(self.entry2) + self.show_all() class WarningDialog(Gtk.Dialog):