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