[pygtk] Left justify content of Vbox.

Gustavo J. A. M. Carneiro gjc at inescporto.pt
Mon Dec 12 22:32:41 WST 2005


Seg, 2005-12-12 às 15:17 +0100, tjas ni escreveu:
> Hi
> 
> I've got a gtk.VBox(False, 0) to hold some of my content.
> But that content is aligned at the center.
> So I wonder how I can make my content (gtk.Label) to be justified to
> the left of my box.
> Do I need to create an Hbox inside my Vbox?

try: label.set_alignment(0, 0.5)

http://www.pygtk.org/pygtk2reference/class-gtkmisc.html#method-gtkmisc--set-alignment

> 
> 
> Thanks for any input!
> 
> 
> 
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
Gustavo J. A. M. Carneiro
<gjc at inescporto.pt> <gustavo at users.sourceforge.net>
The universe is always one step beyond logic.



More information about the pygtk mailing list