Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Gtk justification doesn't work
Post: RE: Gtk justification doesn't work

OK, I finally found the documentation that says set_justify does not work on single line labels, use set_alignment instead. So, for right justification: label.set_alignment(1, 0.5) For left justificat...
rebelxt GUI 2 4,538 Nov-05-2016, 01:52 PM
    Thread: Gtk justification doesn't work
Post: RE: Gtk justification doesn't work

Here is a very small demo: #!/usr/bin/env python3 import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk dialog = Gtk.Dialog(title="Dialog", buttons=(Gtk.STOCK_OK, Gtk.ResponseType...
rebelxt GUI 2 4,538 Nov-05-2016, 11:57 AM
    Thread: Gtk justification doesn't work
Post: Gtk justification doesn't work

Using python3 and Gtk3 in Linux Mint 18. Part of my script is: label=Gtk.label("text") label.set_justify(Gtk.Justification.RIGHT)The text remains in the center of the widget. Should I be doing sometni...
rebelxt GUI 2 4,538 Nov-05-2016, 02:19 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020