1 # This file was created automatically by SWIG.
8 def __init__(self
,this
):
11 def __del__(self
,eventsc
=eventsc
):
12 if self
.thisown
== 1 :
13 eventsc
.delete_wxEvent(self
)
14 def GetEventObject(self
, *_args
, **_kwargs
):
15 val
= apply(eventsc
.wxEvent_GetEventObject
,(self
,) + _args
, _kwargs
)
17 def GetEventType(self
, *_args
, **_kwargs
):
18 val
= apply(eventsc
.wxEvent_GetEventType
,(self
,) + _args
, _kwargs
)
20 def GetId(self
, *_args
, **_kwargs
):
21 val
= apply(eventsc
.wxEvent_GetId
,(self
,) + _args
, _kwargs
)
23 def GetSkipped(self
, *_args
, **_kwargs
):
24 val
= apply(eventsc
.wxEvent_GetSkipped
,(self
,) + _args
, _kwargs
)
26 def GetTimestamp(self
, *_args
, **_kwargs
):
27 val
= apply(eventsc
.wxEvent_GetTimestamp
,(self
,) + _args
, _kwargs
)
29 def SetEventObject(self
, *_args
, **_kwargs
):
30 val
= apply(eventsc
.wxEvent_SetEventObject
,(self
,) + _args
, _kwargs
)
32 def SetEventType(self
, *_args
, **_kwargs
):
33 val
= apply(eventsc
.wxEvent_SetEventType
,(self
,) + _args
, _kwargs
)
35 def SetId(self
, *_args
, **_kwargs
):
36 val
= apply(eventsc
.wxEvent_SetId
,(self
,) + _args
, _kwargs
)
38 def SetTimestamp(self
, *_args
, **_kwargs
):
39 val
= apply(eventsc
.wxEvent_SetTimestamp
,(self
,) + _args
, _kwargs
)
41 def Skip(self
, *_args
, **_kwargs
):
42 val
= apply(eventsc
.wxEvent_Skip
,(self
,) + _args
, _kwargs
)
45 return "<C wxEvent instance at %s>" % (self
.this
,)
46 class wxEvent(wxEventPtr
):
47 def __init__(self
,*_args
,**_kwargs
):
48 self
.this
= apply(eventsc
.new_wxEvent
,_args
,_kwargs
)
54 class wxSizeEventPtr(wxEventPtr
):
55 def __init__(self
,this
):
58 def GetSize(self
, *_args
, **_kwargs
):
59 val
= apply(eventsc
.wxSizeEvent_GetSize
,(self
,) + _args
, _kwargs
)
60 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
63 return "<C wxSizeEvent instance at %s>" % (self
.this
,)
64 class wxSizeEvent(wxSizeEventPtr
):
65 def __init__(self
,*_args
,**_kwargs
):
66 self
.this
= apply(eventsc
.new_wxSizeEvent
,_args
,_kwargs
)
72 class wxCloseEventPtr(wxEventPtr
):
73 def __init__(self
,this
):
76 def SetLoggingOff(self
, *_args
, **_kwargs
):
77 val
= apply(eventsc
.wxCloseEvent_SetLoggingOff
,(self
,) + _args
, _kwargs
)
79 def GetLoggingOff(self
, *_args
, **_kwargs
):
80 val
= apply(eventsc
.wxCloseEvent_GetLoggingOff
,(self
,) + _args
, _kwargs
)
82 def Veto(self
, *_args
, **_kwargs
):
83 val
= apply(eventsc
.wxCloseEvent_Veto
,(self
,) + _args
, _kwargs
)
85 def CanVeto(self
, *_args
, **_kwargs
):
86 val
= apply(eventsc
.wxCloseEvent_CanVeto
,(self
,) + _args
, _kwargs
)
88 def GetVeto(self
, *_args
, **_kwargs
):
89 val
= apply(eventsc
.wxCloseEvent_GetVeto
,(self
,) + _args
, _kwargs
)
91 def SetCanVeto(self
, *_args
, **_kwargs
):
92 val
= apply(eventsc
.wxCloseEvent_SetCanVeto
,(self
,) + _args
, _kwargs
)
95 return "<C wxCloseEvent instance at %s>" % (self
.this
,)
96 class wxCloseEvent(wxCloseEventPtr
):
97 def __init__(self
,*_args
,**_kwargs
):
98 self
.this
= apply(eventsc
.new_wxCloseEvent
,_args
,_kwargs
)
104 class wxCommandEventPtr(wxEventPtr
):
105 def __init__(self
,this
):
108 def IsChecked(self
, *_args
, **_kwargs
):
109 val
= apply(eventsc
.wxCommandEvent_IsChecked
,(self
,) + _args
, _kwargs
)
111 def Checked(self
, *_args
, **_kwargs
):
112 val
= apply(eventsc
.wxCommandEvent_Checked
,(self
,) + _args
, _kwargs
)
114 def GetExtraLong(self
, *_args
, **_kwargs
):
115 val
= apply(eventsc
.wxCommandEvent_GetExtraLong
,(self
,) + _args
, _kwargs
)
117 def GetInt(self
, *_args
, **_kwargs
):
118 val
= apply(eventsc
.wxCommandEvent_GetInt
,(self
,) + _args
, _kwargs
)
120 def GetSelection(self
, *_args
, **_kwargs
):
121 val
= apply(eventsc
.wxCommandEvent_GetSelection
,(self
,) + _args
, _kwargs
)
123 def GetString(self
, *_args
, **_kwargs
):
124 val
= apply(eventsc
.wxCommandEvent_GetString
,(self
,) + _args
, _kwargs
)
126 def IsSelection(self
, *_args
, **_kwargs
):
127 val
= apply(eventsc
.wxCommandEvent_IsSelection
,(self
,) + _args
, _kwargs
)
129 def SetString(self
, *_args
, **_kwargs
):
130 val
= apply(eventsc
.wxCommandEvent_SetString
,(self
,) + _args
, _kwargs
)
132 def SetExtraLong(self
, *_args
, **_kwargs
):
133 val
= apply(eventsc
.wxCommandEvent_SetExtraLong
,(self
,) + _args
, _kwargs
)
135 def SetInt(self
, *_args
, **_kwargs
):
136 val
= apply(eventsc
.wxCommandEvent_SetInt
,(self
,) + _args
, _kwargs
)
139 return "<C wxCommandEvent instance at %s>" % (self
.this
,)
140 class wxCommandEvent(wxCommandEventPtr
):
141 def __init__(self
,*_args
,**_kwargs
):
142 self
.this
= apply(eventsc
.new_wxCommandEvent
,_args
,_kwargs
)
148 class wxScrollEventPtr(wxCommandEventPtr
):
149 def __init__(self
,this
):
152 def GetOrientation(self
, *_args
, **_kwargs
):
153 val
= apply(eventsc
.wxScrollEvent_GetOrientation
,(self
,) + _args
, _kwargs
)
155 def GetPosition(self
, *_args
, **_kwargs
):
156 val
= apply(eventsc
.wxScrollEvent_GetPosition
,(self
,) + _args
, _kwargs
)
159 return "<C wxScrollEvent instance at %s>" % (self
.this
,)
160 class wxScrollEvent(wxScrollEventPtr
):
161 def __init__(self
,*_args
,**_kwargs
):
162 self
.this
= apply(eventsc
.new_wxScrollEvent
,_args
,_kwargs
)
168 class wxScrollWinEventPtr(wxEventPtr
):
169 def __init__(self
,this
):
172 def GetOrientation(self
, *_args
, **_kwargs
):
173 val
= apply(eventsc
.wxScrollWinEvent_GetOrientation
,(self
,) + _args
, _kwargs
)
175 def GetPosition(self
, *_args
, **_kwargs
):
176 val
= apply(eventsc
.wxScrollWinEvent_GetPosition
,(self
,) + _args
, _kwargs
)
179 return "<C wxScrollWinEvent instance at %s>" % (self
.this
,)
180 class wxScrollWinEvent(wxScrollWinEventPtr
):
181 def __init__(self
,*_args
,**_kwargs
):
182 self
.this
= apply(eventsc
.new_wxScrollWinEvent
,_args
,_kwargs
)
188 class wxSpinEventPtr(wxScrollEventPtr
):
189 def __init__(self
,this
):
193 return "<C wxSpinEvent instance at %s>" % (self
.this
,)
194 class wxSpinEvent(wxSpinEventPtr
):
195 def __init__(self
,*_args
,**_kwargs
):
196 self
.this
= apply(eventsc
.new_wxSpinEvent
,_args
,_kwargs
)
202 class wxMouseEventPtr(wxEventPtr
):
203 def __init__(self
,this
):
206 def IsButton(self
, *_args
, **_kwargs
):
207 val
= apply(eventsc
.wxMouseEvent_IsButton
,(self
,) + _args
, _kwargs
)
209 def ButtonDown(self
, *_args
, **_kwargs
):
210 val
= apply(eventsc
.wxMouseEvent_ButtonDown
,(self
,) + _args
, _kwargs
)
212 def ButtonDClick(self
, *_args
, **_kwargs
):
213 val
= apply(eventsc
.wxMouseEvent_ButtonDClick
,(self
,) + _args
, _kwargs
)
215 def ButtonUp(self
, *_args
, **_kwargs
):
216 val
= apply(eventsc
.wxMouseEvent_ButtonUp
,(self
,) + _args
, _kwargs
)
218 def Button(self
, *_args
, **_kwargs
):
219 val
= apply(eventsc
.wxMouseEvent_Button
,(self
,) + _args
, _kwargs
)
221 def ButtonIsDown(self
, *_args
, **_kwargs
):
222 val
= apply(eventsc
.wxMouseEvent_ButtonIsDown
,(self
,) + _args
, _kwargs
)
224 def ControlDown(self
, *_args
, **_kwargs
):
225 val
= apply(eventsc
.wxMouseEvent_ControlDown
,(self
,) + _args
, _kwargs
)
227 def MetaDown(self
, *_args
, **_kwargs
):
228 val
= apply(eventsc
.wxMouseEvent_MetaDown
,(self
,) + _args
, _kwargs
)
230 def AltDown(self
, *_args
, **_kwargs
):
231 val
= apply(eventsc
.wxMouseEvent_AltDown
,(self
,) + _args
, _kwargs
)
233 def ShiftDown(self
, *_args
, **_kwargs
):
234 val
= apply(eventsc
.wxMouseEvent_ShiftDown
,(self
,) + _args
, _kwargs
)
236 def LeftDown(self
, *_args
, **_kwargs
):
237 val
= apply(eventsc
.wxMouseEvent_LeftDown
,(self
,) + _args
, _kwargs
)
239 def MiddleDown(self
, *_args
, **_kwargs
):
240 val
= apply(eventsc
.wxMouseEvent_MiddleDown
,(self
,) + _args
, _kwargs
)
242 def RightDown(self
, *_args
, **_kwargs
):
243 val
= apply(eventsc
.wxMouseEvent_RightDown
,(self
,) + _args
, _kwargs
)
245 def LeftUp(self
, *_args
, **_kwargs
):
246 val
= apply(eventsc
.wxMouseEvent_LeftUp
,(self
,) + _args
, _kwargs
)
248 def MiddleUp(self
, *_args
, **_kwargs
):
249 val
= apply(eventsc
.wxMouseEvent_MiddleUp
,(self
,) + _args
, _kwargs
)
251 def RightUp(self
, *_args
, **_kwargs
):
252 val
= apply(eventsc
.wxMouseEvent_RightUp
,(self
,) + _args
, _kwargs
)
254 def LeftDClick(self
, *_args
, **_kwargs
):
255 val
= apply(eventsc
.wxMouseEvent_LeftDClick
,(self
,) + _args
, _kwargs
)
257 def MiddleDClick(self
, *_args
, **_kwargs
):
258 val
= apply(eventsc
.wxMouseEvent_MiddleDClick
,(self
,) + _args
, _kwargs
)
260 def RightDClick(self
, *_args
, **_kwargs
):
261 val
= apply(eventsc
.wxMouseEvent_RightDClick
,(self
,) + _args
, _kwargs
)
263 def LeftIsDown(self
, *_args
, **_kwargs
):
264 val
= apply(eventsc
.wxMouseEvent_LeftIsDown
,(self
,) + _args
, _kwargs
)
266 def MiddleIsDown(self
, *_args
, **_kwargs
):
267 val
= apply(eventsc
.wxMouseEvent_MiddleIsDown
,(self
,) + _args
, _kwargs
)
269 def RightIsDown(self
, *_args
, **_kwargs
):
270 val
= apply(eventsc
.wxMouseEvent_RightIsDown
,(self
,) + _args
, _kwargs
)
272 def Dragging(self
, *_args
, **_kwargs
):
273 val
= apply(eventsc
.wxMouseEvent_Dragging
,(self
,) + _args
, _kwargs
)
275 def Moving(self
, *_args
, **_kwargs
):
276 val
= apply(eventsc
.wxMouseEvent_Moving
,(self
,) + _args
, _kwargs
)
278 def Entering(self
, *_args
, **_kwargs
):
279 val
= apply(eventsc
.wxMouseEvent_Entering
,(self
,) + _args
, _kwargs
)
281 def Leaving(self
, *_args
, **_kwargs
):
282 val
= apply(eventsc
.wxMouseEvent_Leaving
,(self
,) + _args
, _kwargs
)
284 def GetPosition(self
, *_args
, **_kwargs
):
285 val
= apply(eventsc
.wxMouseEvent_GetPosition
,(self
,) + _args
, _kwargs
)
286 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
288 def GetPositionTuple(self
, *_args
, **_kwargs
):
289 val
= apply(eventsc
.wxMouseEvent_GetPositionTuple
,(self
,) + _args
, _kwargs
)
291 def GetLogicalPosition(self
, *_args
, **_kwargs
):
292 val
= apply(eventsc
.wxMouseEvent_GetLogicalPosition
,(self
,) + _args
, _kwargs
)
293 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
295 def GetX(self
, *_args
, **_kwargs
):
296 val
= apply(eventsc
.wxMouseEvent_GetX
,(self
,) + _args
, _kwargs
)
298 def GetY(self
, *_args
, **_kwargs
):
299 val
= apply(eventsc
.wxMouseEvent_GetY
,(self
,) + _args
, _kwargs
)
301 def GetWheelRotation(self
, *_args
, **_kwargs
):
302 val
= apply(eventsc
.wxMouseEvent_GetWheelRotation
,(self
,) + _args
, _kwargs
)
304 def GetWheelDelta(self
, *_args
, **_kwargs
):
305 val
= apply(eventsc
.wxMouseEvent_GetWheelDelta
,(self
,) + _args
, _kwargs
)
307 def GetLinesPerAction(self
, *_args
, **_kwargs
):
308 val
= apply(eventsc
.wxMouseEvent_GetLinesPerAction
,(self
,) + _args
, _kwargs
)
310 def __setattr__(self
,name
,value
):
312 eventsc
.wxMouseEvent_m_x_set(self
,value
)
315 eventsc
.wxMouseEvent_m_y_set(self
,value
)
317 if name
== "m_leftDown" :
318 eventsc
.wxMouseEvent_m_leftDown_set(self
,value
)
320 if name
== "m_middleDown" :
321 eventsc
.wxMouseEvent_m_middleDown_set(self
,value
)
323 if name
== "m_rightDown" :
324 eventsc
.wxMouseEvent_m_rightDown_set(self
,value
)
326 if name
== "m_controlDown" :
327 eventsc
.wxMouseEvent_m_controlDown_set(self
,value
)
329 if name
== "m_shiftDown" :
330 eventsc
.wxMouseEvent_m_shiftDown_set(self
,value
)
332 if name
== "m_altDown" :
333 eventsc
.wxMouseEvent_m_altDown_set(self
,value
)
335 if name
== "m_metaDown" :
336 eventsc
.wxMouseEvent_m_metaDown_set(self
,value
)
338 if name
== "m_wheelRotation" :
339 eventsc
.wxMouseEvent_m_wheelRotation_set(self
,value
)
341 if name
== "m_wheelDelta" :
342 eventsc
.wxMouseEvent_m_wheelDelta_set(self
,value
)
344 if name
== "m_linesPerAction" :
345 eventsc
.wxMouseEvent_m_linesPerAction_set(self
,value
)
347 self
.__dict
__[name
] = value
348 def __getattr__(self
,name
):
350 return eventsc
.wxMouseEvent_m_x_get(self
)
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
)
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
)
373 raise AttributeError,name
375 return "<C wxMouseEvent instance at %s>" % (self
.this
,)
376 class wxMouseEvent(wxMouseEventPtr
):
377 def __init__(self
,*_args
,**_kwargs
):
378 self
.this
= apply(eventsc
.new_wxMouseEvent
,_args
,_kwargs
)
384 class wxKeyEventPtr(wxEventPtr
):
385 def __init__(self
,this
):
388 def ControlDown(self
, *_args
, **_kwargs
):
389 val
= apply(eventsc
.wxKeyEvent_ControlDown
,(self
,) + _args
, _kwargs
)
391 def MetaDown(self
, *_args
, **_kwargs
):
392 val
= apply(eventsc
.wxKeyEvent_MetaDown
,(self
,) + _args
, _kwargs
)
394 def AltDown(self
, *_args
, **_kwargs
):
395 val
= apply(eventsc
.wxKeyEvent_AltDown
,(self
,) + _args
, _kwargs
)
397 def ShiftDown(self
, *_args
, **_kwargs
):
398 val
= apply(eventsc
.wxKeyEvent_ShiftDown
,(self
,) + _args
, _kwargs
)
400 def KeyCode(self
, *_args
, **_kwargs
):
401 val
= apply(eventsc
.wxKeyEvent_KeyCode
,(self
,) + _args
, _kwargs
)
403 def GetKeyCode(self
, *_args
, **_kwargs
):
404 val
= apply(eventsc
.wxKeyEvent_GetKeyCode
,(self
,) + _args
, _kwargs
)
406 def HasModifiers(self
, *_args
, **_kwargs
):
407 val
= apply(eventsc
.wxKeyEvent_HasModifiers
,(self
,) + _args
, _kwargs
)
409 def GetX(self
, *_args
, **_kwargs
):
410 val
= apply(eventsc
.wxKeyEvent_GetX
,(self
,) + _args
, _kwargs
)
412 def GetY(self
, *_args
, **_kwargs
):
413 val
= apply(eventsc
.wxKeyEvent_GetY
,(self
,) + _args
, _kwargs
)
415 def GetPosition(self
, *_args
, **_kwargs
):
416 val
= apply(eventsc
.wxKeyEvent_GetPosition
,(self
,) + _args
, _kwargs
)
417 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
419 def GetPositionTuple(self
, *_args
, **_kwargs
):
420 val
= apply(eventsc
.wxKeyEvent_GetPositionTuple
,(self
,) + _args
, _kwargs
)
422 def __setattr__(self
,name
,value
):
424 eventsc
.wxKeyEvent_m_x_set(self
,value
)
427 eventsc
.wxKeyEvent_m_y_set(self
,value
)
429 if name
== "m_keyCode" :
430 eventsc
.wxKeyEvent_m_keyCode_set(self
,value
)
432 if name
== "m_controlDown" :
433 eventsc
.wxKeyEvent_m_controlDown_set(self
,value
)
435 if name
== "m_shiftDown" :
436 eventsc
.wxKeyEvent_m_shiftDown_set(self
,value
)
438 if name
== "m_altDown" :
439 eventsc
.wxKeyEvent_m_altDown_set(self
,value
)
441 if name
== "m_metaDown" :
442 eventsc
.wxKeyEvent_m_metaDown_set(self
,value
)
444 if name
== "m_scanCode" :
445 eventsc
.wxKeyEvent_m_scanCode_set(self
,value
)
447 self
.__dict
__[name
] = value
448 def __getattr__(self
,name
):
450 return eventsc
.wxKeyEvent_m_x_get(self
)
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
467 return "<C wxKeyEvent instance at %s>" % (self
.this
,)
468 class wxKeyEvent(wxKeyEventPtr
):
469 def __init__(self
,*_args
,**_kwargs
):
470 self
.this
= apply(eventsc
.new_wxKeyEvent
,_args
,_kwargs
)
476 class wxNavigationKeyEventPtr(wxEventPtr
):
477 def __init__(self
,this
):
480 def GetDirection(self
, *_args
, **_kwargs
):
481 val
= apply(eventsc
.wxNavigationKeyEvent_GetDirection
,(self
,) + _args
, _kwargs
)
483 def SetDirection(self
, *_args
, **_kwargs
):
484 val
= apply(eventsc
.wxNavigationKeyEvent_SetDirection
,(self
,) + _args
, _kwargs
)
486 def IsWindowChange(self
, *_args
, **_kwargs
):
487 val
= apply(eventsc
.wxNavigationKeyEvent_IsWindowChange
,(self
,) + _args
, _kwargs
)
489 def SetWindowChange(self
, *_args
, **_kwargs
):
490 val
= apply(eventsc
.wxNavigationKeyEvent_SetWindowChange
,(self
,) + _args
, _kwargs
)
492 def GetCurrentFocus(self
, *_args
, **_kwargs
):
493 val
= apply(eventsc
.wxNavigationKeyEvent_GetCurrentFocus
,(self
,) + _args
, _kwargs
)
494 if val
: val
= wxWindowPtr(val
)
496 def SetCurrentFocus(self
, *_args
, **_kwargs
):
497 val
= apply(eventsc
.wxNavigationKeyEvent_SetCurrentFocus
,(self
,) + _args
, _kwargs
)
500 return "<C wxNavigationKeyEvent instance at %s>" % (self
.this
,)
501 class wxNavigationKeyEvent(wxNavigationKeyEventPtr
):
502 def __init__(self
,*_args
,**_kwargs
):
503 self
.this
= apply(eventsc
.new_wxNavigationKeyEvent
,_args
,_kwargs
)
509 class wxMoveEventPtr(wxEventPtr
):
510 def __init__(self
,this
):
513 def GetPosition(self
, *_args
, **_kwargs
):
514 val
= apply(eventsc
.wxMoveEvent_GetPosition
,(self
,) + _args
, _kwargs
)
515 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
518 return "<C wxMoveEvent instance at %s>" % (self
.this
,)
519 class wxMoveEvent(wxMoveEventPtr
):
520 def __init__(self
,*_args
,**_kwargs
):
521 self
.this
= apply(eventsc
.new_wxMoveEvent
,_args
,_kwargs
)
527 class wxPaintEventPtr(wxEventPtr
):
528 def __init__(self
,this
):
532 return "<C wxPaintEvent instance at %s>" % (self
.this
,)
533 class wxPaintEvent(wxPaintEventPtr
):
534 def __init__(self
,*_args
,**_kwargs
):
535 self
.this
= apply(eventsc
.new_wxPaintEvent
,_args
,_kwargs
)
541 class wxEraseEventPtr(wxEventPtr
):
542 def __init__(self
,this
):
545 def GetDC(self
, *_args
, **_kwargs
):
546 val
= apply(eventsc
.wxEraseEvent_GetDC
,(self
,) + _args
, _kwargs
)
547 if val
: val
= wxDCPtr(val
)
550 return "<C wxEraseEvent instance at %s>" % (self
.this
,)
551 class wxEraseEvent(wxEraseEventPtr
):
552 def __init__(self
,*_args
,**_kwargs
):
553 self
.this
= apply(eventsc
.new_wxEraseEvent
,_args
,_kwargs
)
559 class wxFocusEventPtr(wxEventPtr
):
560 def __init__(self
,this
):
564 return "<C wxFocusEvent instance at %s>" % (self
.this
,)
565 class wxFocusEvent(wxFocusEventPtr
):
566 def __init__(self
,*_args
,**_kwargs
):
567 self
.this
= apply(eventsc
.new_wxFocusEvent
,_args
,_kwargs
)
573 class wxActivateEventPtr(wxEventPtr
):
574 def __init__(self
,this
):
577 def GetActive(self
, *_args
, **_kwargs
):
578 val
= apply(eventsc
.wxActivateEvent_GetActive
,(self
,) + _args
, _kwargs
)
581 return "<C wxActivateEvent instance at %s>" % (self
.this
,)
582 class wxActivateEvent(wxActivateEventPtr
):
583 def __init__(self
,*_args
,**_kwargs
):
584 self
.this
= apply(eventsc
.new_wxActivateEvent
,_args
,_kwargs
)
590 class wxInitDialogEventPtr(wxEventPtr
):
591 def __init__(self
,this
):
595 return "<C wxInitDialogEvent instance at %s>" % (self
.this
,)
596 class wxInitDialogEvent(wxInitDialogEventPtr
):
597 def __init__(self
,*_args
,**_kwargs
):
598 self
.this
= apply(eventsc
.new_wxInitDialogEvent
,_args
,_kwargs
)
604 class wxMenuEventPtr(wxEventPtr
):
605 def __init__(self
,this
):
608 def GetMenuId(self
, *_args
, **_kwargs
):
609 val
= apply(eventsc
.wxMenuEvent_GetMenuId
,(self
,) + _args
, _kwargs
)
612 return "<C wxMenuEvent instance at %s>" % (self
.this
,)
613 class wxMenuEvent(wxMenuEventPtr
):
614 def __init__(self
,*_args
,**_kwargs
):
615 self
.this
= apply(eventsc
.new_wxMenuEvent
,_args
,_kwargs
)
621 class wxShowEventPtr(wxEventPtr
):
622 def __init__(self
,this
):
625 def SetShow(self
, *_args
, **_kwargs
):
626 val
= apply(eventsc
.wxShowEvent_SetShow
,(self
,) + _args
, _kwargs
)
628 def GetShow(self
, *_args
, **_kwargs
):
629 val
= apply(eventsc
.wxShowEvent_GetShow
,(self
,) + _args
, _kwargs
)
632 return "<C wxShowEvent instance at %s>" % (self
.this
,)
633 class wxShowEvent(wxShowEventPtr
):
634 def __init__(self
,*_args
,**_kwargs
):
635 self
.this
= apply(eventsc
.new_wxShowEvent
,_args
,_kwargs
)
641 class wxIconizeEventPtr(wxEventPtr
):
642 def __init__(self
,this
):
646 return "<C wxIconizeEvent instance at %s>" % (self
.this
,)
647 class wxIconizeEvent(wxIconizeEventPtr
):
648 def __init__(self
,*_args
,**_kwargs
):
649 self
.this
= apply(eventsc
.new_wxIconizeEvent
,_args
,_kwargs
)
655 class wxMaximizeEventPtr(wxEventPtr
):
656 def __init__(self
,this
):
660 return "<C wxMaximizeEvent instance at %s>" % (self
.this
,)
661 class wxMaximizeEvent(wxMaximizeEventPtr
):
662 def __init__(self
,*_args
,**_kwargs
):
663 self
.this
= apply(eventsc
.new_wxMaximizeEvent
,_args
,_kwargs
)
669 class wxJoystickEventPtr(wxEventPtr
):
670 def __init__(self
,this
):
673 def GetPosition(self
, *_args
, **_kwargs
):
674 val
= apply(eventsc
.wxJoystickEvent_GetPosition
,(self
,) + _args
, _kwargs
)
675 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
677 def GetZPosition(self
, *_args
, **_kwargs
):
678 val
= apply(eventsc
.wxJoystickEvent_GetZPosition
,(self
,) + _args
, _kwargs
)
680 def GetButtonState(self
, *_args
, **_kwargs
):
681 val
= apply(eventsc
.wxJoystickEvent_GetButtonState
,(self
,) + _args
, _kwargs
)
683 def GetButtonChange(self
, *_args
, **_kwargs
):
684 val
= apply(eventsc
.wxJoystickEvent_GetButtonChange
,(self
,) + _args
, _kwargs
)
686 def GetJoystick(self
, *_args
, **_kwargs
):
687 val
= apply(eventsc
.wxJoystickEvent_GetJoystick
,(self
,) + _args
, _kwargs
)
689 def SetJoystick(self
, *_args
, **_kwargs
):
690 val
= apply(eventsc
.wxJoystickEvent_SetJoystick
,(self
,) + _args
, _kwargs
)
692 def SetButtonState(self
, *_args
, **_kwargs
):
693 val
= apply(eventsc
.wxJoystickEvent_SetButtonState
,(self
,) + _args
, _kwargs
)
695 def SetButtonChange(self
, *_args
, **_kwargs
):
696 val
= apply(eventsc
.wxJoystickEvent_SetButtonChange
,(self
,) + _args
, _kwargs
)
698 def SetPosition(self
, *_args
, **_kwargs
):
699 val
= apply(eventsc
.wxJoystickEvent_SetPosition
,(self
,) + _args
, _kwargs
)
701 def SetZPosition(self
, *_args
, **_kwargs
):
702 val
= apply(eventsc
.wxJoystickEvent_SetZPosition
,(self
,) + _args
, _kwargs
)
704 def IsButton(self
, *_args
, **_kwargs
):
705 val
= apply(eventsc
.wxJoystickEvent_IsButton
,(self
,) + _args
, _kwargs
)
707 def IsMove(self
, *_args
, **_kwargs
):
708 val
= apply(eventsc
.wxJoystickEvent_IsMove
,(self
,) + _args
, _kwargs
)
710 def IsZMove(self
, *_args
, **_kwargs
):
711 val
= apply(eventsc
.wxJoystickEvent_IsZMove
,(self
,) + _args
, _kwargs
)
713 def ButtonDown(self
, *_args
, **_kwargs
):
714 val
= apply(eventsc
.wxJoystickEvent_ButtonDown
,(self
,) + _args
, _kwargs
)
716 def ButtonUp(self
, *_args
, **_kwargs
):
717 val
= apply(eventsc
.wxJoystickEvent_ButtonUp
,(self
,) + _args
, _kwargs
)
719 def ButtonIsDown(self
, *_args
, **_kwargs
):
720 val
= apply(eventsc
.wxJoystickEvent_ButtonIsDown
,(self
,) + _args
, _kwargs
)
723 return "<C wxJoystickEvent instance at %s>" % (self
.this
,)
724 class wxJoystickEvent(wxJoystickEventPtr
):
725 def __init__(self
,*_args
,**_kwargs
):
726 self
.this
= apply(eventsc
.new_wxJoystickEvent
,_args
,_kwargs
)
732 class wxDropFilesEventPtr(wxEventPtr
):
733 def __init__(self
,this
):
736 def GetPosition(self
, *_args
, **_kwargs
):
737 val
= apply(eventsc
.wxDropFilesEvent_GetPosition
,(self
,) + _args
, _kwargs
)
738 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
740 def GetNumberOfFiles(self
, *_args
, **_kwargs
):
741 val
= apply(eventsc
.wxDropFilesEvent_GetNumberOfFiles
,(self
,) + _args
, _kwargs
)
743 def GetFiles(self
, *_args
, **_kwargs
):
744 val
= apply(eventsc
.wxDropFilesEvent_GetFiles
,(self
,) + _args
, _kwargs
)
747 return "<C wxDropFilesEvent instance at %s>" % (self
.this
,)
748 class wxDropFilesEvent(wxDropFilesEventPtr
):
749 def __init__(self
,this
):
755 class wxIdleEventPtr(wxEventPtr
):
756 def __init__(self
,this
):
759 def RequestMore(self
, *_args
, **_kwargs
):
760 val
= apply(eventsc
.wxIdleEvent_RequestMore
,(self
,) + _args
, _kwargs
)
762 def MoreRequested(self
, *_args
, **_kwargs
):
763 val
= apply(eventsc
.wxIdleEvent_MoreRequested
,(self
,) + _args
, _kwargs
)
766 return "<C wxIdleEvent instance at %s>" % (self
.this
,)
767 class wxIdleEvent(wxIdleEventPtr
):
768 def __init__(self
,*_args
,**_kwargs
):
769 self
.this
= apply(eventsc
.new_wxIdleEvent
,_args
,_kwargs
)
775 class wxUpdateUIEventPtr(wxEventPtr
):
776 def __init__(self
,this
):
779 def GetChecked(self
, *_args
, **_kwargs
):
780 val
= apply(eventsc
.wxUpdateUIEvent_GetChecked
,(self
,) + _args
, _kwargs
)
782 def GetEnabled(self
, *_args
, **_kwargs
):
783 val
= apply(eventsc
.wxUpdateUIEvent_GetEnabled
,(self
,) + _args
, _kwargs
)
785 def GetText(self
, *_args
, **_kwargs
):
786 val
= apply(eventsc
.wxUpdateUIEvent_GetText
,(self
,) + _args
, _kwargs
)
788 def GetSetText(self
, *_args
, **_kwargs
):
789 val
= apply(eventsc
.wxUpdateUIEvent_GetSetText
,(self
,) + _args
, _kwargs
)
791 def GetSetChecked(self
, *_args
, **_kwargs
):
792 val
= apply(eventsc
.wxUpdateUIEvent_GetSetChecked
,(self
,) + _args
, _kwargs
)
794 def GetSetEnabled(self
, *_args
, **_kwargs
):
795 val
= apply(eventsc
.wxUpdateUIEvent_GetSetEnabled
,(self
,) + _args
, _kwargs
)
797 def Check(self
, *_args
, **_kwargs
):
798 val
= apply(eventsc
.wxUpdateUIEvent_Check
,(self
,) + _args
, _kwargs
)
800 def Enable(self
, *_args
, **_kwargs
):
801 val
= apply(eventsc
.wxUpdateUIEvent_Enable
,(self
,) + _args
, _kwargs
)
803 def SetText(self
, *_args
, **_kwargs
):
804 val
= apply(eventsc
.wxUpdateUIEvent_SetText
,(self
,) + _args
, _kwargs
)
807 return "<C wxUpdateUIEvent instance at %s>" % (self
.this
,)
808 class wxUpdateUIEvent(wxUpdateUIEventPtr
):
809 def __init__(self
,*_args
,**_kwargs
):
810 self
.this
= apply(eventsc
.new_wxUpdateUIEvent
,_args
,_kwargs
)
816 class wxSysColourChangedEventPtr(wxEventPtr
):
817 def __init__(self
,this
):
821 return "<C wxSysColourChangedEvent instance at %s>" % (self
.this
,)
822 class wxSysColourChangedEvent(wxSysColourChangedEventPtr
):
823 def __init__(self
,*_args
,**_kwargs
):
824 self
.this
= apply(eventsc
.new_wxSysColourChangedEvent
,_args
,_kwargs
)
830 class wxNotifyEventPtr(wxCommandEventPtr
):
831 def __init__(self
,this
):
834 def IsAllowed(self
, *_args
, **_kwargs
):
835 val
= apply(eventsc
.wxNotifyEvent_IsAllowed
,(self
,) + _args
, _kwargs
)
837 def Allow(self
, *_args
, **_kwargs
):
838 val
= apply(eventsc
.wxNotifyEvent_Allow
,(self
,) + _args
, _kwargs
)
840 def Veto(self
, *_args
, **_kwargs
):
841 val
= apply(eventsc
.wxNotifyEvent_Veto
,(self
,) + _args
, _kwargs
)
844 return "<C wxNotifyEvent instance at %s>" % (self
.this
,)
845 class wxNotifyEvent(wxNotifyEventPtr
):
846 def __init__(self
,*_args
,**_kwargs
):
847 self
.this
= apply(eventsc
.new_wxNotifyEvent
,_args
,_kwargs
)
853 class wxPaletteChangedEventPtr(wxEventPtr
):
854 def __init__(self
,this
):
857 def SetChangedWindow(self
, *_args
, **_kwargs
):
858 val
= apply(eventsc
.wxPaletteChangedEvent_SetChangedWindow
,(self
,) + _args
, _kwargs
)
860 def GetChangedWindow(self
, *_args
, **_kwargs
):
861 val
= apply(eventsc
.wxPaletteChangedEvent_GetChangedWindow
,(self
,) + _args
, _kwargs
)
862 if val
: val
= wxWindowPtr(val
)
865 return "<C wxPaletteChangedEvent instance at %s>" % (self
.this
,)
866 class wxPaletteChangedEvent(wxPaletteChangedEventPtr
):
867 def __init__(self
,*_args
,**_kwargs
):
868 self
.this
= apply(eventsc
.new_wxPaletteChangedEvent
,_args
,_kwargs
)
874 class wxQueryNewPaletteEventPtr(wxEventPtr
):
875 def __init__(self
,this
):
878 def SetPaletteRealized(self
, *_args
, **_kwargs
):
879 val
= apply(eventsc
.wxQueryNewPaletteEvent_SetPaletteRealized
,(self
,) + _args
, _kwargs
)
881 def GetPaletteRealized(self
, *_args
, **_kwargs
):
882 val
= apply(eventsc
.wxQueryNewPaletteEvent_GetPaletteRealized
,(self
,) + _args
, _kwargs
)
885 return "<C wxQueryNewPaletteEvent instance at %s>" % (self
.this
,)
886 class wxQueryNewPaletteEvent(wxQueryNewPaletteEventPtr
):
887 def __init__(self
,*_args
,**_kwargs
):
888 self
.this
= apply(eventsc
.new_wxQueryNewPaletteEvent
,_args
,_kwargs
)
894 class wxWindowCreateEventPtr(wxCommandEventPtr
):
895 def __init__(self
,this
):
898 def GetWindow(self
, *_args
, **_kwargs
):
899 val
= apply(eventsc
.wxWindowCreateEvent_GetWindow
,(self
,) + _args
, _kwargs
)
900 if val
: val
= wxWindowPtr(val
)
903 return "<C wxWindowCreateEvent instance at %s>" % (self
.this
,)
904 class wxWindowCreateEvent(wxWindowCreateEventPtr
):
905 def __init__(self
,*_args
,**_kwargs
):
906 self
.this
= apply(eventsc
.new_wxWindowCreateEvent
,_args
,_kwargs
)
912 class wxWindowDestroyEventPtr(wxCommandEventPtr
):
913 def __init__(self
,this
):
916 def GetWindow(self
, *_args
, **_kwargs
):
917 val
= apply(eventsc
.wxWindowDestroyEvent_GetWindow
,(self
,) + _args
, _kwargs
)
918 if val
: val
= wxWindowPtr(val
)
921 return "<C wxWindowDestroyEvent instance at %s>" % (self
.this
,)
922 class wxWindowDestroyEvent(wxWindowDestroyEventPtr
):
923 def __init__(self
,*_args
,**_kwargs
):
924 self
.this
= apply(eventsc
.new_wxWindowDestroyEvent
,_args
,_kwargs
)
930 class wxTimerEventPtr(wxEventPtr
):
931 def __init__(self
,this
):
934 def GetInterval(self
, *_args
, **_kwargs
):
935 val
= apply(eventsc
.wxTimerEvent_GetInterval
,(self
,) + _args
, _kwargs
)
938 return "<C wxTimerEvent instance at %s>" % (self
.this
,)
939 class wxTimerEvent(wxTimerEventPtr
):
940 def __init__(self
,*_args
,**_kwargs
):
941 self
.this
= apply(eventsc
.new_wxTimerEvent
,_args
,_kwargs
)
947 class wxPyEventPtr(wxEventPtr
):
948 def __init__(self
,this
):
951 def __del__(self
,eventsc
=eventsc
):
952 if self
.thisown
== 1 :
953 eventsc
.delete_wxPyEvent(self
)
954 def SetSelf(self
, *_args
, **_kwargs
):
955 val
= apply(eventsc
.wxPyEvent_SetSelf
,(self
,) + _args
, _kwargs
)
957 def GetSelf(self
, *_args
, **_kwargs
):
958 val
= apply(eventsc
.wxPyEvent_GetSelf
,(self
,) + _args
, _kwargs
)
961 return "<C wxPyEvent instance at %s>" % (self
.this
,)
962 class wxPyEvent(wxPyEventPtr
):
963 def __init__(self
,*_args
,**_kwargs
):
964 self
.this
= apply(eventsc
.new_wxPyEvent
,_args
,_kwargs
)
971 class wxPyCommandEventPtr(wxCommandEventPtr
):
972 def __init__(self
,this
):
975 def __del__(self
,eventsc
=eventsc
):
976 if self
.thisown
== 1 :
977 eventsc
.delete_wxPyCommandEvent(self
)
978 def SetSelf(self
, *_args
, **_kwargs
):
979 val
= apply(eventsc
.wxPyCommandEvent_SetSelf
,(self
,) + _args
, _kwargs
)
981 def GetSelf(self
, *_args
, **_kwargs
):
982 val
= apply(eventsc
.wxPyCommandEvent_GetSelf
,(self
,) + _args
, _kwargs
)
985 return "<C wxPyCommandEvent instance at %s>" % (self
.this
,)
986 class wxPyCommandEvent(wxPyCommandEventPtr
):
987 def __init__(self
,*_args
,**_kwargs
):
988 self
.this
= apply(eventsc
.new_wxPyCommandEvent
,_args
,_kwargs
)
997 #-------------- FUNCTION WRAPPERS ------------------
999 wxNewEventType
= eventsc
.wxNewEventType
1003 #-------------- VARIABLE WRAPPERS ------------------