On Mon, Jan 25, 2010 at 06:50, David López Luengo <[email protected]> wrote:
> Have you got an idea of how can i get horizontally or vertically
> representation whenever it is necessary?

If you don't need to change the orientation at a later time, the
easiest way to do this would be to change your MyNewBox to a factory
method:

def MyNewBox(orientation):
    if orientation == HORIZONTAL: return gtk.HBox()
    if orientation == VERTICAL: return gtk.VBox()
    raise ValueError("Unknown orientation")

-- 
Michael Urman
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to