Daniel wrote:
>
> Hi,
>
> Does this library support split-screen scroll back?
>
> I.e. if I have a window where I'm connected to a service such as IRC,
> and I would like to have the 75% upper part of the window to scroll the
> buffer, and the remaining 25% to remain fixed so I can still follow
> current conversations.
Sure, you can use a Pile to split the screen and display anything you
like in each part.
Pile([('weight', 75, top_widget), ('weight', 25, bottom_widget)])
> Does it support having different windows/screens behind eachother? Like
> w3m has tabs, or irssi has multiple windows.
There is no tabbed window widget at the moment, but you can build what
you need with a combination of WidgetWrap, Pile, Columns and your own
tab hiding and showing code.
> Also, how do I check for input from ctrl/meta/shift + key?
Try input_test.py to see what keys Urwid lets you handle.
> For example, I want to have ctrl+l as redraw, or maybe meta+q to quit
CTRL+L is already a redraw command, if you are using the MainLoop class
and don't change the default command_map. META+Q can be handled with a
custom unhandled_input function, see the tutorial for more information.
HTH
Ian
_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid