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