diff options
author | Guido van Rossum <guido@python.org> | 1992-11-26 09:17:19 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-11-26 09:17:19 (GMT) |
commit | 18fc5696c8be30b56485a20dc48f7f683b472f79 (patch) | |
tree | 97da7e7f67ca99491939ab379614cd64a4f51505 /Lib/lib-stdwin/stdwinevents.py | |
parent | c89705d6975ffb1e4a3764f4f36bab339f969e8f (diff) | |
download | cpython-18fc5696c8be30b56485a20dc48f7f683b472f79.zip cpython-18fc5696c8be30b56485a20dc48f7f683b472f79.tar.gz cpython-18fc5696c8be30b56485a20dc48f7f683b472f79.tar.bz2 |
* mainloop.py: added facility for calling select(). Also added
embryonic facility for pseudo-modal dialogs.
* stdwinevents.py: added modifier masks for key/mouse events
* renamed exceptions in nntplib.py
* Changed string.join() to call string.joinfields() to profit of
strop.joinfields()
Diffstat (limited to 'Lib/lib-stdwin/stdwinevents.py')
-rw-r--r-- | Lib/lib-stdwin/stdwinevents.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/lib-stdwin/stdwinevents.py b/Lib/lib-stdwin/stdwinevents.py index 9f22dd9..62cf8d2 100644 --- a/Lib/lib-stdwin/stdwinevents.py +++ b/Lib/lib-stdwin/stdwinevents.py @@ -44,3 +44,18 @@ WC_RETURN = 9 # return or enter key WS_CLIPBOARD = 0 WS_PRIMARY = 1 WS_SECONDARY = 2 + +# Modifier masks in key and mouse events + +WM_SHIFT = (1 << 0) +WM_LOCK = (1 << 1) +WM_CONTROL = (1 << 2) +WM_META = (1 << 3) +WM_OPTION = (1 << 4) +WM_NUM = (1 << 5) + +WM_BUTTON1 = (1 << 8) +WM_BUTTON2 = (1 << 9) +WM_BUTTON3 = (1 << 10) +WM_BUTTON4 = (1 << 11) +WM_BUTTON5 = (1 << 12) |