Use Gtk.Label.set_{x,y}align()
This commit is contained in:
parent
c7361cdd73
commit
5228edfd74
|
@ -6830,7 +6830,8 @@ class NotebookTab(Gtk.EventBox):
|
||||||
image.show()
|
image.show()
|
||||||
self.label = label = Gtk.Label.new(name)
|
self.label = label = Gtk.Label.new(name)
|
||||||
# left justify the widget
|
# left justify the widget
|
||||||
label.set_halign(Gtk.Align.START)
|
label.set_xalign(0.0)
|
||||||
|
label.set_yalign(0.5)
|
||||||
hbox.pack_start(label, True, True, 0)
|
hbox.pack_start(label, True, True, 0)
|
||||||
label.show()
|
label.show()
|
||||||
self.button = button = Gtk.Button.new()
|
self.button = button = Gtk.Button.new()
|
||||||
|
|
Loading…
Reference in New Issue