]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added new event types and selection types.
authorGuido van Rossum <guido@python.org>
Wed, 31 Oct 1990 11:26:01 +0000 (11:26 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 31 Oct 1990 11:26:01 +0000 (11:26 +0000)
Lib/lib-stdwin/stdwinevents.py
Lib/stdwin/stdwinevents.py

index 889dd9598292b6c9650dae1c6857781ca9495c4e..ab801484228012955ab075e44927be628d345f5e 100644 (file)
@@ -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 <no object>
 WE_DEACTIVATE = 12     # detail is <no object>
+WE_EXTERN     = 13     # detail is <no object>
+WE_KEY        = 14     # detail is ???
+WE_LOST_SEL   = 15     # detail is selection number
+WE_CLOSE      = 16     # detail is <no object>
 
 # 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
index 889dd9598292b6c9650dae1c6857781ca9495c4e..ab801484228012955ab075e44927be628d345f5e 100755 (executable)
@@ -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 <no object>
 WE_DEACTIVATE = 12     # detail is <no object>
+WE_EXTERN     = 13     # detail is <no object>
+WE_KEY        = 14     # detail is ???
+WE_LOST_SEL   = 15     # detail is selection number
+WE_CLOSE      = 16     # detail is <no object>
 
 # 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