This commit is contained in:
vyvir
2024-12-08 12:51:35 +02:00
parent 2c14773644
commit 58f81b8db1
+18 -18
View File
@@ -849,27 +849,27 @@ class VerificationDialog(Gtk.Dialog):
super().__init__(title="Verification code", transient_for=parent, flags=0) super().__init__(title="Verification code", transient_for=parent, flags=0)
else: else:
super().__init__(title="Verification code", flags=0) super().__init__(title="Verification code", flags=0)
self.present() self.present()
self.add_buttons( self.add_buttons(
Gtk.STOCK_CANCEL, Gtk.STOCK_CANCEL,
Gtk.ResponseType.CANCEL, Gtk.ResponseType.CANCEL,
Gtk.STOCK_OK, Gtk.STOCK_OK,
Gtk.ResponseType.OK, Gtk.ResponseType.OK,
) )
self.set_resizable(True) self.set_resizable(True)
self.set_border_width(10) self.set_border_width(10)
labelhelp = Gtk.Label( labelhelp = Gtk.Label(
label="Enter the verification \ncode on your device: " label="Enter the verification \ncode on your device: "
) )
labelhelp.set_justify(Gtk.Justification.CENTER) labelhelp.set_justify(Gtk.Justification.CENTER)
self.entry2 = Gtk.Entry() self.entry2 = Gtk.Entry()
box = self.get_content_area() box = self.get_content_area()
box.add(labelhelp) box.add(labelhelp)
box.add(self.entry2) box.add(self.entry2)
self.show_all() self.show_all()
class WarningDialog(Gtk.Dialog): class WarningDialog(Gtk.Dialog):