[Urwid] Error on running the first tutorial program
Ian Ward
ian at excess.org
Mon Oct 20 12:35:13 EDT 2008
Sharad Ganapathy wrote:
> Ian Ward wrote:
>
>> Hi Sharad,
>>
>> What version of Urwid are you using?
>>
>> What happens when you just try to "import curses" from the python
>> command line?
>>
>> Ian
>
> Ian ,
>
> From the python command line :
>
> >>> print urwid.__version__
> 0.9.8.3
> >>> import curses
> >>> print curses.version
> 2.2
My best guess is that the terminal definitions on your system
(terminfo/termcap) are not set up properly so curses doesn't know how to
query the terminal size.
raw_display just assumes that the terminal uses a common escape sequence
to query the terminal size, which works for most modern terminals.
So, you could either fix your terminfo/termcap (or TERM environment
variable) or use raw_display if it is detecting the screen size properly.
Ian
More information about the Urwid
mailing list