mirror of
https://github.com/vyvir/althea.git
synced 2026-06-05 23:09:28 -05:00
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user