Text alignment of a label

I have defined a label like this:

label_1 = dialog.get_label("customtext_label", _("Text string") + ":", True, False)

How can I align the text to the left?
(GIMP3, python)

Hi! I believe you would use label_1.set_xalign (0.0)
Gtk.Label.set_xalign

Yes, that did it. Thank you.

1 Like

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.