6 Apr 2007 17:25
problem with Pile
Iñigo Serna <inigoserna <at> gmail.com>
2007-04-06 15:25:52 GMT
2007-04-06 15:25:52 GMT
Hi all, I'm experimenting with urwid in order to port an old program [1], written using plain curses, and that nowdays is becoming a bit aged due to the lack of flexibity of curses (no unicode, ugly UI code, etc). I've written a simple and quick proof of concept both to train myself in urwid and to test the capabilities and speed of the library. Using 0.9.8. ***test.py*** Lines 227-9. Class Panel, Method Display I have a Frame whose body is a Columns widget with 2 elements, both identical. Each element contains a list of Text => "content". If this Text List is wrapped inside a ListBox(SimpleListWalker(content), it 's rendered correctly. But if I embed it inside a Pile(content) or Filler(Pile(content), height=h) it fails in Text.render method (widget.py:350). ***test2.py*** I've written a small simple code to test it and it works there. Any idea? [1] http://inigo.katxi.org/devel/lfm/ Note that this url contains an outdated version of the program. You can find the last - not public released - at:(Continue reading)
Okay, enough rambling and on to the question, I have been playing with edit.py
example, (and very nice it is too). However, when you have made some text with
line breaks, the cursor will not pass through a line break onto the next line.
How would I extend the example to fix that?
Best Wishes,
Zeth
RSS Feed