Hi!

What do I have to do to make a Pile which contains box and flow widgets
behave as a box widget?

I have something like:

    flow1 = urwid.Text("asdf");
    flow2 = urwid.Text(";lkj");
    box1 = urwid.Filler(urwid.Text("laskdfj"));

    widget = urwid.Pile([flow1, flow2, ("fixed", 3, box1)]);
    widget = urwid.Pile([flow1, flow2, box1]);


But when I try to use this widget as a box widget, I get the same error as if
I had used a flow widget.


    ui.draw_screen(dim, widget.render(dim, True));



  File "/home/rbreu/urwid/widget.py", line 180, in render
    def render(self,(maxcol,), focus=False):
ValueError: too many values to unpack



Rebecca



_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to