views:

190

answers:

1

Hello, I'm a Python newbie.

I need something like Curses library for Python 2.6 or 3.1 to run on Windows and Linux without any code changes.

I need functions for colorizing text and background, for clearing screen, for reading key code without showing letter on screen and for moving text cursor to specidied position.

It must be completely free library.

When I try "import curses" on Windows, compiler says me "ImportError: No module named _curses" both on Python 2.6 and 3.1.

A: 

See http://stackoverflow.com/questions/1244897/curses-like-library-for-cross-platform-console-app-in-python which links to wcurses, a windows library that provides some amount of compatibility with ncurses.

dcrosta
but it's license says it's not free!Also I tried it on Python 2.6 and got an error:"from _WCurses import *ImportError: DLL load failed"but _WCurses.pyd is in folder!
d9k