curses troubles

Kat & Huw kathuw at
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 =
    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...
URL: <>

More information about the Python-list mailing list