Returning to the list....

----- Forwarded Message ----
> From: max baseman <[EMAIL PROTECTED]>
> To: Alan Gauld <[EMAIL PROTECTED]>
> 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.



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to