[docs] Little demo program for curses with Python's Howto (lineograph.py)

Sandro Tosi sandro.tosi at gmail.com
Mon Oct 31 17:27:02 CET 2011


Hello Edoardo,

On Mon, Oct 17, 2011 at 19:07, Edoardo <edonan at gmail.com> wrote:
> Hi,
> reading the curses programming HOWTO
> (http://docs.python.org/dev/howto/curses.html) I noticed it lacks a
> full running demo.
> Moreover, the document ends inviting developers to contribuite with a
> short program.
>
> I took such invitation and this is my two cents: a program that turns
> the terminal into a lineographic tool (kind of Etch A Sketch).
> It uses only the curses facilities explained in the HOWTO (except
> window.getmaxyx(), that is trivial) and works with both Python 2.7.1+
> and Python 3.2.
> Input controls are arrow keys to paint and "q" to quit.

Thanks a lot for your contribution: would you like to file an issue at
http://bugs.python.org attaching your code (maybe as a proper patch)?
This way, more eyes will look into it.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list