[Urwid] Bug or improper usage?
Ian Ward
ian at excess.org
Tue Mar 11 21:51:21 EDT 2008
On Tue, 2008-03-11 at 10:56 -0400, Ian Ward wrote:
> Sascha Silbe wrote:
> > File "/usr/lib/python2.4/site-packages/urwid/util.py", line 566, in
> > calc_line_pos
> > if closest_sc is None or ( abs(pref_col-current_sc)
> > TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
> >
>
> Hi Sascha,
>
> It looks like a bug. pref_col (Urwid's attempt to maintain a preferred
> column when moving the cursor up and down between widgets) has been
> really hard to get right. I'll look at this tonight.
This was fixed in the svn version, but you can apply the same patch to
0.9.8.1 (and probably earlier releases):
http://excess.org/urwid/changeset/168
I should put out another bugfix release with this fix included.
Ian
More information about the Urwid
mailing list