[Urwid] graph.py - widget.py, line 1478 (top_w_size) 'maxrow' not defined

Claude Marinier claude.marinier at drdc-rddc.gc.ca
Tue Oct 3 13:08:49 EDT 2006


I have been trying out urwid. So far, it looks useful and solid except 
for this error. I am running Debian testing on a Compaq DeskPro with 
Python 2.4.4c0 and libcurses 5.5-2.


Traceback (most recent call last):
   File "./graph.py", line 375, in ?
   File "./graph.py", line 372, in main
   File "./graph.py", line 340, in main
     self.ui.run_wrapper( self.run )
   File "/home/marinier/stuff/urwid-0.9.7/urwid/raw_display.py", line 186, in run_wrapper
     return fn()
   File "./graph.py", line 349, in run
     canvas = self.view.render( size, focus=True )
   File "/home/marinier/stuff/urwid-0.9.7/urwid/widget.py", line 1485, in render
     bottom_c = self.bottom_w.render( size )
   File "/home/marinier/stuff/urwid-0.9.7/urwid/widget.py", line 1486, in render
     top_c = self.top_w.render(
   File "/home/marinier/stuff/urwid-0.9.7/urwid/widget.py", line 1478, in top_w_size
     return (maxcol-left-right, maxrow-top-bottom)
NameError: global name 'maxrow' is not defined

Claude Marinier, Information Technology
Defence Research & Development Canada (Ottawa)
claude.marinier at drdc-rddc.gc.ca
Telephone: (613) 998-4901

More information about the Urwid mailing list