curses troubles
Kat & Huw
kathuw at swbell.net
Thu Sep 26 01:27:31 EDT 2002
Ok, problem.
I'm trying to take user entered data input and store it as a var.
inside an __init__ I have curses set up a window, and display some
options. Then I use:
while 1:
self.k = self.stdscr.ch()
if self.k == ord('G'): do_this()
elif self.k == ord('P'): do_another()
elif self.k == ord('Q'): break
Now, when running this, if I hit either G or P, the applications closes as if I'd hit Q
any idea what I'm doing wrong here?
yours,
Huw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20020926/42f6f973/attachment.html>
More information about the Python-list
mailing list