Hello all,
I am having a problem left justifying the text in a label. I have
included a sample program below. I am trying to left justify the
label text ("This is a test"), but it is showing it centered instead.
Can anybody point out where I am going wrong? Thanks in advance.
--------------------------------------------------------------------------------
import gtk
def main():
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
window.set_title("Left Justify Label")
window.set_size_request(500, 500)
frame = gtk.Frame("Status")
label = gtk.Label("This is a test")
label.set_justify(gtk.JUSTIFY_LEFT)
frame.add(label)
vbox = gtk.VBox(homogeneous=False, spacing=0)
vbox.pack_start(frame, False, False, 0)
window.add(vbox)
window.connect("destroy", gtk.main_quit)
window.show_all()
gtk.main()
if __name__ == "__main__":
main()
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/