[Tutor] Fw: curses
ALAN GAULD
alan.gauld at btinternet.com
Sat Jul 14 00:36:14 CEST 2007
Returning to the list....
----- Forwarded Message ----
> From: max baseman <dos.fool at gmail.com>
> To: Alan Gauld <alan.gauld at btinternet.com>
> hmm but now i get a error on the same line scr.addch(max_x/2, max_y/
> 2, str(population)[0])
> _curses.error addch() returned ERR
Thats because you are writing outside the screen boundaries.
My mistake, the order of the params is y,x not x,y so it should have been:
scr.addchr(max_y/2,max_x/2, str(population)[0])
Apologies,
Alan G.
More information about the Tutor
mailing list