[Urwid] Bug or improper usage?

Ian Ward ian at excess.org
Tue Mar 11 10:56:35 EDT 2008


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.

Ian




More information about the Urwid mailing list