From be5ea2337413f0df95efcbb773a137f9b696635c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 31 Oct 1990 11:26:01 +0000 Subject: [PATCH] Added new event types and selection types. --- Lib/lib-stdwin/stdwinevents.py | 10 ++++++++++ Lib/stdwin/stdwinevents.py | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/Lib/lib-stdwin/stdwinevents.py b/Lib/lib-stdwin/stdwinevents.py index 889dd959829..ab801484228 100644 --- a/Lib/lib-stdwin/stdwinevents.py +++ b/Lib/lib-stdwin/stdwinevents.py @@ -22,6 +22,10 @@ WE_MOVE = 9 # not reported -- reserved for future use WE_DRAW = 10 # detail is ((left, top), (right, bottom)) WE_TIMER = 11 # detail is WE_DEACTIVATE = 12 # detail is +WE_EXTERN = 13 # detail is +WE_KEY = 14 # detail is ??? +WE_LOST_SEL = 15 # detail is selection number +WE_CLOSE = 16 # detail is # Values for detail when type is WE_COMMAND: @@ -34,3 +38,9 @@ WC_CANCEL = 6 # not reported -- turned into KeyboardInterrupt WC_BACKSPACE = 7 # backspace key WC_TAB = 8 # tab key WC_RETURN = 9 # return or enter key + +# Selection numbers + +WS_CLIPBOARD = 0 +WS_PRIMARY = 1 +WS_SECONDARY = 2 diff --git a/Lib/stdwin/stdwinevents.py b/Lib/stdwin/stdwinevents.py index 889dd959829..ab801484228 100755 --- a/Lib/stdwin/stdwinevents.py +++ b/Lib/stdwin/stdwinevents.py @@ -22,6 +22,10 @@ WE_MOVE = 9 # not reported -- reserved for future use WE_DRAW = 10 # detail is ((left, top), (right, bottom)) WE_TIMER = 11 # detail is WE_DEACTIVATE = 12 # detail is +WE_EXTERN = 13 # detail is +WE_KEY = 14 # detail is ??? +WE_LOST_SEL = 15 # detail is selection number +WE_CLOSE = 16 # detail is # Values for detail when type is WE_COMMAND: @@ -34,3 +38,9 @@ WC_CANCEL = 6 # not reported -- turned into KeyboardInterrupt WC_BACKSPACE = 7 # backspace key WC_TAB = 8 # tab key WC_RETURN = 9 # return or enter key + +# Selection numbers + +WS_CLIPBOARD = 0 +WS_PRIMARY = 1 +WS_SECONDARY = 2