]>
Commit | Line | Data |
---|---|---|
8ab979d7 RD |
1 | # This file was created automatically by SWIG. |
2 | import eventsc | |
3 | ||
4 | from misc import * | |
f6bcfd97 BP |
5 | |
6 | from gdi import * | |
9df61a29 | 7 | class wxEventPtr(wxObjectPtr): |
8ab979d7 RD |
8 | def __init__(self,this): |
9 | self.this = this | |
10 | self.thisown = 0 | |
48115f4a RD |
11 | def __del__(self,eventsc=eventsc): |
12 | if self.thisown == 1 : | |
13 | eventsc.delete_wxEvent(self) | |
1d99702e RD |
14 | def GetEventObject(self, *_args, **_kwargs): |
15 | val = apply(eventsc.wxEvent_GetEventObject,(self,) + _args, _kwargs) | |
8ab979d7 | 16 | return val |
1d99702e RD |
17 | def GetEventType(self, *_args, **_kwargs): |
18 | val = apply(eventsc.wxEvent_GetEventType,(self,) + _args, _kwargs) | |
8ab979d7 | 19 | return val |
1d99702e RD |
20 | def GetId(self, *_args, **_kwargs): |
21 | val = apply(eventsc.wxEvent_GetId,(self,) + _args, _kwargs) | |
8ab979d7 | 22 | return val |
1d99702e RD |
23 | def GetSkipped(self, *_args, **_kwargs): |
24 | val = apply(eventsc.wxEvent_GetSkipped,(self,) + _args, _kwargs) | |
8ab979d7 | 25 | return val |
1d99702e RD |
26 | def GetTimestamp(self, *_args, **_kwargs): |
27 | val = apply(eventsc.wxEvent_GetTimestamp,(self,) + _args, _kwargs) | |
8ab979d7 | 28 | return val |
1d99702e RD |
29 | def SetEventObject(self, *_args, **_kwargs): |
30 | val = apply(eventsc.wxEvent_SetEventObject,(self,) + _args, _kwargs) | |
8ab979d7 | 31 | return val |
1d99702e RD |
32 | def SetEventType(self, *_args, **_kwargs): |
33 | val = apply(eventsc.wxEvent_SetEventType,(self,) + _args, _kwargs) | |
8ab979d7 | 34 | return val |
1d99702e RD |
35 | def SetId(self, *_args, **_kwargs): |
36 | val = apply(eventsc.wxEvent_SetId,(self,) + _args, _kwargs) | |
8ab979d7 | 37 | return val |
1d99702e RD |
38 | def SetTimestamp(self, *_args, **_kwargs): |
39 | val = apply(eventsc.wxEvent_SetTimestamp,(self,) + _args, _kwargs) | |
8ab979d7 | 40 | return val |
1d99702e RD |
41 | def Skip(self, *_args, **_kwargs): |
42 | val = apply(eventsc.wxEvent_Skip,(self,) + _args, _kwargs) | |
8ab979d7 RD |
43 | return val |
44 | def __repr__(self): | |
1d99702e | 45 | return "<C wxEvent instance at %s>" % (self.this,) |
8ab979d7 | 46 | class wxEvent(wxEventPtr): |
48115f4a RD |
47 | def __init__(self,*_args,**_kwargs): |
48 | self.this = apply(eventsc.new_wxEvent,_args,_kwargs) | |
49 | self.thisown = 1 | |
8ab979d7 RD |
50 | |
51 | ||
52 | ||
53 | ||
54 | class wxSizeEventPtr(wxEventPtr): | |
55 | def __init__(self,this): | |
56 | self.this = this | |
57 | self.thisown = 0 | |
1d99702e RD |
58 | def GetSize(self, *_args, **_kwargs): |
59 | val = apply(eventsc.wxSizeEvent_GetSize,(self,) + _args, _kwargs) | |
60 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
8ab979d7 RD |
61 | return val |
62 | def __repr__(self): | |
1d99702e | 63 | return "<C wxSizeEvent instance at %s>" % (self.this,) |
8ab979d7 | 64 | class wxSizeEvent(wxSizeEventPtr): |
48115f4a RD |
65 | def __init__(self,*_args,**_kwargs): |
66 | self.this = apply(eventsc.new_wxSizeEvent,_args,_kwargs) | |
67 | self.thisown = 1 | |
8ab979d7 RD |
68 | |
69 | ||
70 | ||
71 | ||
72 | class wxCloseEventPtr(wxEventPtr): | |
73 | def __init__(self,this): | |
74 | self.this = this | |
75 | self.thisown = 0 | |
1d99702e RD |
76 | def SetLoggingOff(self, *_args, **_kwargs): |
77 | val = apply(eventsc.wxCloseEvent_SetLoggingOff,(self,) + _args, _kwargs) | |
b8b8dda7 | 78 | return val |
1d99702e RD |
79 | def GetLoggingOff(self, *_args, **_kwargs): |
80 | val = apply(eventsc.wxCloseEvent_GetLoggingOff,(self,) + _args, _kwargs) | |
8ab979d7 | 81 | return val |
1d99702e RD |
82 | def Veto(self, *_args, **_kwargs): |
83 | val = apply(eventsc.wxCloseEvent_Veto,(self,) + _args, _kwargs) | |
8ab979d7 | 84 | return val |
1d99702e RD |
85 | def CanVeto(self, *_args, **_kwargs): |
86 | val = apply(eventsc.wxCloseEvent_CanVeto,(self,) + _args, _kwargs) | |
e980740a | 87 | return val |
1d99702e RD |
88 | def GetVeto(self, *_args, **_kwargs): |
89 | val = apply(eventsc.wxCloseEvent_GetVeto,(self,) + _args, _kwargs) | |
8ab979d7 | 90 | return val |
1d99702e RD |
91 | def SetCanVeto(self, *_args, **_kwargs): |
92 | val = apply(eventsc.wxCloseEvent_SetCanVeto,(self,) + _args, _kwargs) | |
b8b8dda7 | 93 | return val |
8ab979d7 | 94 | def __repr__(self): |
1d99702e | 95 | return "<C wxCloseEvent instance at %s>" % (self.this,) |
8ab979d7 | 96 | class wxCloseEvent(wxCloseEventPtr): |
48115f4a RD |
97 | def __init__(self,*_args,**_kwargs): |
98 | self.this = apply(eventsc.new_wxCloseEvent,_args,_kwargs) | |
99 | self.thisown = 1 | |
8ab979d7 RD |
100 | |
101 | ||
102 | ||
103 | ||
104 | class wxCommandEventPtr(wxEventPtr): | |
105 | def __init__(self,this): | |
106 | self.this = this | |
107 | self.thisown = 0 | |
3ca6a5f0 BP |
108 | def IsChecked(self, *_args, **_kwargs): |
109 | val = apply(eventsc.wxCommandEvent_IsChecked,(self,) + _args, _kwargs) | |
110 | return val | |
1d99702e RD |
111 | def Checked(self, *_args, **_kwargs): |
112 | val = apply(eventsc.wxCommandEvent_Checked,(self,) + _args, _kwargs) | |
8ab979d7 | 113 | return val |
1d99702e RD |
114 | def GetExtraLong(self, *_args, **_kwargs): |
115 | val = apply(eventsc.wxCommandEvent_GetExtraLong,(self,) + _args, _kwargs) | |
8ab979d7 | 116 | return val |
1d99702e RD |
117 | def GetInt(self, *_args, **_kwargs): |
118 | val = apply(eventsc.wxCommandEvent_GetInt,(self,) + _args, _kwargs) | |
8ab979d7 | 119 | return val |
1d99702e RD |
120 | def GetSelection(self, *_args, **_kwargs): |
121 | val = apply(eventsc.wxCommandEvent_GetSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 122 | return val |
1d99702e RD |
123 | def GetString(self, *_args, **_kwargs): |
124 | val = apply(eventsc.wxCommandEvent_GetString,(self,) + _args, _kwargs) | |
8ab979d7 | 125 | return val |
1d99702e RD |
126 | def IsSelection(self, *_args, **_kwargs): |
127 | val = apply(eventsc.wxCommandEvent_IsSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 128 | return val |
6999b0d8 RD |
129 | def SetString(self, *_args, **_kwargs): |
130 | val = apply(eventsc.wxCommandEvent_SetString,(self,) + _args, _kwargs) | |
131 | return val | |
132 | def SetExtraLong(self, *_args, **_kwargs): | |
133 | val = apply(eventsc.wxCommandEvent_SetExtraLong,(self,) + _args, _kwargs) | |
134 | return val | |
135 | def SetInt(self, *_args, **_kwargs): | |
136 | val = apply(eventsc.wxCommandEvent_SetInt,(self,) + _args, _kwargs) | |
137 | return val | |
8ab979d7 | 138 | def __repr__(self): |
1d99702e | 139 | return "<C wxCommandEvent instance at %s>" % (self.this,) |
8ab979d7 | 140 | class wxCommandEvent(wxCommandEventPtr): |
48115f4a RD |
141 | def __init__(self,*_args,**_kwargs): |
142 | self.this = apply(eventsc.new_wxCommandEvent,_args,_kwargs) | |
143 | self.thisown = 1 | |
8ab979d7 RD |
144 | |
145 | ||
146 | ||
147 | ||
148 | class wxScrollEventPtr(wxCommandEventPtr): | |
149 | def __init__(self,this): | |
150 | self.this = this | |
151 | self.thisown = 0 | |
1d99702e RD |
152 | def GetOrientation(self, *_args, **_kwargs): |
153 | val = apply(eventsc.wxScrollEvent_GetOrientation,(self,) + _args, _kwargs) | |
8ab979d7 | 154 | return val |
1d99702e RD |
155 | def GetPosition(self, *_args, **_kwargs): |
156 | val = apply(eventsc.wxScrollEvent_GetPosition,(self,) + _args, _kwargs) | |
8ab979d7 RD |
157 | return val |
158 | def __repr__(self): | |
1d99702e | 159 | return "<C wxScrollEvent instance at %s>" % (self.this,) |
8ab979d7 | 160 | class wxScrollEvent(wxScrollEventPtr): |
48115f4a RD |
161 | def __init__(self,*_args,**_kwargs): |
162 | self.this = apply(eventsc.new_wxScrollEvent,_args,_kwargs) | |
163 | self.thisown = 1 | |
8ab979d7 RD |
164 | |
165 | ||
166 | ||
167 | ||
d426c97e RD |
168 | class wxScrollWinEventPtr(wxEventPtr): |
169 | def __init__(self,this): | |
170 | self.this = this | |
171 | self.thisown = 0 | |
172 | def GetOrientation(self, *_args, **_kwargs): | |
173 | val = apply(eventsc.wxScrollWinEvent_GetOrientation,(self,) + _args, _kwargs) | |
174 | return val | |
175 | def GetPosition(self, *_args, **_kwargs): | |
176 | val = apply(eventsc.wxScrollWinEvent_GetPosition,(self,) + _args, _kwargs) | |
177 | return val | |
178 | def __repr__(self): | |
179 | return "<C wxScrollWinEvent instance at %s>" % (self.this,) | |
180 | class wxScrollWinEvent(wxScrollWinEventPtr): | |
48115f4a RD |
181 | def __init__(self,*_args,**_kwargs): |
182 | self.this = apply(eventsc.new_wxScrollWinEvent,_args,_kwargs) | |
183 | self.thisown = 1 | |
d426c97e RD |
184 | |
185 | ||
186 | ||
187 | ||
b639c3c5 RD |
188 | class wxSpinEventPtr(wxScrollEventPtr): |
189 | def __init__(self,this): | |
190 | self.this = this | |
191 | self.thisown = 0 | |
192 | def __repr__(self): | |
1d99702e | 193 | return "<C wxSpinEvent instance at %s>" % (self.this,) |
b639c3c5 | 194 | class wxSpinEvent(wxSpinEventPtr): |
48115f4a RD |
195 | def __init__(self,*_args,**_kwargs): |
196 | self.this = apply(eventsc.new_wxSpinEvent,_args,_kwargs) | |
197 | self.thisown = 1 | |
b639c3c5 RD |
198 | |
199 | ||
200 | ||
201 | ||
8ab979d7 RD |
202 | class wxMouseEventPtr(wxEventPtr): |
203 | def __init__(self,this): | |
204 | self.this = this | |
205 | self.thisown = 0 | |
1d99702e RD |
206 | def IsButton(self, *_args, **_kwargs): |
207 | val = apply(eventsc.wxMouseEvent_IsButton,(self,) + _args, _kwargs) | |
8ab979d7 | 208 | return val |
1d99702e RD |
209 | def ButtonDown(self, *_args, **_kwargs): |
210 | val = apply(eventsc.wxMouseEvent_ButtonDown,(self,) + _args, _kwargs) | |
8ab979d7 | 211 | return val |
1d99702e RD |
212 | def ButtonDClick(self, *_args, **_kwargs): |
213 | val = apply(eventsc.wxMouseEvent_ButtonDClick,(self,) + _args, _kwargs) | |
8ab979d7 | 214 | return val |
1d99702e RD |
215 | def ButtonUp(self, *_args, **_kwargs): |
216 | val = apply(eventsc.wxMouseEvent_ButtonUp,(self,) + _args, _kwargs) | |
8ab979d7 | 217 | return val |
1d99702e RD |
218 | def Button(self, *_args, **_kwargs): |
219 | val = apply(eventsc.wxMouseEvent_Button,(self,) + _args, _kwargs) | |
8ab979d7 | 220 | return val |
1d99702e RD |
221 | def ButtonIsDown(self, *_args, **_kwargs): |
222 | val = apply(eventsc.wxMouseEvent_ButtonIsDown,(self,) + _args, _kwargs) | |
8ab979d7 | 223 | return val |
1d99702e RD |
224 | def ControlDown(self, *_args, **_kwargs): |
225 | val = apply(eventsc.wxMouseEvent_ControlDown,(self,) + _args, _kwargs) | |
8ab979d7 | 226 | return val |
1d99702e RD |
227 | def MetaDown(self, *_args, **_kwargs): |
228 | val = apply(eventsc.wxMouseEvent_MetaDown,(self,) + _args, _kwargs) | |
8ab979d7 | 229 | return val |
1d99702e RD |
230 | def AltDown(self, *_args, **_kwargs): |
231 | val = apply(eventsc.wxMouseEvent_AltDown,(self,) + _args, _kwargs) | |
8ab979d7 | 232 | return val |
1d99702e RD |
233 | def ShiftDown(self, *_args, **_kwargs): |
234 | val = apply(eventsc.wxMouseEvent_ShiftDown,(self,) + _args, _kwargs) | |
8ab979d7 | 235 | return val |
1d99702e RD |
236 | def LeftDown(self, *_args, **_kwargs): |
237 | val = apply(eventsc.wxMouseEvent_LeftDown,(self,) + _args, _kwargs) | |
8ab979d7 | 238 | return val |
1d99702e RD |
239 | def MiddleDown(self, *_args, **_kwargs): |
240 | val = apply(eventsc.wxMouseEvent_MiddleDown,(self,) + _args, _kwargs) | |
8ab979d7 | 241 | return val |
1d99702e RD |
242 | def RightDown(self, *_args, **_kwargs): |
243 | val = apply(eventsc.wxMouseEvent_RightDown,(self,) + _args, _kwargs) | |
8ab979d7 | 244 | return val |
1d99702e RD |
245 | def LeftUp(self, *_args, **_kwargs): |
246 | val = apply(eventsc.wxMouseEvent_LeftUp,(self,) + _args, _kwargs) | |
8ab979d7 | 247 | return val |
1d99702e RD |
248 | def MiddleUp(self, *_args, **_kwargs): |
249 | val = apply(eventsc.wxMouseEvent_MiddleUp,(self,) + _args, _kwargs) | |
8ab979d7 | 250 | return val |
1d99702e RD |
251 | def RightUp(self, *_args, **_kwargs): |
252 | val = apply(eventsc.wxMouseEvent_RightUp,(self,) + _args, _kwargs) | |
8ab979d7 | 253 | return val |
1d99702e RD |
254 | def LeftDClick(self, *_args, **_kwargs): |
255 | val = apply(eventsc.wxMouseEvent_LeftDClick,(self,) + _args, _kwargs) | |
8ab979d7 | 256 | return val |
1d99702e RD |
257 | def MiddleDClick(self, *_args, **_kwargs): |
258 | val = apply(eventsc.wxMouseEvent_MiddleDClick,(self,) + _args, _kwargs) | |
8ab979d7 | 259 | return val |
1d99702e RD |
260 | def RightDClick(self, *_args, **_kwargs): |
261 | val = apply(eventsc.wxMouseEvent_RightDClick,(self,) + _args, _kwargs) | |
8ab979d7 | 262 | return val |
1d99702e RD |
263 | def LeftIsDown(self, *_args, **_kwargs): |
264 | val = apply(eventsc.wxMouseEvent_LeftIsDown,(self,) + _args, _kwargs) | |
8ab979d7 | 265 | return val |
1d99702e RD |
266 | def MiddleIsDown(self, *_args, **_kwargs): |
267 | val = apply(eventsc.wxMouseEvent_MiddleIsDown,(self,) + _args, _kwargs) | |
8ab979d7 | 268 | return val |
1d99702e RD |
269 | def RightIsDown(self, *_args, **_kwargs): |
270 | val = apply(eventsc.wxMouseEvent_RightIsDown,(self,) + _args, _kwargs) | |
8ab979d7 | 271 | return val |
1d99702e RD |
272 | def Dragging(self, *_args, **_kwargs): |
273 | val = apply(eventsc.wxMouseEvent_Dragging,(self,) + _args, _kwargs) | |
8ab979d7 | 274 | return val |
1d99702e RD |
275 | def Moving(self, *_args, **_kwargs): |
276 | val = apply(eventsc.wxMouseEvent_Moving,(self,) + _args, _kwargs) | |
8ab979d7 | 277 | return val |
1d99702e RD |
278 | def Entering(self, *_args, **_kwargs): |
279 | val = apply(eventsc.wxMouseEvent_Entering,(self,) + _args, _kwargs) | |
8ab979d7 | 280 | return val |
1d99702e RD |
281 | def Leaving(self, *_args, **_kwargs): |
282 | val = apply(eventsc.wxMouseEvent_Leaving,(self,) + _args, _kwargs) | |
8ab979d7 | 283 | return val |
1d99702e RD |
284 | def GetPosition(self, *_args, **_kwargs): |
285 | val = apply(eventsc.wxMouseEvent_GetPosition,(self,) + _args, _kwargs) | |
286 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
8ab979d7 | 287 | return val |
b1462dfa RD |
288 | def GetPositionTuple(self, *_args, **_kwargs): |
289 | val = apply(eventsc.wxMouseEvent_GetPositionTuple,(self,) + _args, _kwargs) | |
290 | return val | |
1d99702e RD |
291 | def GetLogicalPosition(self, *_args, **_kwargs): |
292 | val = apply(eventsc.wxMouseEvent_GetLogicalPosition,(self,) + _args, _kwargs) | |
293 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
8ab979d7 | 294 | return val |
1d99702e RD |
295 | def GetX(self, *_args, **_kwargs): |
296 | val = apply(eventsc.wxMouseEvent_GetX,(self,) + _args, _kwargs) | |
8ab979d7 | 297 | return val |
1d99702e RD |
298 | def GetY(self, *_args, **_kwargs): |
299 | val = apply(eventsc.wxMouseEvent_GetY,(self,) + _args, _kwargs) | |
8ab979d7 | 300 | return val |
7a446686 RD |
301 | def GetWheelRotation(self, *_args, **_kwargs): |
302 | val = apply(eventsc.wxMouseEvent_GetWheelRotation,(self,) + _args, _kwargs) | |
303 | return val | |
304 | def GetWheelDelta(self, *_args, **_kwargs): | |
305 | val = apply(eventsc.wxMouseEvent_GetWheelDelta,(self,) + _args, _kwargs) | |
306 | return val | |
307 | def GetLinesPerAction(self, *_args, **_kwargs): | |
308 | val = apply(eventsc.wxMouseEvent_GetLinesPerAction,(self,) + _args, _kwargs) | |
309 | return val | |
c368d904 RD |
310 | def __setattr__(self,name,value): |
311 | if name == "m_x" : | |
312 | eventsc.wxMouseEvent_m_x_set(self,value) | |
313 | return | |
314 | if name == "m_y" : | |
315 | eventsc.wxMouseEvent_m_y_set(self,value) | |
316 | return | |
317 | if name == "m_leftDown" : | |
318 | eventsc.wxMouseEvent_m_leftDown_set(self,value) | |
319 | return | |
320 | if name == "m_middleDown" : | |
321 | eventsc.wxMouseEvent_m_middleDown_set(self,value) | |
322 | return | |
323 | if name == "m_rightDown" : | |
324 | eventsc.wxMouseEvent_m_rightDown_set(self,value) | |
325 | return | |
326 | if name == "m_controlDown" : | |
327 | eventsc.wxMouseEvent_m_controlDown_set(self,value) | |
328 | return | |
329 | if name == "m_shiftDown" : | |
330 | eventsc.wxMouseEvent_m_shiftDown_set(self,value) | |
331 | return | |
332 | if name == "m_altDown" : | |
333 | eventsc.wxMouseEvent_m_altDown_set(self,value) | |
334 | return | |
335 | if name == "m_metaDown" : | |
336 | eventsc.wxMouseEvent_m_metaDown_set(self,value) | |
337 | return | |
7a446686 RD |
338 | if name == "m_wheelRotation" : |
339 | eventsc.wxMouseEvent_m_wheelRotation_set(self,value) | |
340 | return | |
341 | if name == "m_wheelDelta" : | |
342 | eventsc.wxMouseEvent_m_wheelDelta_set(self,value) | |
343 | return | |
344 | if name == "m_linesPerAction" : | |
345 | eventsc.wxMouseEvent_m_linesPerAction_set(self,value) | |
346 | return | |
c368d904 RD |
347 | self.__dict__[name] = value |
348 | def __getattr__(self,name): | |
349 | if name == "m_x" : | |
350 | return eventsc.wxMouseEvent_m_x_get(self) | |
351 | if name == "m_y" : | |
352 | return eventsc.wxMouseEvent_m_y_get(self) | |
353 | if name == "m_leftDown" : | |
354 | return eventsc.wxMouseEvent_m_leftDown_get(self) | |
355 | if name == "m_middleDown" : | |
356 | return eventsc.wxMouseEvent_m_middleDown_get(self) | |
357 | if name == "m_rightDown" : | |
358 | return eventsc.wxMouseEvent_m_rightDown_get(self) | |
359 | if name == "m_controlDown" : | |
360 | return eventsc.wxMouseEvent_m_controlDown_get(self) | |
361 | if name == "m_shiftDown" : | |
362 | return eventsc.wxMouseEvent_m_shiftDown_get(self) | |
363 | if name == "m_altDown" : | |
364 | return eventsc.wxMouseEvent_m_altDown_get(self) | |
365 | if name == "m_metaDown" : | |
366 | return eventsc.wxMouseEvent_m_metaDown_get(self) | |
7a446686 RD |
367 | if name == "m_wheelRotation" : |
368 | return eventsc.wxMouseEvent_m_wheelRotation_get(self) | |
369 | if name == "m_wheelDelta" : | |
370 | return eventsc.wxMouseEvent_m_wheelDelta_get(self) | |
371 | if name == "m_linesPerAction" : | |
372 | return eventsc.wxMouseEvent_m_linesPerAction_get(self) | |
c368d904 | 373 | raise AttributeError,name |
8ab979d7 | 374 | def __repr__(self): |
1d99702e | 375 | return "<C wxMouseEvent instance at %s>" % (self.this,) |
8ab979d7 | 376 | class wxMouseEvent(wxMouseEventPtr): |
48115f4a RD |
377 | def __init__(self,*_args,**_kwargs): |
378 | self.this = apply(eventsc.new_wxMouseEvent,_args,_kwargs) | |
379 | self.thisown = 1 | |
8ab979d7 RD |
380 | |
381 | ||
382 | ||
383 | ||
384 | class wxKeyEventPtr(wxEventPtr): | |
385 | def __init__(self,this): | |
386 | self.this = this | |
387 | self.thisown = 0 | |
1d99702e RD |
388 | def ControlDown(self, *_args, **_kwargs): |
389 | val = apply(eventsc.wxKeyEvent_ControlDown,(self,) + _args, _kwargs) | |
8ab979d7 | 390 | return val |
1d99702e RD |
391 | def MetaDown(self, *_args, **_kwargs): |
392 | val = apply(eventsc.wxKeyEvent_MetaDown,(self,) + _args, _kwargs) | |
8ab979d7 | 393 | return val |
1d99702e RD |
394 | def AltDown(self, *_args, **_kwargs): |
395 | val = apply(eventsc.wxKeyEvent_AltDown,(self,) + _args, _kwargs) | |
8ab979d7 | 396 | return val |
1d99702e RD |
397 | def ShiftDown(self, *_args, **_kwargs): |
398 | val = apply(eventsc.wxKeyEvent_ShiftDown,(self,) + _args, _kwargs) | |
8ab979d7 | 399 | return val |
1d99702e RD |
400 | def KeyCode(self, *_args, **_kwargs): |
401 | val = apply(eventsc.wxKeyEvent_KeyCode,(self,) + _args, _kwargs) | |
8ab979d7 | 402 | return val |
f6bcfd97 BP |
403 | def GetKeyCode(self, *_args, **_kwargs): |
404 | val = apply(eventsc.wxKeyEvent_GetKeyCode,(self,) + _args, _kwargs) | |
405 | return val | |
406 | def HasModifiers(self, *_args, **_kwargs): | |
407 | val = apply(eventsc.wxKeyEvent_HasModifiers,(self,) + _args, _kwargs) | |
408 | return val | |
48115f4a RD |
409 | def GetX(self, *_args, **_kwargs): |
410 | val = apply(eventsc.wxKeyEvent_GetX,(self,) + _args, _kwargs) | |
411 | return val | |
412 | def GetY(self, *_args, **_kwargs): | |
413 | val = apply(eventsc.wxKeyEvent_GetY,(self,) + _args, _kwargs) | |
414 | return val | |
415 | def GetPosition(self, *_args, **_kwargs): | |
416 | val = apply(eventsc.wxKeyEvent_GetPosition,(self,) + _args, _kwargs) | |
417 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
418 | return val | |
419 | def GetPositionTuple(self, *_args, **_kwargs): | |
420 | val = apply(eventsc.wxKeyEvent_GetPositionTuple,(self,) + _args, _kwargs) | |
421 | return val | |
c368d904 RD |
422 | def __setattr__(self,name,value): |
423 | if name == "m_x" : | |
424 | eventsc.wxKeyEvent_m_x_set(self,value) | |
425 | return | |
426 | if name == "m_y" : | |
427 | eventsc.wxKeyEvent_m_y_set(self,value) | |
428 | return | |
429 | if name == "m_keyCode" : | |
430 | eventsc.wxKeyEvent_m_keyCode_set(self,value) | |
431 | return | |
432 | if name == "m_controlDown" : | |
433 | eventsc.wxKeyEvent_m_controlDown_set(self,value) | |
434 | return | |
435 | if name == "m_shiftDown" : | |
436 | eventsc.wxKeyEvent_m_shiftDown_set(self,value) | |
437 | return | |
438 | if name == "m_altDown" : | |
439 | eventsc.wxKeyEvent_m_altDown_set(self,value) | |
440 | return | |
441 | if name == "m_metaDown" : | |
442 | eventsc.wxKeyEvent_m_metaDown_set(self,value) | |
443 | return | |
444 | if name == "m_scanCode" : | |
445 | eventsc.wxKeyEvent_m_scanCode_set(self,value) | |
446 | return | |
447 | self.__dict__[name] = value | |
448 | def __getattr__(self,name): | |
449 | if name == "m_x" : | |
450 | return eventsc.wxKeyEvent_m_x_get(self) | |
451 | if name == "m_y" : | |
452 | return eventsc.wxKeyEvent_m_y_get(self) | |
453 | if name == "m_keyCode" : | |
454 | return eventsc.wxKeyEvent_m_keyCode_get(self) | |
455 | if name == "m_controlDown" : | |
456 | return eventsc.wxKeyEvent_m_controlDown_get(self) | |
457 | if name == "m_shiftDown" : | |
458 | return eventsc.wxKeyEvent_m_shiftDown_get(self) | |
459 | if name == "m_altDown" : | |
460 | return eventsc.wxKeyEvent_m_altDown_get(self) | |
461 | if name == "m_metaDown" : | |
462 | return eventsc.wxKeyEvent_m_metaDown_get(self) | |
463 | if name == "m_scanCode" : | |
464 | return eventsc.wxKeyEvent_m_scanCode_get(self) | |
465 | raise AttributeError,name | |
8ab979d7 | 466 | def __repr__(self): |
1d99702e | 467 | return "<C wxKeyEvent instance at %s>" % (self.this,) |
8ab979d7 | 468 | class wxKeyEvent(wxKeyEventPtr): |
48115f4a RD |
469 | def __init__(self,*_args,**_kwargs): |
470 | self.this = apply(eventsc.new_wxKeyEvent,_args,_kwargs) | |
471 | self.thisown = 1 | |
472 | ||
473 | ||
474 | ||
475 | ||
eec92d76 | 476 | class wxNavigationKeyEventPtr(wxEventPtr): |
8ab979d7 RD |
477 | def __init__(self,this): |
478 | self.this = this | |
48115f4a RD |
479 | self.thisown = 0 |
480 | def GetDirection(self, *_args, **_kwargs): | |
481 | val = apply(eventsc.wxNavigationKeyEvent_GetDirection,(self,) + _args, _kwargs) | |
482 | return val | |
483 | def SetDirection(self, *_args, **_kwargs): | |
484 | val = apply(eventsc.wxNavigationKeyEvent_SetDirection,(self,) + _args, _kwargs) | |
485 | return val | |
486 | def IsWindowChange(self, *_args, **_kwargs): | |
487 | val = apply(eventsc.wxNavigationKeyEvent_IsWindowChange,(self,) + _args, _kwargs) | |
488 | return val | |
489 | def SetWindowChange(self, *_args, **_kwargs): | |
490 | val = apply(eventsc.wxNavigationKeyEvent_SetWindowChange,(self,) + _args, _kwargs) | |
491 | return val | |
492 | def GetCurrentFocus(self, *_args, **_kwargs): | |
493 | val = apply(eventsc.wxNavigationKeyEvent_GetCurrentFocus,(self,) + _args, _kwargs) | |
48115f4a RD |
494 | return val |
495 | def SetCurrentFocus(self, *_args, **_kwargs): | |
496 | val = apply(eventsc.wxNavigationKeyEvent_SetCurrentFocus,(self,) + _args, _kwargs) | |
497 | return val | |
498 | def __repr__(self): | |
499 | return "<C wxNavigationKeyEvent instance at %s>" % (self.this,) | |
500 | class wxNavigationKeyEvent(wxNavigationKeyEventPtr): | |
501 | def __init__(self,*_args,**_kwargs): | |
502 | self.this = apply(eventsc.new_wxNavigationKeyEvent,_args,_kwargs) | |
503 | self.thisown = 1 | |
8ab979d7 RD |
504 | |
505 | ||
506 | ||
507 | ||
508 | class wxMoveEventPtr(wxEventPtr): | |
509 | def __init__(self,this): | |
510 | self.this = this | |
511 | self.thisown = 0 | |
1d99702e RD |
512 | def GetPosition(self, *_args, **_kwargs): |
513 | val = apply(eventsc.wxMoveEvent_GetPosition,(self,) + _args, _kwargs) | |
514 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
8ab979d7 RD |
515 | return val |
516 | def __repr__(self): | |
1d99702e | 517 | return "<C wxMoveEvent instance at %s>" % (self.this,) |
8ab979d7 | 518 | class wxMoveEvent(wxMoveEventPtr): |
48115f4a RD |
519 | def __init__(self,*_args,**_kwargs): |
520 | self.this = apply(eventsc.new_wxMoveEvent,_args,_kwargs) | |
521 | self.thisown = 1 | |
8ab979d7 RD |
522 | |
523 | ||
524 | ||
525 | ||
526 | class wxPaintEventPtr(wxEventPtr): | |
527 | def __init__(self,this): | |
528 | self.this = this | |
529 | self.thisown = 0 | |
530 | def __repr__(self): | |
1d99702e | 531 | return "<C wxPaintEvent instance at %s>" % (self.this,) |
8ab979d7 | 532 | class wxPaintEvent(wxPaintEventPtr): |
48115f4a RD |
533 | def __init__(self,*_args,**_kwargs): |
534 | self.this = apply(eventsc.new_wxPaintEvent,_args,_kwargs) | |
535 | self.thisown = 1 | |
8ab979d7 RD |
536 | |
537 | ||
538 | ||
539 | ||
540 | class wxEraseEventPtr(wxEventPtr): | |
541 | def __init__(self,this): | |
542 | self.this = this | |
543 | self.thisown = 0 | |
1d99702e RD |
544 | def GetDC(self, *_args, **_kwargs): |
545 | val = apply(eventsc.wxEraseEvent_GetDC,(self,) + _args, _kwargs) | |
8ab979d7 RD |
546 | return val |
547 | def __repr__(self): | |
1d99702e | 548 | return "<C wxEraseEvent instance at %s>" % (self.this,) |
8ab979d7 | 549 | class wxEraseEvent(wxEraseEventPtr): |
48115f4a RD |
550 | def __init__(self,*_args,**_kwargs): |
551 | self.this = apply(eventsc.new_wxEraseEvent,_args,_kwargs) | |
552 | self.thisown = 1 | |
8ab979d7 RD |
553 | |
554 | ||
555 | ||
556 | ||
557 | class wxFocusEventPtr(wxEventPtr): | |
558 | def __init__(self,this): | |
559 | self.this = this | |
560 | self.thisown = 0 | |
561 | def __repr__(self): | |
1d99702e | 562 | return "<C wxFocusEvent instance at %s>" % (self.this,) |
8ab979d7 | 563 | class wxFocusEvent(wxFocusEventPtr): |
48115f4a RD |
564 | def __init__(self,*_args,**_kwargs): |
565 | self.this = apply(eventsc.new_wxFocusEvent,_args,_kwargs) | |
566 | self.thisown = 1 | |
8ab979d7 RD |
567 | |
568 | ||
569 | ||
570 | ||
571 | class wxActivateEventPtr(wxEventPtr): | |
572 | def __init__(self,this): | |
573 | self.this = this | |
574 | self.thisown = 0 | |
1d99702e RD |
575 | def GetActive(self, *_args, **_kwargs): |
576 | val = apply(eventsc.wxActivateEvent_GetActive,(self,) + _args, _kwargs) | |
8ab979d7 RD |
577 | return val |
578 | def __repr__(self): | |
1d99702e | 579 | return "<C wxActivateEvent instance at %s>" % (self.this,) |
8ab979d7 | 580 | class wxActivateEvent(wxActivateEventPtr): |
48115f4a RD |
581 | def __init__(self,*_args,**_kwargs): |
582 | self.this = apply(eventsc.new_wxActivateEvent,_args,_kwargs) | |
583 | self.thisown = 1 | |
8ab979d7 RD |
584 | |
585 | ||
586 | ||
587 | ||
588 | class wxInitDialogEventPtr(wxEventPtr): | |
589 | def __init__(self,this): | |
590 | self.this = this | |
591 | self.thisown = 0 | |
592 | def __repr__(self): | |
1d99702e | 593 | return "<C wxInitDialogEvent instance at %s>" % (self.this,) |
8ab979d7 | 594 | class wxInitDialogEvent(wxInitDialogEventPtr): |
48115f4a RD |
595 | def __init__(self,*_args,**_kwargs): |
596 | self.this = apply(eventsc.new_wxInitDialogEvent,_args,_kwargs) | |
597 | self.thisown = 1 | |
8ab979d7 RD |
598 | |
599 | ||
600 | ||
601 | ||
602 | class wxMenuEventPtr(wxEventPtr): | |
603 | def __init__(self,this): | |
604 | self.this = this | |
605 | self.thisown = 0 | |
1d99702e RD |
606 | def GetMenuId(self, *_args, **_kwargs): |
607 | val = apply(eventsc.wxMenuEvent_GetMenuId,(self,) + _args, _kwargs) | |
8ab979d7 RD |
608 | return val |
609 | def __repr__(self): | |
1d99702e | 610 | return "<C wxMenuEvent instance at %s>" % (self.this,) |
8ab979d7 | 611 | class wxMenuEvent(wxMenuEventPtr): |
48115f4a RD |
612 | def __init__(self,*_args,**_kwargs): |
613 | self.this = apply(eventsc.new_wxMenuEvent,_args,_kwargs) | |
614 | self.thisown = 1 | |
8ab979d7 RD |
615 | |
616 | ||
617 | ||
618 | ||
619 | class wxShowEventPtr(wxEventPtr): | |
620 | def __init__(self,this): | |
621 | self.this = this | |
622 | self.thisown = 0 | |
1d99702e RD |
623 | def SetShow(self, *_args, **_kwargs): |
624 | val = apply(eventsc.wxShowEvent_SetShow,(self,) + _args, _kwargs) | |
8ab979d7 | 625 | return val |
1d99702e RD |
626 | def GetShow(self, *_args, **_kwargs): |
627 | val = apply(eventsc.wxShowEvent_GetShow,(self,) + _args, _kwargs) | |
8ab979d7 RD |
628 | return val |
629 | def __repr__(self): | |
1d99702e | 630 | return "<C wxShowEvent instance at %s>" % (self.this,) |
8ab979d7 | 631 | class wxShowEvent(wxShowEventPtr): |
48115f4a RD |
632 | def __init__(self,*_args,**_kwargs): |
633 | self.this = apply(eventsc.new_wxShowEvent,_args,_kwargs) | |
634 | self.thisown = 1 | |
8ab979d7 RD |
635 | |
636 | ||
637 | ||
638 | ||
639 | class wxIconizeEventPtr(wxEventPtr): | |
640 | def __init__(self,this): | |
641 | self.this = this | |
642 | self.thisown = 0 | |
643 | def __repr__(self): | |
1d99702e | 644 | return "<C wxIconizeEvent instance at %s>" % (self.this,) |
8ab979d7 | 645 | class wxIconizeEvent(wxIconizeEventPtr): |
48115f4a RD |
646 | def __init__(self,*_args,**_kwargs): |
647 | self.this = apply(eventsc.new_wxIconizeEvent,_args,_kwargs) | |
648 | self.thisown = 1 | |
8ab979d7 RD |
649 | |
650 | ||
651 | ||
652 | ||
653 | class wxMaximizeEventPtr(wxEventPtr): | |
654 | def __init__(self,this): | |
655 | self.this = this | |
656 | self.thisown = 0 | |
657 | def __repr__(self): | |
1d99702e | 658 | return "<C wxMaximizeEvent instance at %s>" % (self.this,) |
8ab979d7 | 659 | class wxMaximizeEvent(wxMaximizeEventPtr): |
48115f4a RD |
660 | def __init__(self,*_args,**_kwargs): |
661 | self.this = apply(eventsc.new_wxMaximizeEvent,_args,_kwargs) | |
662 | self.thisown = 1 | |
8ab979d7 RD |
663 | |
664 | ||
665 | ||
666 | ||
667 | class wxJoystickEventPtr(wxEventPtr): | |
668 | def __init__(self,this): | |
669 | self.this = this | |
670 | self.thisown = 0 | |
1d99702e RD |
671 | def GetPosition(self, *_args, **_kwargs): |
672 | val = apply(eventsc.wxJoystickEvent_GetPosition,(self,) + _args, _kwargs) | |
673 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
8ab979d7 | 674 | return val |
1d99702e RD |
675 | def GetZPosition(self, *_args, **_kwargs): |
676 | val = apply(eventsc.wxJoystickEvent_GetZPosition,(self,) + _args, _kwargs) | |
8ab979d7 | 677 | return val |
1d99702e RD |
678 | def GetButtonState(self, *_args, **_kwargs): |
679 | val = apply(eventsc.wxJoystickEvent_GetButtonState,(self,) + _args, _kwargs) | |
8ab979d7 | 680 | return val |
1d99702e RD |
681 | def GetButtonChange(self, *_args, **_kwargs): |
682 | val = apply(eventsc.wxJoystickEvent_GetButtonChange,(self,) + _args, _kwargs) | |
8ab979d7 | 683 | return val |
1d99702e RD |
684 | def GetJoystick(self, *_args, **_kwargs): |
685 | val = apply(eventsc.wxJoystickEvent_GetJoystick,(self,) + _args, _kwargs) | |
8ab979d7 | 686 | return val |
1d99702e RD |
687 | def SetJoystick(self, *_args, **_kwargs): |
688 | val = apply(eventsc.wxJoystickEvent_SetJoystick,(self,) + _args, _kwargs) | |
8ab979d7 | 689 | return val |
1d99702e RD |
690 | def SetButtonState(self, *_args, **_kwargs): |
691 | val = apply(eventsc.wxJoystickEvent_SetButtonState,(self,) + _args, _kwargs) | |
8ab979d7 | 692 | return val |
1d99702e RD |
693 | def SetButtonChange(self, *_args, **_kwargs): |
694 | val = apply(eventsc.wxJoystickEvent_SetButtonChange,(self,) + _args, _kwargs) | |
8ab979d7 | 695 | return val |
1d99702e RD |
696 | def SetPosition(self, *_args, **_kwargs): |
697 | val = apply(eventsc.wxJoystickEvent_SetPosition,(self,) + _args, _kwargs) | |
8ab979d7 | 698 | return val |
1d99702e RD |
699 | def SetZPosition(self, *_args, **_kwargs): |
700 | val = apply(eventsc.wxJoystickEvent_SetZPosition,(self,) + _args, _kwargs) | |
8ab979d7 | 701 | return val |
1d99702e RD |
702 | def IsButton(self, *_args, **_kwargs): |
703 | val = apply(eventsc.wxJoystickEvent_IsButton,(self,) + _args, _kwargs) | |
8ab979d7 | 704 | return val |
1d99702e RD |
705 | def IsMove(self, *_args, **_kwargs): |
706 | val = apply(eventsc.wxJoystickEvent_IsMove,(self,) + _args, _kwargs) | |
8ab979d7 | 707 | return val |
1d99702e RD |
708 | def IsZMove(self, *_args, **_kwargs): |
709 | val = apply(eventsc.wxJoystickEvent_IsZMove,(self,) + _args, _kwargs) | |
8ab979d7 | 710 | return val |
1d99702e RD |
711 | def ButtonDown(self, *_args, **_kwargs): |
712 | val = apply(eventsc.wxJoystickEvent_ButtonDown,(self,) + _args, _kwargs) | |
8ab979d7 | 713 | return val |
1d99702e RD |
714 | def ButtonUp(self, *_args, **_kwargs): |
715 | val = apply(eventsc.wxJoystickEvent_ButtonUp,(self,) + _args, _kwargs) | |
8ab979d7 | 716 | return val |
1d99702e RD |
717 | def ButtonIsDown(self, *_args, **_kwargs): |
718 | val = apply(eventsc.wxJoystickEvent_ButtonIsDown,(self,) + _args, _kwargs) | |
8ab979d7 RD |
719 | return val |
720 | def __repr__(self): | |
1d99702e | 721 | return "<C wxJoystickEvent instance at %s>" % (self.this,) |
8ab979d7 | 722 | class wxJoystickEvent(wxJoystickEventPtr): |
48115f4a RD |
723 | def __init__(self,*_args,**_kwargs): |
724 | self.this = apply(eventsc.new_wxJoystickEvent,_args,_kwargs) | |
725 | self.thisown = 1 | |
8ab979d7 RD |
726 | |
727 | ||
728 | ||
729 | ||
730 | class wxDropFilesEventPtr(wxEventPtr): | |
731 | def __init__(self,this): | |
732 | self.this = this | |
733 | self.thisown = 0 | |
1d99702e RD |
734 | def GetPosition(self, *_args, **_kwargs): |
735 | val = apply(eventsc.wxDropFilesEvent_GetPosition,(self,) + _args, _kwargs) | |
736 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
8ab979d7 | 737 | return val |
1d99702e RD |
738 | def GetNumberOfFiles(self, *_args, **_kwargs): |
739 | val = apply(eventsc.wxDropFilesEvent_GetNumberOfFiles,(self,) + _args, _kwargs) | |
8ab979d7 | 740 | return val |
1d99702e RD |
741 | def GetFiles(self, *_args, **_kwargs): |
742 | val = apply(eventsc.wxDropFilesEvent_GetFiles,(self,) + _args, _kwargs) | |
8ab979d7 RD |
743 | return val |
744 | def __repr__(self): | |
1d99702e | 745 | return "<C wxDropFilesEvent instance at %s>" % (self.this,) |
8ab979d7 RD |
746 | class wxDropFilesEvent(wxDropFilesEventPtr): |
747 | def __init__(self,this): | |
748 | self.this = this | |
749 | ||
750 | ||
751 | ||
752 | ||
753 | class wxIdleEventPtr(wxEventPtr): | |
754 | def __init__(self,this): | |
755 | self.this = this | |
756 | self.thisown = 0 | |
1d99702e RD |
757 | def RequestMore(self, *_args, **_kwargs): |
758 | val = apply(eventsc.wxIdleEvent_RequestMore,(self,) + _args, _kwargs) | |
8ab979d7 | 759 | return val |
1d99702e RD |
760 | def MoreRequested(self, *_args, **_kwargs): |
761 | val = apply(eventsc.wxIdleEvent_MoreRequested,(self,) + _args, _kwargs) | |
8ab979d7 RD |
762 | return val |
763 | def __repr__(self): | |
1d99702e | 764 | return "<C wxIdleEvent instance at %s>" % (self.this,) |
8ab979d7 | 765 | class wxIdleEvent(wxIdleEventPtr): |
48115f4a RD |
766 | def __init__(self,*_args,**_kwargs): |
767 | self.this = apply(eventsc.new_wxIdleEvent,_args,_kwargs) | |
768 | self.thisown = 1 | |
8ab979d7 RD |
769 | |
770 | ||
771 | ||
772 | ||
773 | class wxUpdateUIEventPtr(wxEventPtr): | |
774 | def __init__(self,this): | |
775 | self.this = this | |
776 | self.thisown = 0 | |
1d99702e RD |
777 | def GetChecked(self, *_args, **_kwargs): |
778 | val = apply(eventsc.wxUpdateUIEvent_GetChecked,(self,) + _args, _kwargs) | |
8ab979d7 | 779 | return val |
1d99702e RD |
780 | def GetEnabled(self, *_args, **_kwargs): |
781 | val = apply(eventsc.wxUpdateUIEvent_GetEnabled,(self,) + _args, _kwargs) | |
8ab979d7 | 782 | return val |
1d99702e RD |
783 | def GetText(self, *_args, **_kwargs): |
784 | val = apply(eventsc.wxUpdateUIEvent_GetText,(self,) + _args, _kwargs) | |
8ab979d7 | 785 | return val |
1d99702e RD |
786 | def GetSetText(self, *_args, **_kwargs): |
787 | val = apply(eventsc.wxUpdateUIEvent_GetSetText,(self,) + _args, _kwargs) | |
8ab979d7 | 788 | return val |
1d99702e RD |
789 | def GetSetChecked(self, *_args, **_kwargs): |
790 | val = apply(eventsc.wxUpdateUIEvent_GetSetChecked,(self,) + _args, _kwargs) | |
8ab979d7 | 791 | return val |
1d99702e RD |
792 | def GetSetEnabled(self, *_args, **_kwargs): |
793 | val = apply(eventsc.wxUpdateUIEvent_GetSetEnabled,(self,) + _args, _kwargs) | |
8ab979d7 | 794 | return val |
1d99702e RD |
795 | def Check(self, *_args, **_kwargs): |
796 | val = apply(eventsc.wxUpdateUIEvent_Check,(self,) + _args, _kwargs) | |
8ab979d7 | 797 | return val |
1d99702e RD |
798 | def Enable(self, *_args, **_kwargs): |
799 | val = apply(eventsc.wxUpdateUIEvent_Enable,(self,) + _args, _kwargs) | |
8ab979d7 | 800 | return val |
1d99702e RD |
801 | def SetText(self, *_args, **_kwargs): |
802 | val = apply(eventsc.wxUpdateUIEvent_SetText,(self,) + _args, _kwargs) | |
8ab979d7 RD |
803 | return val |
804 | def __repr__(self): | |
1d99702e | 805 | return "<C wxUpdateUIEvent instance at %s>" % (self.this,) |
8ab979d7 | 806 | class wxUpdateUIEvent(wxUpdateUIEventPtr): |
48115f4a RD |
807 | def __init__(self,*_args,**_kwargs): |
808 | self.this = apply(eventsc.new_wxUpdateUIEvent,_args,_kwargs) | |
809 | self.thisown = 1 | |
8ab979d7 RD |
810 | |
811 | ||
812 | ||
813 | ||
814 | class wxSysColourChangedEventPtr(wxEventPtr): | |
815 | def __init__(self,this): | |
816 | self.this = this | |
817 | self.thisown = 0 | |
818 | def __repr__(self): | |
1d99702e | 819 | return "<C wxSysColourChangedEvent instance at %s>" % (self.this,) |
8ab979d7 | 820 | class wxSysColourChangedEvent(wxSysColourChangedEventPtr): |
48115f4a RD |
821 | def __init__(self,*_args,**_kwargs): |
822 | self.this = apply(eventsc.new_wxSysColourChangedEvent,_args,_kwargs) | |
823 | self.thisown = 1 | |
8ab979d7 RD |
824 | |
825 | ||
826 | ||
827 | ||
2f90df85 RD |
828 | class wxNotifyEventPtr(wxCommandEventPtr): |
829 | def __init__(self,this): | |
830 | self.this = this | |
831 | self.thisown = 0 | |
832 | def IsAllowed(self, *_args, **_kwargs): | |
833 | val = apply(eventsc.wxNotifyEvent_IsAllowed,(self,) + _args, _kwargs) | |
834 | return val | |
2cd2fac8 RD |
835 | def Allow(self, *_args, **_kwargs): |
836 | val = apply(eventsc.wxNotifyEvent_Allow,(self,) + _args, _kwargs) | |
837 | return val | |
2f90df85 RD |
838 | def Veto(self, *_args, **_kwargs): |
839 | val = apply(eventsc.wxNotifyEvent_Veto,(self,) + _args, _kwargs) | |
840 | return val | |
841 | def __repr__(self): | |
842 | return "<C wxNotifyEvent instance at %s>" % (self.this,) | |
843 | class wxNotifyEvent(wxNotifyEventPtr): | |
48115f4a RD |
844 | def __init__(self,*_args,**_kwargs): |
845 | self.this = apply(eventsc.new_wxNotifyEvent,_args,_kwargs) | |
846 | self.thisown = 1 | |
847 | ||
848 | ||
849 | ||
850 | ||
851 | class wxPaletteChangedEventPtr(wxEventPtr): | |
2f90df85 RD |
852 | def __init__(self,this): |
853 | self.this = this | |
48115f4a RD |
854 | self.thisown = 0 |
855 | def SetChangedWindow(self, *_args, **_kwargs): | |
856 | val = apply(eventsc.wxPaletteChangedEvent_SetChangedWindow,(self,) + _args, _kwargs) | |
857 | return val | |
858 | def GetChangedWindow(self, *_args, **_kwargs): | |
859 | val = apply(eventsc.wxPaletteChangedEvent_GetChangedWindow,(self,) + _args, _kwargs) | |
48115f4a RD |
860 | return val |
861 | def __repr__(self): | |
862 | return "<C wxPaletteChangedEvent instance at %s>" % (self.this,) | |
863 | class wxPaletteChangedEvent(wxPaletteChangedEventPtr): | |
864 | def __init__(self,*_args,**_kwargs): | |
865 | self.this = apply(eventsc.new_wxPaletteChangedEvent,_args,_kwargs) | |
866 | self.thisown = 1 | |
867 | ||
868 | ||
869 | ||
870 | ||
871 | class wxQueryNewPaletteEventPtr(wxEventPtr): | |
872 | def __init__(self,this): | |
873 | self.this = this | |
874 | self.thisown = 0 | |
875 | def SetPaletteRealized(self, *_args, **_kwargs): | |
876 | val = apply(eventsc.wxQueryNewPaletteEvent_SetPaletteRealized,(self,) + _args, _kwargs) | |
877 | return val | |
878 | def GetPaletteRealized(self, *_args, **_kwargs): | |
879 | val = apply(eventsc.wxQueryNewPaletteEvent_GetPaletteRealized,(self,) + _args, _kwargs) | |
880 | return val | |
881 | def __repr__(self): | |
882 | return "<C wxQueryNewPaletteEvent instance at %s>" % (self.this,) | |
883 | class wxQueryNewPaletteEvent(wxQueryNewPaletteEventPtr): | |
884 | def __init__(self,*_args,**_kwargs): | |
885 | self.this = apply(eventsc.new_wxQueryNewPaletteEvent,_args,_kwargs) | |
886 | self.thisown = 1 | |
887 | ||
888 | ||
889 | ||
890 | ||
f6bcfd97 | 891 | class wxWindowCreateEventPtr(wxCommandEventPtr): |
48115f4a RD |
892 | def __init__(self,this): |
893 | self.this = this | |
894 | self.thisown = 0 | |
895 | def GetWindow(self, *_args, **_kwargs): | |
896 | val = apply(eventsc.wxWindowCreateEvent_GetWindow,(self,) + _args, _kwargs) | |
48115f4a RD |
897 | return val |
898 | def __repr__(self): | |
899 | return "<C wxWindowCreateEvent instance at %s>" % (self.this,) | |
900 | class wxWindowCreateEvent(wxWindowCreateEventPtr): | |
901 | def __init__(self,*_args,**_kwargs): | |
902 | self.this = apply(eventsc.new_wxWindowCreateEvent,_args,_kwargs) | |
903 | self.thisown = 1 | |
904 | ||
905 | ||
906 | ||
907 | ||
f6bcfd97 | 908 | class wxWindowDestroyEventPtr(wxCommandEventPtr): |
48115f4a RD |
909 | def __init__(self,this): |
910 | self.this = this | |
911 | self.thisown = 0 | |
912 | def GetWindow(self, *_args, **_kwargs): | |
913 | val = apply(eventsc.wxWindowDestroyEvent_GetWindow,(self,) + _args, _kwargs) | |
48115f4a RD |
914 | return val |
915 | def __repr__(self): | |
916 | return "<C wxWindowDestroyEvent instance at %s>" % (self.this,) | |
917 | class wxWindowDestroyEvent(wxWindowDestroyEventPtr): | |
918 | def __init__(self,*_args,**_kwargs): | |
919 | self.this = apply(eventsc.new_wxWindowDestroyEvent,_args,_kwargs) | |
920 | self.thisown = 1 | |
2f90df85 RD |
921 | |
922 | ||
923 | ||
924 | ||
f6bcfd97 BP |
925 | class wxTimerEventPtr(wxEventPtr): |
926 | def __init__(self,this): | |
927 | self.this = this | |
928 | self.thisown = 0 | |
929 | def GetInterval(self, *_args, **_kwargs): | |
930 | val = apply(eventsc.wxTimerEvent_GetInterval,(self,) + _args, _kwargs) | |
931 | return val | |
932 | def __repr__(self): | |
933 | return "<C wxTimerEvent instance at %s>" % (self.this,) | |
934 | class wxTimerEvent(wxTimerEventPtr): | |
935 | def __init__(self,*_args,**_kwargs): | |
936 | self.this = apply(eventsc.new_wxTimerEvent,_args,_kwargs) | |
937 | self.thisown = 1 | |
938 | ||
939 | ||
940 | ||
941 | ||
2f90df85 | 942 | class wxPyEventPtr(wxEventPtr): |
cf694132 RD |
943 | def __init__(self,this): |
944 | self.this = this | |
945 | self.thisown = 0 | |
1d99702e | 946 | def __del__(self,eventsc=eventsc): |
cf694132 | 947 | if self.thisown == 1 : |
1d99702e | 948 | eventsc.delete_wxPyEvent(self) |
65dd82cb RD |
949 | def SetSelf(self, *_args, **_kwargs): |
950 | val = apply(eventsc.wxPyEvent_SetSelf,(self,) + _args, _kwargs) | |
cf694132 | 951 | return val |
65dd82cb RD |
952 | def GetSelf(self, *_args, **_kwargs): |
953 | val = apply(eventsc.wxPyEvent_GetSelf,(self,) + _args, _kwargs) | |
cf694132 RD |
954 | return val |
955 | def __repr__(self): | |
1d99702e | 956 | return "<C wxPyEvent instance at %s>" % (self.this,) |
cf694132 | 957 | class wxPyEvent(wxPyEventPtr): |
1d99702e RD |
958 | def __init__(self,*_args,**_kwargs): |
959 | self.this = apply(eventsc.new_wxPyEvent,_args,_kwargs) | |
cf694132 | 960 | self.thisown = 1 |
65dd82cb | 961 | self.SetSelf(self) |
cf694132 RD |
962 | |
963 | ||
964 | ||
965 | ||
2f90df85 | 966 | class wxPyCommandEventPtr(wxCommandEventPtr): |
bb0054cd RD |
967 | def __init__(self,this): |
968 | self.this = this | |
969 | self.thisown = 0 | |
2f90df85 RD |
970 | def __del__(self,eventsc=eventsc): |
971 | if self.thisown == 1 : | |
972 | eventsc.delete_wxPyCommandEvent(self) | |
65dd82cb RD |
973 | def SetSelf(self, *_args, **_kwargs): |
974 | val = apply(eventsc.wxPyCommandEvent_SetSelf,(self,) + _args, _kwargs) | |
bb0054cd | 975 | return val |
65dd82cb RD |
976 | def GetSelf(self, *_args, **_kwargs): |
977 | val = apply(eventsc.wxPyCommandEvent_GetSelf,(self,) + _args, _kwargs) | |
bb0054cd RD |
978 | return val |
979 | def __repr__(self): | |
2f90df85 RD |
980 | return "<C wxPyCommandEvent instance at %s>" % (self.this,) |
981 | class wxPyCommandEvent(wxPyCommandEventPtr): | |
982 | def __init__(self,*_args,**_kwargs): | |
983 | self.this = apply(eventsc.new_wxPyCommandEvent,_args,_kwargs) | |
984 | self.thisown = 1 | |
65dd82cb | 985 | self.SetSelf(self) |
bb0054cd RD |
986 | |
987 | ||
988 | ||
989 | ||
8ab979d7 RD |
990 | |
991 | ||
992 | #-------------- FUNCTION WRAPPERS ------------------ | |
993 | ||
5e40f9dd RD |
994 | wxNewEventType = eventsc.wxNewEventType |
995 | ||
8ab979d7 RD |
996 | |
997 | ||
998 | #-------------- VARIABLE WRAPPERS ------------------ | |
999 |