[MERGE] Fix bug #290618 by using the right facilities.

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Oct 29 14:55:44 GMT 2008

>>>>> "Jasper" == Jasper Groenewegen <colbrac at xs4all.nl> writes:

    Jasper> Vincent Ladeuil wrote:
    Jasper> In this case: http://www.pygtk.org/docs/pygtk/class-gtkalignment.html
    >> No gtkalignment in a VBox AFAIK.

    Jasper> AFAIK a gtk.alignment is an element like any other (textbox,
    Jasper> checkbox, divider, etc). As such, you can .add() or .pack_start()
    Jasper> it like any other. The only thing it does is displace the element
    Jasper> you pack/add inside the alignment by the specified amount.

    Jasper> So for a 2 button vbox:
    Jasper> vbox.add(button1)
    Jasper> vbox.add(button2)

    Jasper> you would displace button1 through (pseudocodish)
    Jasper> vbox.add(align1)
    Jasper> align1.add(button1)
    Jasper> align1.set(alignment somehow)
    Jasper> vbox.add(button2)

Duh, of course, silly me. But why did I never needed that while
using glade...


More information about the bzr-gtk mailing list