On Fri, Jun 3, 2011 at 6:55 AM, Umesh Sharma <usharm...@gmail.com> wrote:
> i = input    #waiting till event captured

This doesn't wait for anything.  It assigns the function input to the
local name i.  You probably want "i = input()" instead, which will
force the dos window to stay open until the user hits enter.

Plus, as Mark already pointed out, you'll probably never get any
notification of your event if you're not running the message pump.
I'm not sure how this could "work fine" on the command line.

-- 
Jerry
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to