[pygtk] Left align a widget in a VBox

Abhijeet Rastogi abhijeet.1989 at gmail.com
Sun Sep 18 11:40:00 WST 2011


I have just started developing GUI using pygtk & as a part of learning
pocess, I made this simple GUI to add two numbers.

http://i.imgur.com/tIT7A.png

Now, I want the "Result is: 14" to come to the left most area (right now, as
you can see, its in the middle). How can I achieve that?

My layout is like this:

1. All widgets are in VBox layout.
2. The two buttons at the bottom are in HBox layout which are then packed in
Vox.

My complete code to the program: http://sprunge.us/KDgd?python   (remove
?python if you want to see textonly version).

I have also tried using self.label_result.set_justify() but I guess, its
just for the text inside the label widget.

So, what is it that I should do to solve the problem?

-- 
Regards,
Abhijeet Rastogi (shadyabhi)
http://www.google.com/profiles/abhijeet.1989
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110918/830dc666/attachment.html>


More information about the pygtk mailing list