curses -- getxy() error

2005-07-04 Thread shablool
Hi, Could someone please explain why stdscr.getxy() always raise an exception: import curses import traceback def init(stdscr): x = y = 0 while 1: c = stdscr.getch() if c == ord('q'): break stdscr.addch(c) (x, y) = stdscr.getxy() stdscr.

Re: curses -- getxy() error

2005-07-04 Thread [EMAIL PROTECTED]
shablool wrote: > Could someone please explain why stdscr.getxy() always raise an > exception: [code here] the method is named getyx(), this is old unix heritage. see http://www.python.org/doc/2.0.1/lib/curses-window-objects.html -- http://mail.python.org/mailman/listinfo/python-list

Re: curses -- getxy() error

2005-07-04 Thread shablool
Thanks! (silly me) [EMAIL PROTECTED] wrote: > shablool wrote: > > Could someone please explain why stdscr.getxy() always raise an > > exception: > [code here] > the method is named getyx(), this is old unix heritage. > see http://www.python.org/doc/2.0.1/lib/curses-window-objects.html -- http://

Re: curses -- getxy() error

2005-07-04 Thread Peter Hansen
shablool wrote: > Hi, > Could someone please explain why stdscr.getxy() always raise an > exception: If you post the exception traceback here (the whole thing, cut and pasted from your terminal window), we can show you how to analyze it to determine for yourself exactly what the problem is. Thi

Re: curses -- getxy() error

2005-07-04 Thread [EMAIL PROTECTED]
Peter Hansen wrote: > post the exception traceback here[...], we can show you how to analyze it to > determine for yourself exactly what the problem is true, remember that for the future. and that goes to everybody asking questions here. thing is, I've done enough curses programming (in both Pytho