summaryrefslogtreecommitdiffstats
path: root/Lib/getopt.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-13 13:56:28 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-13 13:56:28 (GMT)
commitad4db17552b631bc94a47d75d6de2934f328cc7d (patch)
treef0bc0dbced82408586357005dce8735e18e1d7d0 /Lib/getopt.py
parentd458faadc303cef6fd07b9e22bfa9e08456426cf (diff)
downloadcpython-ad4db17552b631bc94a47d75d6de2934f328cc7d.zip
cpython-ad4db17552b631bc94a47d75d6de2934f328cc7d.tar.gz
cpython-ad4db17552b631bc94a47d75d6de2934f328cc7d.tar.bz2
Fixed the EventHook() code so that it also works on Windows, sort of.
(The "sort of" is because it uses kbhit() to detect that the user starts typing, and then no events are processed until they hit return.) Also fixed a nasty locking bug: EventHook() is called without the Tcl lock set, so it can't use the ENTER_PYTHON and LEAVE_PYTHON macros, which manipulate both the Python and the Tcl lock. I now only acquire and release the Python lock. (Haven't tested this on Unix yet...)
Diffstat (limited to 'Lib/getopt.py')
0 files changed, 0 insertions, 0 deletions