Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be5ea23

Browse files
committed
Added new event types and selection types.
1 parent 468c448 commit be5ea23

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lib/lib-stdwin/stdwinevents.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
WE_DRAW = 10 # detail is ((left, top), (right, bottom))
2323
WE_TIMER = 11 # detail is <no object>
2424
WE_DEACTIVATE = 12 # detail is <no object>
25+
WE_EXTERN = 13 # detail is <no object>
26+
WE_KEY = 14 # detail is ???
27+
WE_LOST_SEL = 15 # detail is selection number
28+
WE_CLOSE = 16 # detail is <no object>
2529

2630
# Values for detail when type is WE_COMMAND:
2731

@@ -34,3 +38,9 @@
3438
WC_BACKSPACE = 7 # backspace key
3539
WC_TAB = 8 # tab key
3640
WC_RETURN = 9 # return or enter key
41+
42+
# Selection numbers
43+
44+
WS_CLIPBOARD = 0
45+
WS_PRIMARY = 1
46+
WS_SECONDARY = 2

Lib/stdwin/stdwinevents.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
WE_DRAW = 10 # detail is ((left, top), (right, bottom))
2323
WE_TIMER = 11 # detail is <no object>
2424
WE_DEACTIVATE = 12 # detail is <no object>
25+
WE_EXTERN = 13 # detail is <no object>
26+
WE_KEY = 14 # detail is ???
27+
WE_LOST_SEL = 15 # detail is selection number
28+
WE_CLOSE = 16 # detail is <no object>
2529

2630
# Values for detail when type is WE_COMMAND:
2731

@@ -34,3 +38,9 @@
3438
WC_BACKSPACE = 7 # backspace key
3539
WC_TAB = 8 # tab key
3640
WC_RETURN = 9 # return or enter key
41+
42+
# Selection numbers
43+
44+
WS_CLIPBOARD = 0
45+
WS_PRIMARY = 1
46+
WS_SECONDARY = 2

0 commit comments

Comments
 (0)