I want to have a left justified label with some bold text in it, but using the following code (which returns no error) the justification isn’t set… Has anyone a clue ? (python2.7, gtk2.24)
label=gtk.Label("<b>"+text+"</b>")
label.set_use_markup(True)
label.set_justify(gtk.JUSTIFY_LEFT)
Thanks in advance !
The PyGTK documentation of
gtk.Label.set_justify()says:Following the link to the
gtk.Misc.set_alignment()documentation shows how to correctly do what you’re asking (if I interpreted your question correctly):