2 Oct 2011 23:28
Urwid 1.0.0: it seems broken
Goffi <goffi <at> goffi.org>
2011-10-02 21:28:53 GMT
2011-10-02 21:28:53 GMT
G'day, first congrats for this 1.0.0 release, it's always something special for a project :). Unfortunately, I have bad news: after somebody used my XMPP client (with a console frontend based on Urwid) he contacted me because of crashes. I saw he was using the new version, so I upgraded, and realized that my frontend (primitivus, see http://wiki.goffi.org/wiki/Salut_%C3%A0_Toi if you want the sources) is broken with this version. I haven't tracked everything yet, but - the method is_mouse_press is not available any more. After quickly watching the sources, it seems to be now in urwid.util , but I see no mention of that in the CHANGELOG. - I have crashed in my app when I pressed an unicode key (like the french "é"). I quickly looked the code and saw in widget.py, line 983 and beyong: tu = isinstance(text, unicode) [...] if tu: return text.encode('ascii') # follow python2's implicit conversion <=== crash if tu is unicode, the crash is normal (the line should be "return text.encode('utf-8')"), but I'm not sure to understand the intention here, so it probably need more investigation.(Continue reading)
Of course, I was talking generally. Other stuff can be implemented
> But, of course I'm happy to consider patches
> to Urwid with new widgets. That's how the tree widgets were added to 1.0.0
Oki, the only issue is I'm far too busy to review my code, test it and
propose patches for urwid at the moment. I hope I can do that in the
RSS Feed