Use bottom margin instead of an empty label.

This commit is contained in:
SNoiraud 2022-03-01 17:39:25 +01:00 committed by Nick Hall
parent 69ea2c99d2
commit 1a9a66fbc5

View File

@ -1259,30 +1259,25 @@ class NoviceSelection(ManagedWindow, DbLoader):
mylabel = message
label = Gtk.Label(label=mylabel)
label.set_halign(Gtk.Align.START)
self.window.vbox.pack_start(label, False, True, 0)
label = Gtk.Label(label="")
label.set_margin_bottom(15)
self.window.vbox.pack_start(label, False, True, 0)
label1 = Gtk.Label(label=_("Your databases will be stored in"
" the following databases directory."))
" the following databases directory:"))
label1.set_halign(Gtk.Align.START)
self.window.vbox.pack_start(label1, False, True, 0)
label2 = Gtk.Label(label="")
self.window.vbox.pack_start(label2, False, True, 0)
target = Gtk.Label(label=config.get('database.path'))
target.set_tooltip_text(_("Family Tree Database path"))
target.set_margin_bottom(15)
target.set_halign(Gtk.Align.START)
self.window.vbox.pack_start(target, False, True, 0)
label3 = Gtk.Label(label="")
self.window.vbox.pack_start(label3, False, True, 0)
label4 = Gtk.Label()
label4.set_text(_("You can change the database directory above"
" using:\nEdit -> Preferences -> Family Tree"
"\nwith the 'Family Tree Database path' field."))
label4.set_halign(Gtk.Align.START)
label4.set_margin_bottom(15)
self.window.vbox.pack_start(label4, False, True, 0)
label5 = Gtk.Label(label="")
self.window.vbox.pack_start(label5, False, True, 0)
label6 = Gtk.Label(label=_("Your database name. You can change it."))
label6 = Gtk.Label(label=_("Your database name. You can change it:"))
label6.set_halign(Gtk.Align.START)
self.window.vbox.pack_start(label6, False, True, 0)
self.__targetname = Gtk.Entry()
@ -1309,9 +1304,8 @@ class NoviceSelection(ManagedWindow, DbLoader):
Gtk.STOCK_OK, Gtk.ResponseType.OK
)
self.__targetname.set_tooltip_text(_("The name of your database"))
self.__targetname.set_margin_bottom(15)
self.window.vbox.pack_start(self.__targetname, False, True, 0)
label7 = Gtk.Label(label="")
self.window.vbox.pack_start(label7, False, True, 0)
load_db = Gtk.Button(label=_("Load a gedcom/gramps file?"))
load_db.set_tooltip_text(_("Click here if you want to load a gedcom/"
"gramps file."))