-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
184 lines (144 loc) · 4.28 KB
/
__init__.py
File metadata and controls
184 lines (144 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
from __future__ import print_function
__all__ = ["ActionEvent", "ComponentEvent", "InputEvent", "MouseEvent"]
from typing import Any, Union
from java.awt import AWTEvent, Component, Point
from java.lang import Object
class ActionEvent(AWTEvent):
ACTION_FIRST = None # type: int
ACTION_LAST = None # type: int
ACTION_PERFORMED = None # type: int
ACTION_MASK = None # type: int
CTRL_MASK = None # type: int
META_MASK = None # type: int
SHIFT_MASK = None # type: int
def __init__(self, source, id, *args):
# type: (Object, int, *Any) -> None
print(args)
super(ActionEvent, self).__init__(source, id)
def getActionCommand(self):
# type: () -> Union[str, unicode]
pass
def getModifiers(self):
# type: () -> int
pass
def getWhen(self):
# type: () -> long
pass
class ComponentEvent(AWTEvent):
COMPONENT_FIRST = None # type: int
COMPONENT_HIDDEN = None # type: int
COMPONENT_LAST = None # type: int
COMPONENT_MOVED = None # type: int
COMPONENT_RESIZED = None # type: int
COMPONENT_SHOWN = None # type: int
def __init__(self, source, id):
# type: (Object, int) -> None
super(ComponentEvent, self).__init__(source, id)
def getComponent(self):
# type: () -> Component
pass
class InputEvent(ComponentEvent):
ALT_DOWN_MASK = None # type: int
ALT_GRAPH_DOWN_MASK = None # type: int
ALT_GRAPH_MASL = None # type: int
ALT_MASK = None # type: int
BUTTON1_DOWN_MASK = None # type: int
BUTTOM1_MASK = None # type: int
BUTTON2_DOWN_MASK = None # type: int
BUTTON2_MASK = None # type: int
BUTTON3_DOWN_MASK = None # type: int
BUTTON3_MASK = None # type: int
CTRL_DOWN_MASK = None # type: int
CTRL_MASK = None # type: int
META_DOWN_MASK = None # type: int
META_MASK = None # type: int
SHIFT_DOWN_MASK = None # type: int
SHIFT_MASK = None # type: int
def consume(self):
# type: () -> None
pass
@staticmethod
def getMaskForButton(button):
# type: (int) -> int
pass
def getModifiersEx(self):
# type: () -> int
pass
@staticmethod
def getModifiersExText(modifiers):
# type: (int) -> Union[str, unicode]
pass
def getWhen(self):
# type: () -> long
pass
def isAltDown(self):
# type: () -> bool
return True
def isAltGraphDown(self):
# type: () -> bool
return True
def isConsumed(self):
# type: () -> bool
return True
def isControlDown(self):
# type: () -> bool
return True
def isMetaDown(self):
# type: () -> bool
return True
def isShiftDown(self):
# type: () -> bool
return True
class MouseEvent(InputEvent):
BUTTON1 = None # type: int
BUTTON2 = None # type: int
BUTTON3 = None # type: int
MOUSE_CLICKED = None # type: int
MOUSE_DRAGGED = None # type: int
MOUSE_ENTERED = None # type: int
MOUSE_EXITED = None # type: int
MOUSE_FIRST = None # type: int
MOUSE_LAST = None # type: int
MOUSE_MOVED = None # type: int
MOUSE_PRESSED = None # type: int
MOUSE_RELEASED = None # type: int
MOUSE_WHEEL = None # type: int
NOBUTTON = None # type: int
def __init__(self, source, id, *args):
# type: (Component, int, *Any) -> None
print(args)
super(MouseEvent, self).__init__(source, id)
def getButton(self):
# type: () -> int
pass
def getClickCount(self):
# type: () -> int
pass
def getLocationOnScreen(self):
# type: () -> Point
pass
@staticmethod
def getMouseModifiersText(modifiers):
# type: (int) -> Union[str, unicode]
pass
def getPoint(self):
# type: () -> Point
pass
def getX(self):
# type: () -> int
pass
def getXOnScreen(self):
# type: () -> int
pass
def getY(self):
# type: () -> int
pass
def getYOnScreen(self):
# type: () -> int
pass
def isPopupTrigger(self):
# type: () -> bool
return True
def translatePoint(self, x, y):
# type: (int, int) -> None
pass