Kat & Huw
kathuw at swbell.net
Thu Sep 26 01:27:31 EDT 2002
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:
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list