Gerhard =?unknown-8bit?Q?H=E4ring?= gerhard at
Fri Feb 22 15:40:41 EST 2002

Le 22/02/02 ? 15:30, Charles écrivit:
> Anybody know where can i find a GOOD tutorial or explantion
> about ncurse (curses) python module ?

The online version unfortunately contains a few typos. The CVS version
is better.

Before you start coding after reading the first page, wait for the
explanation of curses.wrapper - it's much easier with that.

Your application could look similar to

import curses, time

def mymain(stdscr):
    #stdscr = MyWindow(stdscr)
    while 1:
        stdscr.addstr(10, 10, str(time.asctime()))

mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))

More information about the Python-list mailing list