How can I control the alignment of widgets (eg labels or checkbuttons)
in a table? All of the widgets in a single column are of the same
type. Is it possible to get them, for example, to left or right
align?
table = gtk.Table(len(keys),2)
table.set_col_spacings(3)
table.set_row_spacings(3)
table.show()
label = gtk.Label(name)
label.show()
#label.set_alignment(xalign=1, yalign=0.5)
entry = gtk.Entry()
entry.show()
table.attach(label, 0, 1, 0, 1, xoptions=gtk.TRUE, yoptions=gtk.TRUE)
table.attach(entry, 1, 2, 0, 1, xoptions=gtk.TRUE, yoptions=gtk.TRUE)
Typically I do something like the above. For labels, I was hopeful
that the set_alignment would help but it did not. But since I have
other widgets (eg, checkbuttons) in other tables, I am looking for a
general solution.
Possible?
Thanks,
JDH
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/