[EMAIL PROTECTED] wrote:

> Greetings all,
>
>         I was wondering wether anybody has few lines of code illustrating
> the use of alignement .
>
>         Thanks all

[START]
label = GtkLabel("Hello")    # create label
vbox.pack_start(label, FALSE, FALSE, 0)   # pack it into vbox
label.set_alignment(0, 0.5)    # re-align it, pushing it all the way to the
left
label.show()  # show label
[END]

set_alignment(xalign, yalign, xscale, yscale)

You will want to make sure there's extra room around "label" for it to
change alignment...

I've never used xscale and yscale, but xalign and yalign are anywhere from 0
to 1, similar to percentages.  In the example above, it aligns label all the
way to left (0 x), and halfway between top and bottom (0.5 y)

Hope this helps!

 -lf

-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to