[Urwid] The missing part of my last mail
Rebecca Breu
rebecca at rbreu.de
Wed May 24 05:16:01 EDT 2006
Sorry, somehow I sent my last mail when I wasn't finished yet.
(Damn key bindings...) Oh, and I just see that I sent my incomplete
mail twice *blushes*
So here's the complete last part:
On the web page you write that one needs Python 2.1 or higher in order to use
urwid. But when I ran my program with Python 2.2.0, I had to do some slight
modifications to the urwid code:
1.) The curses module doen't recognize window resizing. Thus, cuses.KEY_RESIZE
doesn't exist. (in curses_display.get_input)
2.) Old Python doesn't like "<string> in <string>", only "<char> in <string>".
In escape.process_keyqueue (line 257), I changed
if run[0] == "esc" or "meta " in run[0]:
to
if run[0] == "esc" or run[0].find("meta " ) >= 0:
Sorry again. I should activate my brain *before* pressing any keys...
Emacs has spoiled me. I can't use any other program without getting
frustrated.
Rebecca (carefully clicking on 'send')
More information about the Urwid
mailing list