1 # This file was created automatically by SWIG.
7 class wxEventPtr(wxObjectPtr
):
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
)
44 def Clone(self
, *_args
, **_kwargs
):
45 val
= apply(eventsc
.wxEvent_Clone
,(self
,) + _args
, _kwargs
)
46 if val
: val
= wxEventPtr(val
)
49 return "<C wxEvent instance at %s>" % (self
.this
,)
50 class wxEvent(wxEventPtr
):
51 def __init__(self
,*_args
,**_kwargs
):
52 self
.this
= apply(eventsc
.new_wxEvent
,_args
,_kwargs
)
58 class wxSizeEventPtr(wxEventPtr
):
59 def __init__(self
,this
):
62 def GetSize(self
, *_args
, **_kwargs
):
63 val
= apply(eventsc
.wxSizeEvent_GetSize
,(self
,) + _args
, _kwargs
)
64 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
67 return "<C wxSizeEvent instance at %s>" % (self
.this
,)
68 class wxSizeEvent(wxSizeEventPtr
):
69 def __init__(self
,*_args
,**_kwargs
):
70 self
.this
= apply(eventsc
.new_wxSizeEvent
,_args
,_kwargs
)
76 class wxCloseEventPtr(wxEventPtr
):
77 def __init__(self
,this
):
80 def SetLoggingOff(self
, *_args
, **_kwargs
):
81 val
= apply(eventsc
.wxCloseEvent_SetLoggingOff
,(self
,) + _args
, _kwargs
)
83 def GetLoggingOff(self
, *_args
, **_kwargs
):
84 val
= apply(eventsc
.wxCloseEvent_GetLoggingOff
,(self
,) + _args
, _kwargs
)
86 def Veto(self
, *_args
, **_kwargs
):
87 val
= apply(eventsc
.wxCloseEvent_Veto
,(self
,) + _args
, _kwargs
)
89 def CanVeto(self
, *_args
, **_kwargs
):
90 val
= apply(eventsc
.wxCloseEvent_CanVeto
,(self
,) + _args
, _kwargs
)
92 def GetVeto(self
, *_args
, **_kwargs
):
93 val
= apply(eventsc
.wxCloseEvent_GetVeto
,(self
,) + _args
, _kwargs
)
95 def SetCanVeto(self
, *_args
, **_kwargs
):
96 val
= apply(eventsc
.wxCloseEvent_SetCanVeto
,(self
,) + _args
, _kwargs
)
99 return "<C wxCloseEvent instance at %s>" % (self
.this
,)
100 class wxCloseEvent(wxCloseEventPtr
):
101 def __init__(self
,*_args
,**_kwargs
):
102 self
.this
= apply(eventsc
.new_wxCloseEvent
,_args
,_kwargs
)
108 class wxCommandEventPtr(wxEventPtr
):
109 def __init__(self
,this
):
112 def IsChecked(self
, *_args
, **_kwargs
):
113 val
= apply(eventsc
.wxCommandEvent_IsChecked
,(self
,) + _args
, _kwargs
)
115 def Checked(self
, *_args
, **_kwargs
):
116 val
= apply(eventsc
.wxCommandEvent_Checked
,(self
,) + _args
, _kwargs
)
118 def GetExtraLong(self
, *_args
, **_kwargs
):
119 val
= apply(eventsc
.wxCommandEvent_GetExtraLong
,(self
,) + _args
, _kwargs
)
121 def GetInt(self
, *_args
, **_kwargs
):
122 val
= apply(eventsc
.wxCommandEvent_GetInt
,(self
,) + _args
, _kwargs
)
124 def GetSelection(self
, *_args
, **_kwargs
):
125 val
= apply(eventsc
.wxCommandEvent_GetSelection
,(self
,) + _args
, _kwargs
)
127 def GetString(self
, *_args
, **_kwargs
):
128 val
= apply(eventsc
.wxCommandEvent_GetString
,(self
,) + _args
, _kwargs
)
130 def IsSelection(self
, *_args
, **_kwargs
):
131 val
= apply(eventsc
.wxCommandEvent_IsSelection
,(self
,) + _args
, _kwargs
)
133 def SetString(self
, *_args
, **_kwargs
):
134 val
= apply(eventsc
.wxCommandEvent_SetString
,(self
,) + _args
, _kwargs
)
136 def SetExtraLong(self
, *_args
, **_kwargs
):
137 val
= apply(eventsc
.wxCommandEvent_SetExtraLong
,(self
,) + _args
, _kwargs
)
139 def SetInt(self
, *_args
, **_kwargs
):
140 val
= apply(eventsc
.wxCommandEvent_SetInt
,(self
,) + _args
, _kwargs
)
142 def GetClientData(self
, *_args
, **_kwargs
):
143 val
= apply(eventsc
.wxCommandEvent_GetClientData
,(self
,) + _args
, _kwargs
)
146 return "<C wxCommandEvent instance at %s>" % (self
.this
,)
147 class wxCommandEvent(wxCommandEventPtr
):
148 def __init__(self
,*_args
,**_kwargs
):
149 self
.this
= apply(eventsc
.new_wxCommandEvent
,_args
,_kwargs
)
155 class wxScrollEventPtr(wxCommandEventPtr
):
156 def __init__(self
,this
):
159 def GetOrientation(self
, *_args
, **_kwargs
):
160 val
= apply(eventsc
.wxScrollEvent_GetOrientation
,(self
,) + _args
, _kwargs
)
162 def GetPosition(self
, *_args
, **_kwargs
):
163 val
= apply(eventsc
.wxScrollEvent_GetPosition
,(self
,) + _args
, _kwargs
)
166 return "<C wxScrollEvent instance at %s>" % (self
.this
,)
167 class wxScrollEvent(wxScrollEventPtr
):
168 def __init__(self
,*_args
,**_kwargs
):
169 self
.this
= apply(eventsc
.new_wxScrollEvent
,_args
,_kwargs
)
175 class wxScrollWinEventPtr(wxEventPtr
):
176 def __init__(self
,this
):
179 def GetOrientation(self
, *_args
, **_kwargs
):
180 val
= apply(eventsc
.wxScrollWinEvent_GetOrientation
,(self
,) + _args
, _kwargs
)
182 def GetPosition(self
, *_args
, **_kwargs
):
183 val
= apply(eventsc
.wxScrollWinEvent_GetPosition
,(self
,) + _args
, _kwargs
)
186 return "<C wxScrollWinEvent instance at %s>" % (self
.this
,)
187 class wxScrollWinEvent(wxScrollWinEventPtr
):
188 def __init__(self
,*_args
,**_kwargs
):
189 self
.this
= apply(eventsc
.new_wxScrollWinEvent
,_args
,_kwargs
)
195 class wxSpinEventPtr(wxScrollEventPtr
):
196 def __init__(self
,this
):
200 return "<C wxSpinEvent instance at %s>" % (self
.this
,)
201 class wxSpinEvent(wxSpinEventPtr
):
202 def __init__(self
,*_args
,**_kwargs
):
203 self
.this
= apply(eventsc
.new_wxSpinEvent
,_args
,_kwargs
)
209 class wxMouseEventPtr(wxEventPtr
):
210 def __init__(self
,this
):
213 def IsButton(self
, *_args
, **_kwargs
):
214 val
= apply(eventsc
.wxMouseEvent_IsButton
,(self
,) + _args
, _kwargs
)
216 def ButtonDown(self
, *_args
, **_kwargs
):
217 val
= apply(eventsc
.wxMouseEvent_ButtonDown
,(self
,) + _args
, _kwargs
)
219 def ButtonDClick(self
, *_args
, **_kwargs
):
220 val
= apply(eventsc
.wxMouseEvent_ButtonDClick
,(self
,) + _args
, _kwargs
)
222 def ButtonUp(self
, *_args
, **_kwargs
):
223 val
= apply(eventsc
.wxMouseEvent_ButtonUp
,(self
,) + _args
, _kwargs
)
225 def Button(self
, *_args
, **_kwargs
):
226 val
= apply(eventsc
.wxMouseEvent_Button
,(self
,) + _args
, _kwargs
)
228 def ButtonIsDown(self
, *_args
, **_kwargs
):
229 val
= apply(eventsc
.wxMouseEvent_ButtonIsDown
,(self
,) + _args
, _kwargs
)
231 def ControlDown(self
, *_args
, **_kwargs
):
232 val
= apply(eventsc
.wxMouseEvent_ControlDown
,(self
,) + _args
, _kwargs
)
234 def MetaDown(self
, *_args
, **_kwargs
):
235 val
= apply(eventsc
.wxMouseEvent_MetaDown
,(self
,) + _args
, _kwargs
)
237 def AltDown(self
, *_args
, **_kwargs
):
238 val
= apply(eventsc
.wxMouseEvent_AltDown
,(self
,) + _args
, _kwargs
)
240 def ShiftDown(self
, *_args
, **_kwargs
):
241 val
= apply(eventsc
.wxMouseEvent_ShiftDown
,(self
,) + _args
, _kwargs
)
243 def LeftDown(self
, *_args
, **_kwargs
):
244 val
= apply(eventsc
.wxMouseEvent_LeftDown
,(self
,) + _args
, _kwargs
)
246 def MiddleDown(self
, *_args
, **_kwargs
):
247 val
= apply(eventsc
.wxMouseEvent_MiddleDown
,(self
,) + _args
, _kwargs
)
249 def RightDown(self
, *_args
, **_kwargs
):
250 val
= apply(eventsc
.wxMouseEvent_RightDown
,(self
,) + _args
, _kwargs
)
252 def LeftUp(self
, *_args
, **_kwargs
):
253 val
= apply(eventsc
.wxMouseEvent_LeftUp
,(self
,) + _args
, _kwargs
)
255 def MiddleUp(self
, *_args
, **_kwargs
):
256 val
= apply(eventsc
.wxMouseEvent_MiddleUp
,(self
,) + _args
, _kwargs
)
258 def RightUp(self
, *_args
, **_kwargs
):
259 val
= apply(eventsc
.wxMouseEvent_RightUp
,(self
,) + _args
, _kwargs
)
261 def LeftDClick(self
, *_args
, **_kwargs
):
262 val
= apply(eventsc
.wxMouseEvent_LeftDClick
,(self
,) + _args
, _kwargs
)
264 def MiddleDClick(self
, *_args
, **_kwargs
):
265 val
= apply(eventsc
.wxMouseEvent_MiddleDClick
,(self
,) + _args
, _kwargs
)
267 def RightDClick(self
, *_args
, **_kwargs
):
268 val
= apply(eventsc
.wxMouseEvent_RightDClick
,(self
,) + _args
, _kwargs
)
270 def LeftIsDown(self
, *_args
, **_kwargs
):
271 val
= apply(eventsc
.wxMouseEvent_LeftIsDown
,(self
,) + _args
, _kwargs
)
273 def MiddleIsDown(self
, *_args
, **_kwargs
):
274 val
= apply(eventsc
.wxMouseEvent_MiddleIsDown
,(self
,) + _args
, _kwargs
)
276 def RightIsDown(self
, *_args
, **_kwargs
):
277 val
= apply(eventsc
.wxMouseEvent_RightIsDown
,(self
,) + _args
, _kwargs
)
279 def Dragging(self
, *_args
, **_kwargs
):
280 val
= apply(eventsc
.wxMouseEvent_Dragging
,(self
,) + _args
, _kwargs
)
282 def Moving(self
, *_args
, **_kwargs
):
283 val
= apply(eventsc
.wxMouseEvent_Moving
,(self
,) + _args
, _kwargs
)
285 def Entering(self
, *_args
, **_kwargs
):
286 val
= apply(eventsc
.wxMouseEvent_Entering
,(self
,) + _args
, _kwargs
)
288 def Leaving(self
, *_args
, **_kwargs
):
289 val
= apply(eventsc
.wxMouseEvent_Leaving
,(self
,) + _args
, _kwargs
)
291 def GetPosition(self
, *_args
, **_kwargs
):
292 val
= apply(eventsc
.wxMouseEvent_GetPosition
,(self
,) + _args
, _kwargs
)
293 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
295 def GetPositionTuple(self
, *_args
, **_kwargs
):
296 val
= apply(eventsc
.wxMouseEvent_GetPositionTuple
,(self
,) + _args
, _kwargs
)
298 def GetLogicalPosition(self
, *_args
, **_kwargs
):
299 val
= apply(eventsc
.wxMouseEvent_GetLogicalPosition
,(self
,) + _args
, _kwargs
)
300 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
302 def GetX(self
, *_args
, **_kwargs
):
303 val
= apply(eventsc
.wxMouseEvent_GetX
,(self
,) + _args
, _kwargs
)
305 def GetY(self
, *_args
, **_kwargs
):
306 val
= apply(eventsc
.wxMouseEvent_GetY
,(self
,) + _args
, _kwargs
)
308 def GetWheelRotation(self
, *_args
, **_kwargs
):
309 val
= apply(eventsc
.wxMouseEvent_GetWheelRotation
,(self
,) + _args
, _kwargs
)
311 def GetWheelDelta(self
, *_args
, **_kwargs
):
312 val
= apply(eventsc
.wxMouseEvent_GetWheelDelta
,(self
,) + _args
, _kwargs
)
314 def GetLinesPerAction(self
, *_args
, **_kwargs
):
315 val
= apply(eventsc
.wxMouseEvent_GetLinesPerAction
,(self
,) + _args
, _kwargs
)
317 def __setattr__(self
,name
,value
):
319 eventsc
.wxMouseEvent_m_x_set(self
,value
)
322 eventsc
.wxMouseEvent_m_y_set(self
,value
)
324 if name
== "m_leftDown" :
325 eventsc
.wxMouseEvent_m_leftDown_set(self
,value
)
327 if name
== "m_middleDown" :
328 eventsc
.wxMouseEvent_m_middleDown_set(self
,value
)
330 if name
== "m_rightDown" :
331 eventsc
.wxMouseEvent_m_rightDown_set(self
,value
)
333 if name
== "m_controlDown" :
334 eventsc
.wxMouseEvent_m_controlDown_set(self
,value
)
336 if name
== "m_shiftDown" :
337 eventsc
.wxMouseEvent_m_shiftDown_set(self
,value
)
339 if name
== "m_altDown" :
340 eventsc
.wxMouseEvent_m_altDown_set(self
,value
)
342 if name
== "m_metaDown" :
343 eventsc
.wxMouseEvent_m_metaDown_set(self
,value
)
345 if name
== "m_wheelRotation" :
346 eventsc
.wxMouseEvent_m_wheelRotation_set(self
,value
)
348 if name
== "m_wheelDelta" :
349 eventsc
.wxMouseEvent_m_wheelDelta_set(self
,value
)
351 if name
== "m_linesPerAction" :
352 eventsc
.wxMouseEvent_m_linesPerAction_set(self
,value
)
354 self
.__dict
__[name
] = value
355 def __getattr__(self
,name
):
357 return eventsc
.wxMouseEvent_m_x_get(self
)
359 return eventsc
.wxMouseEvent_m_y_get(self
)
360 if name
== "m_leftDown" :
361 return eventsc
.wxMouseEvent_m_leftDown_get(self
)
362 if name
== "m_middleDown" :
363 return eventsc
.wxMouseEvent_m_middleDown_get(self
)
364 if name
== "m_rightDown" :
365 return eventsc
.wxMouseEvent_m_rightDown_get(self
)
366 if name
== "m_controlDown" :
367 return eventsc
.wxMouseEvent_m_controlDown_get(self
)
368 if name
== "m_shiftDown" :
369 return eventsc
.wxMouseEvent_m_shiftDown_get(self
)
370 if name
== "m_altDown" :
371 return eventsc
.wxMouseEvent_m_altDown_get(self
)
372 if name
== "m_metaDown" :
373 return eventsc
.wxMouseEvent_m_metaDown_get(self
)
374 if name
== "m_wheelRotation" :
375 return eventsc
.wxMouseEvent_m_wheelRotation_get(self
)
376 if name
== "m_wheelDelta" :
377 return eventsc
.wxMouseEvent_m_wheelDelta_get(self
)
378 if name
== "m_linesPerAction" :
379 return eventsc
.wxMouseEvent_m_linesPerAction_get(self
)
380 raise AttributeError,name
382 return "<C wxMouseEvent instance at %s>" % (self
.this
,)
383 class wxMouseEvent(wxMouseEventPtr
):
384 def __init__(self
,*_args
,**_kwargs
):
385 self
.this
= apply(eventsc
.new_wxMouseEvent
,_args
,_kwargs
)
391 class wxKeyEventPtr(wxEventPtr
):
392 def __init__(self
,this
):
395 def ControlDown(self
, *_args
, **_kwargs
):
396 val
= apply(eventsc
.wxKeyEvent_ControlDown
,(self
,) + _args
, _kwargs
)
398 def MetaDown(self
, *_args
, **_kwargs
):
399 val
= apply(eventsc
.wxKeyEvent_MetaDown
,(self
,) + _args
, _kwargs
)
401 def AltDown(self
, *_args
, **_kwargs
):
402 val
= apply(eventsc
.wxKeyEvent_AltDown
,(self
,) + _args
, _kwargs
)
404 def ShiftDown(self
, *_args
, **_kwargs
):
405 val
= apply(eventsc
.wxKeyEvent_ShiftDown
,(self
,) + _args
, _kwargs
)
407 def KeyCode(self
, *_args
, **_kwargs
):
408 val
= apply(eventsc
.wxKeyEvent_KeyCode
,(self
,) + _args
, _kwargs
)
410 def GetKeyCode(self
, *_args
, **_kwargs
):
411 val
= apply(eventsc
.wxKeyEvent_GetKeyCode
,(self
,) + _args
, _kwargs
)
413 def HasModifiers(self
, *_args
, **_kwargs
):
414 val
= apply(eventsc
.wxKeyEvent_HasModifiers
,(self
,) + _args
, _kwargs
)
416 def GetX(self
, *_args
, **_kwargs
):
417 val
= apply(eventsc
.wxKeyEvent_GetX
,(self
,) + _args
, _kwargs
)
419 def GetY(self
, *_args
, **_kwargs
):
420 val
= apply(eventsc
.wxKeyEvent_GetY
,(self
,) + _args
, _kwargs
)
422 def GetPosition(self
, *_args
, **_kwargs
):
423 val
= apply(eventsc
.wxKeyEvent_GetPosition
,(self
,) + _args
, _kwargs
)
424 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
426 def GetPositionTuple(self
, *_args
, **_kwargs
):
427 val
= apply(eventsc
.wxKeyEvent_GetPositionTuple
,(self
,) + _args
, _kwargs
)
429 def __setattr__(self
,name
,value
):
431 eventsc
.wxKeyEvent_m_x_set(self
,value
)
434 eventsc
.wxKeyEvent_m_y_set(self
,value
)
436 if name
== "m_keyCode" :
437 eventsc
.wxKeyEvent_m_keyCode_set(self
,value
)
439 if name
== "m_controlDown" :
440 eventsc
.wxKeyEvent_m_controlDown_set(self
,value
)
442 if name
== "m_shiftDown" :
443 eventsc
.wxKeyEvent_m_shiftDown_set(self
,value
)
445 if name
== "m_altDown" :
446 eventsc
.wxKeyEvent_m_altDown_set(self
,value
)
448 if name
== "m_metaDown" :
449 eventsc
.wxKeyEvent_m_metaDown_set(self
,value
)
451 if name
== "m_scanCode" :
452 eventsc
.wxKeyEvent_m_scanCode_set(self
,value
)
454 self
.__dict
__[name
] = value
455 def __getattr__(self
,name
):
457 return eventsc
.wxKeyEvent_m_x_get(self
)
459 return eventsc
.wxKeyEvent_m_y_get(self
)
460 if name
== "m_keyCode" :
461 return eventsc
.wxKeyEvent_m_keyCode_get(self
)
462 if name
== "m_controlDown" :
463 return eventsc
.wxKeyEvent_m_controlDown_get(self
)
464 if name
== "m_shiftDown" :
465 return eventsc
.wxKeyEvent_m_shiftDown_get(self
)
466 if name
== "m_altDown" :
467 return eventsc
.wxKeyEvent_m_altDown_get(self
)
468 if name
== "m_metaDown" :
469 return eventsc
.wxKeyEvent_m_metaDown_get(self
)
470 if name
== "m_scanCode" :
471 return eventsc
.wxKeyEvent_m_scanCode_get(self
)
472 raise AttributeError,name
474 return "<C wxKeyEvent instance at %s>" % (self
.this
,)
475 class wxKeyEvent(wxKeyEventPtr
):
476 def __init__(self
,*_args
,**_kwargs
):
477 self
.this
= apply(eventsc
.new_wxKeyEvent
,_args
,_kwargs
)
483 class wxNavigationKeyEventPtr(wxEventPtr
):
484 def __init__(self
,this
):
487 def GetDirection(self
, *_args
, **_kwargs
):
488 val
= apply(eventsc
.wxNavigationKeyEvent_GetDirection
,(self
,) + _args
, _kwargs
)
490 def SetDirection(self
, *_args
, **_kwargs
):
491 val
= apply(eventsc
.wxNavigationKeyEvent_SetDirection
,(self
,) + _args
, _kwargs
)
493 def IsWindowChange(self
, *_args
, **_kwargs
):
494 val
= apply(eventsc
.wxNavigationKeyEvent_IsWindowChange
,(self
,) + _args
, _kwargs
)
496 def SetWindowChange(self
, *_args
, **_kwargs
):
497 val
= apply(eventsc
.wxNavigationKeyEvent_SetWindowChange
,(self
,) + _args
, _kwargs
)
499 def GetCurrentFocus(self
, *_args
, **_kwargs
):
500 val
= apply(eventsc
.wxNavigationKeyEvent_GetCurrentFocus
,(self
,) + _args
, _kwargs
)
502 def SetCurrentFocus(self
, *_args
, **_kwargs
):
503 val
= apply(eventsc
.wxNavigationKeyEvent_SetCurrentFocus
,(self
,) + _args
, _kwargs
)
506 return "<C wxNavigationKeyEvent instance at %s>" % (self
.this
,)
507 class wxNavigationKeyEvent(wxNavigationKeyEventPtr
):
508 def __init__(self
,*_args
,**_kwargs
):
509 self
.this
= apply(eventsc
.new_wxNavigationKeyEvent
,_args
,_kwargs
)
515 class wxMoveEventPtr(wxEventPtr
):
516 def __init__(self
,this
):
519 def GetPosition(self
, *_args
, **_kwargs
):
520 val
= apply(eventsc
.wxMoveEvent_GetPosition
,(self
,) + _args
, _kwargs
)
521 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
524 return "<C wxMoveEvent instance at %s>" % (self
.this
,)
525 class wxMoveEvent(wxMoveEventPtr
):
526 def __init__(self
,*_args
,**_kwargs
):
527 self
.this
= apply(eventsc
.new_wxMoveEvent
,_args
,_kwargs
)
533 class wxPaintEventPtr(wxEventPtr
):
534 def __init__(self
,this
):
538 return "<C wxPaintEvent instance at %s>" % (self
.this
,)
539 class wxPaintEvent(wxPaintEventPtr
):
540 def __init__(self
,*_args
,**_kwargs
):
541 self
.this
= apply(eventsc
.new_wxPaintEvent
,_args
,_kwargs
)
547 class wxEraseEventPtr(wxEventPtr
):
548 def __init__(self
,this
):
551 def GetDC(self
, *_args
, **_kwargs
):
552 val
= apply(eventsc
.wxEraseEvent_GetDC
,(self
,) + _args
, _kwargs
)
555 return "<C wxEraseEvent instance at %s>" % (self
.this
,)
556 class wxEraseEvent(wxEraseEventPtr
):
557 def __init__(self
,*_args
,**_kwargs
):
558 self
.this
= apply(eventsc
.new_wxEraseEvent
,_args
,_kwargs
)
564 class wxFocusEventPtr(wxEventPtr
):
565 def __init__(self
,this
):
569 return "<C wxFocusEvent instance at %s>" % (self
.this
,)
570 class wxFocusEvent(wxFocusEventPtr
):
571 def __init__(self
,*_args
,**_kwargs
):
572 self
.this
= apply(eventsc
.new_wxFocusEvent
,_args
,_kwargs
)
578 class wxActivateEventPtr(wxEventPtr
):
579 def __init__(self
,this
):
582 def GetActive(self
, *_args
, **_kwargs
):
583 val
= apply(eventsc
.wxActivateEvent_GetActive
,(self
,) + _args
, _kwargs
)
586 return "<C wxActivateEvent instance at %s>" % (self
.this
,)
587 class wxActivateEvent(wxActivateEventPtr
):
588 def __init__(self
,*_args
,**_kwargs
):
589 self
.this
= apply(eventsc
.new_wxActivateEvent
,_args
,_kwargs
)
595 class wxInitDialogEventPtr(wxEventPtr
):
596 def __init__(self
,this
):
600 return "<C wxInitDialogEvent instance at %s>" % (self
.this
,)
601 class wxInitDialogEvent(wxInitDialogEventPtr
):
602 def __init__(self
,*_args
,**_kwargs
):
603 self
.this
= apply(eventsc
.new_wxInitDialogEvent
,_args
,_kwargs
)
609 class wxMenuEventPtr(wxEventPtr
):
610 def __init__(self
,this
):
613 def GetMenuId(self
, *_args
, **_kwargs
):
614 val
= apply(eventsc
.wxMenuEvent_GetMenuId
,(self
,) + _args
, _kwargs
)
617 return "<C wxMenuEvent instance at %s>" % (self
.this
,)
618 class wxMenuEvent(wxMenuEventPtr
):
619 def __init__(self
,*_args
,**_kwargs
):
620 self
.this
= apply(eventsc
.new_wxMenuEvent
,_args
,_kwargs
)
626 class wxShowEventPtr(wxEventPtr
):
627 def __init__(self
,this
):
630 def SetShow(self
, *_args
, **_kwargs
):
631 val
= apply(eventsc
.wxShowEvent_SetShow
,(self
,) + _args
, _kwargs
)
633 def GetShow(self
, *_args
, **_kwargs
):
634 val
= apply(eventsc
.wxShowEvent_GetShow
,(self
,) + _args
, _kwargs
)
637 return "<C wxShowEvent instance at %s>" % (self
.this
,)
638 class wxShowEvent(wxShowEventPtr
):
639 def __init__(self
,*_args
,**_kwargs
):
640 self
.this
= apply(eventsc
.new_wxShowEvent
,_args
,_kwargs
)
646 class wxIconizeEventPtr(wxEventPtr
):
647 def __init__(self
,this
):
650 def Iconized(self
, *_args
, **_kwargs
):
651 val
= apply(eventsc
.wxIconizeEvent_Iconized
,(self
,) + _args
, _kwargs
)
654 return "<C wxIconizeEvent instance at %s>" % (self
.this
,)
655 class wxIconizeEvent(wxIconizeEventPtr
):
656 def __init__(self
,*_args
,**_kwargs
):
657 self
.this
= apply(eventsc
.new_wxIconizeEvent
,_args
,_kwargs
)
663 class wxMaximizeEventPtr(wxEventPtr
):
664 def __init__(self
,this
):
668 return "<C wxMaximizeEvent instance at %s>" % (self
.this
,)
669 class wxMaximizeEvent(wxMaximizeEventPtr
):
670 def __init__(self
,*_args
,**_kwargs
):
671 self
.this
= apply(eventsc
.new_wxMaximizeEvent
,_args
,_kwargs
)
677 class wxJoystickEventPtr(wxEventPtr
):
678 def __init__(self
,this
):
681 def GetPosition(self
, *_args
, **_kwargs
):
682 val
= apply(eventsc
.wxJoystickEvent_GetPosition
,(self
,) + _args
, _kwargs
)
683 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
685 def GetZPosition(self
, *_args
, **_kwargs
):
686 val
= apply(eventsc
.wxJoystickEvent_GetZPosition
,(self
,) + _args
, _kwargs
)
688 def GetButtonState(self
, *_args
, **_kwargs
):
689 val
= apply(eventsc
.wxJoystickEvent_GetButtonState
,(self
,) + _args
, _kwargs
)
691 def GetButtonChange(self
, *_args
, **_kwargs
):
692 val
= apply(eventsc
.wxJoystickEvent_GetButtonChange
,(self
,) + _args
, _kwargs
)
694 def GetJoystick(self
, *_args
, **_kwargs
):
695 val
= apply(eventsc
.wxJoystickEvent_GetJoystick
,(self
,) + _args
, _kwargs
)
697 def SetJoystick(self
, *_args
, **_kwargs
):
698 val
= apply(eventsc
.wxJoystickEvent_SetJoystick
,(self
,) + _args
, _kwargs
)
700 def SetButtonState(self
, *_args
, **_kwargs
):
701 val
= apply(eventsc
.wxJoystickEvent_SetButtonState
,(self
,) + _args
, _kwargs
)
703 def SetButtonChange(self
, *_args
, **_kwargs
):
704 val
= apply(eventsc
.wxJoystickEvent_SetButtonChange
,(self
,) + _args
, _kwargs
)
706 def SetPosition(self
, *_args
, **_kwargs
):
707 val
= apply(eventsc
.wxJoystickEvent_SetPosition
,(self
,) + _args
, _kwargs
)
709 def SetZPosition(self
, *_args
, **_kwargs
):
710 val
= apply(eventsc
.wxJoystickEvent_SetZPosition
,(self
,) + _args
, _kwargs
)
712 def IsButton(self
, *_args
, **_kwargs
):
713 val
= apply(eventsc
.wxJoystickEvent_IsButton
,(self
,) + _args
, _kwargs
)
715 def IsMove(self
, *_args
, **_kwargs
):
716 val
= apply(eventsc
.wxJoystickEvent_IsMove
,(self
,) + _args
, _kwargs
)
718 def IsZMove(self
, *_args
, **_kwargs
):
719 val
= apply(eventsc
.wxJoystickEvent_IsZMove
,(self
,) + _args
, _kwargs
)
721 def ButtonDown(self
, *_args
, **_kwargs
):
722 val
= apply(eventsc
.wxJoystickEvent_ButtonDown
,(self
,) + _args
, _kwargs
)
724 def ButtonUp(self
, *_args
, **_kwargs
):
725 val
= apply(eventsc
.wxJoystickEvent_ButtonUp
,(self
,) + _args
, _kwargs
)
727 def ButtonIsDown(self
, *_args
, **_kwargs
):
728 val
= apply(eventsc
.wxJoystickEvent_ButtonIsDown
,(self
,) + _args
, _kwargs
)
731 return "<C wxJoystickEvent instance at %s>" % (self
.this
,)
732 class wxJoystickEvent(wxJoystickEventPtr
):
733 def __init__(self
,*_args
,**_kwargs
):
734 self
.this
= apply(eventsc
.new_wxJoystickEvent
,_args
,_kwargs
)
740 class wxDropFilesEventPtr(wxEventPtr
):
741 def __init__(self
,this
):
744 def GetPosition(self
, *_args
, **_kwargs
):
745 val
= apply(eventsc
.wxDropFilesEvent_GetPosition
,(self
,) + _args
, _kwargs
)
746 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
748 def GetNumberOfFiles(self
, *_args
, **_kwargs
):
749 val
= apply(eventsc
.wxDropFilesEvent_GetNumberOfFiles
,(self
,) + _args
, _kwargs
)
751 def GetFiles(self
, *_args
, **_kwargs
):
752 val
= apply(eventsc
.wxDropFilesEvent_GetFiles
,(self
,) + _args
, _kwargs
)
755 return "<C wxDropFilesEvent instance at %s>" % (self
.this
,)
756 class wxDropFilesEvent(wxDropFilesEventPtr
):
757 def __init__(self
,this
):
763 class wxIdleEventPtr(wxEventPtr
):
764 def __init__(self
,this
):
767 def RequestMore(self
, *_args
, **_kwargs
):
768 val
= apply(eventsc
.wxIdleEvent_RequestMore
,(self
,) + _args
, _kwargs
)
770 def MoreRequested(self
, *_args
, **_kwargs
):
771 val
= apply(eventsc
.wxIdleEvent_MoreRequested
,(self
,) + _args
, _kwargs
)
774 return "<C wxIdleEvent instance at %s>" % (self
.this
,)
775 class wxIdleEvent(wxIdleEventPtr
):
776 def __init__(self
,*_args
,**_kwargs
):
777 self
.this
= apply(eventsc
.new_wxIdleEvent
,_args
,_kwargs
)
783 class wxUpdateUIEventPtr(wxEventPtr
):
784 def __init__(self
,this
):
787 def GetChecked(self
, *_args
, **_kwargs
):
788 val
= apply(eventsc
.wxUpdateUIEvent_GetChecked
,(self
,) + _args
, _kwargs
)
790 def GetEnabled(self
, *_args
, **_kwargs
):
791 val
= apply(eventsc
.wxUpdateUIEvent_GetEnabled
,(self
,) + _args
, _kwargs
)
793 def GetText(self
, *_args
, **_kwargs
):
794 val
= apply(eventsc
.wxUpdateUIEvent_GetText
,(self
,) + _args
, _kwargs
)
796 def GetSetText(self
, *_args
, **_kwargs
):
797 val
= apply(eventsc
.wxUpdateUIEvent_GetSetText
,(self
,) + _args
, _kwargs
)
799 def GetSetChecked(self
, *_args
, **_kwargs
):
800 val
= apply(eventsc
.wxUpdateUIEvent_GetSetChecked
,(self
,) + _args
, _kwargs
)
802 def GetSetEnabled(self
, *_args
, **_kwargs
):
803 val
= apply(eventsc
.wxUpdateUIEvent_GetSetEnabled
,(self
,) + _args
, _kwargs
)
805 def Check(self
, *_args
, **_kwargs
):
806 val
= apply(eventsc
.wxUpdateUIEvent_Check
,(self
,) + _args
, _kwargs
)
808 def Enable(self
, *_args
, **_kwargs
):
809 val
= apply(eventsc
.wxUpdateUIEvent_Enable
,(self
,) + _args
, _kwargs
)
811 def SetText(self
, *_args
, **_kwargs
):
812 val
= apply(eventsc
.wxUpdateUIEvent_SetText
,(self
,) + _args
, _kwargs
)
815 return "<C wxUpdateUIEvent instance at %s>" % (self
.this
,)
816 class wxUpdateUIEvent(wxUpdateUIEventPtr
):
817 def __init__(self
,*_args
,**_kwargs
):
818 self
.this
= apply(eventsc
.new_wxUpdateUIEvent
,_args
,_kwargs
)
824 class wxSysColourChangedEventPtr(wxEventPtr
):
825 def __init__(self
,this
):
829 return "<C wxSysColourChangedEvent instance at %s>" % (self
.this
,)
830 class wxSysColourChangedEvent(wxSysColourChangedEventPtr
):
831 def __init__(self
,*_args
,**_kwargs
):
832 self
.this
= apply(eventsc
.new_wxSysColourChangedEvent
,_args
,_kwargs
)
838 class wxNotifyEventPtr(wxCommandEventPtr
):
839 def __init__(self
,this
):
842 def IsAllowed(self
, *_args
, **_kwargs
):
843 val
= apply(eventsc
.wxNotifyEvent_IsAllowed
,(self
,) + _args
, _kwargs
)
845 def Allow(self
, *_args
, **_kwargs
):
846 val
= apply(eventsc
.wxNotifyEvent_Allow
,(self
,) + _args
, _kwargs
)
848 def Veto(self
, *_args
, **_kwargs
):
849 val
= apply(eventsc
.wxNotifyEvent_Veto
,(self
,) + _args
, _kwargs
)
852 return "<C wxNotifyEvent instance at %s>" % (self
.this
,)
853 class wxNotifyEvent(wxNotifyEventPtr
):
854 def __init__(self
,*_args
,**_kwargs
):
855 self
.this
= apply(eventsc
.new_wxNotifyEvent
,_args
,_kwargs
)
861 class wxPaletteChangedEventPtr(wxEventPtr
):
862 def __init__(self
,this
):
865 def SetChangedWindow(self
, *_args
, **_kwargs
):
866 val
= apply(eventsc
.wxPaletteChangedEvent_SetChangedWindow
,(self
,) + _args
, _kwargs
)
868 def GetChangedWindow(self
, *_args
, **_kwargs
):
869 val
= apply(eventsc
.wxPaletteChangedEvent_GetChangedWindow
,(self
,) + _args
, _kwargs
)
872 return "<C wxPaletteChangedEvent instance at %s>" % (self
.this
,)
873 class wxPaletteChangedEvent(wxPaletteChangedEventPtr
):
874 def __init__(self
,*_args
,**_kwargs
):
875 self
.this
= apply(eventsc
.new_wxPaletteChangedEvent
,_args
,_kwargs
)
881 class wxQueryNewPaletteEventPtr(wxEventPtr
):
882 def __init__(self
,this
):
885 def SetPaletteRealized(self
, *_args
, **_kwargs
):
886 val
= apply(eventsc
.wxQueryNewPaletteEvent_SetPaletteRealized
,(self
,) + _args
, _kwargs
)
888 def GetPaletteRealized(self
, *_args
, **_kwargs
):
889 val
= apply(eventsc
.wxQueryNewPaletteEvent_GetPaletteRealized
,(self
,) + _args
, _kwargs
)
892 return "<C wxQueryNewPaletteEvent instance at %s>" % (self
.this
,)
893 class wxQueryNewPaletteEvent(wxQueryNewPaletteEventPtr
):
894 def __init__(self
,*_args
,**_kwargs
):
895 self
.this
= apply(eventsc
.new_wxQueryNewPaletteEvent
,_args
,_kwargs
)
901 class wxWindowCreateEventPtr(wxCommandEventPtr
):
902 def __init__(self
,this
):
905 def GetWindow(self
, *_args
, **_kwargs
):
906 val
= apply(eventsc
.wxWindowCreateEvent_GetWindow
,(self
,) + _args
, _kwargs
)
909 return "<C wxWindowCreateEvent instance at %s>" % (self
.this
,)
910 class wxWindowCreateEvent(wxWindowCreateEventPtr
):
911 def __init__(self
,*_args
,**_kwargs
):
912 self
.this
= apply(eventsc
.new_wxWindowCreateEvent
,_args
,_kwargs
)
918 class wxWindowDestroyEventPtr(wxCommandEventPtr
):
919 def __init__(self
,this
):
922 def GetWindow(self
, *_args
, **_kwargs
):
923 val
= apply(eventsc
.wxWindowDestroyEvent_GetWindow
,(self
,) + _args
, _kwargs
)
926 return "<C wxWindowDestroyEvent instance at %s>" % (self
.this
,)
927 class wxWindowDestroyEvent(wxWindowDestroyEventPtr
):
928 def __init__(self
,*_args
,**_kwargs
):
929 self
.this
= apply(eventsc
.new_wxWindowDestroyEvent
,_args
,_kwargs
)
935 class wxTimerEventPtr(wxEventPtr
):
936 def __init__(self
,this
):
939 def GetInterval(self
, *_args
, **_kwargs
):
940 val
= apply(eventsc
.wxTimerEvent_GetInterval
,(self
,) + _args
, _kwargs
)
943 return "<C wxTimerEvent instance at %s>" % (self
.this
,)
944 class wxTimerEvent(wxTimerEventPtr
):
945 def __init__(self
,*_args
,**_kwargs
):
946 self
.this
= apply(eventsc
.new_wxTimerEvent
,_args
,_kwargs
)
952 class wxTextUrlEventPtr(wxCommandEventPtr
):
953 def __init__(self
,this
):
956 def GetMouseEvent(self
, *_args
, **_kwargs
):
957 val
= apply(eventsc
.wxTextUrlEvent_GetMouseEvent
,(self
,) + _args
, _kwargs
)
959 def GetURLStart(self
, *_args
, **_kwargs
):
960 val
= apply(eventsc
.wxTextUrlEvent_GetURLStart
,(self
,) + _args
, _kwargs
)
962 def GetURLEnd(self
, *_args
, **_kwargs
):
963 val
= apply(eventsc
.wxTextUrlEvent_GetURLEnd
,(self
,) + _args
, _kwargs
)
966 return "<C wxTextUrlEvent instance at %s>" % (self
.this
,)
967 class wxTextUrlEvent(wxTextUrlEventPtr
):
968 def __init__(self
,*_args
,**_kwargs
):
969 self
.this
= apply(eventsc
.new_wxTextUrlEvent
,_args
,_kwargs
)
975 class wxPyEventPtr(wxEventPtr
):
976 def __init__(self
,this
):
979 def __del__(self
,eventsc
=eventsc
):
980 if self
.thisown
== 1 :
981 eventsc
.delete_wxPyEvent(self
)
982 def SetSelf(self
, *_args
, **_kwargs
):
983 val
= apply(eventsc
.wxPyEvent_SetSelf
,(self
,) + _args
, _kwargs
)
985 def GetSelf(self
, *_args
, **_kwargs
):
986 val
= apply(eventsc
.wxPyEvent_GetSelf
,(self
,) + _args
, _kwargs
)
989 return "<C wxPyEvent instance at %s>" % (self
.this
,)
990 class wxPyEvent(wxPyEventPtr
):
991 def __init__(self
,*_args
,**_kwargs
):
992 self
.this
= apply(eventsc
.new_wxPyEvent
,_args
,_kwargs
)
999 class wxPyCommandEventPtr(wxCommandEventPtr
):
1000 def __init__(self
,this
):
1003 def __del__(self
,eventsc
=eventsc
):
1004 if self
.thisown
== 1 :
1005 eventsc
.delete_wxPyCommandEvent(self
)
1006 def SetSelf(self
, *_args
, **_kwargs
):
1007 val
= apply(eventsc
.wxPyCommandEvent_SetSelf
,(self
,) + _args
, _kwargs
)
1009 def GetSelf(self
, *_args
, **_kwargs
):
1010 val
= apply(eventsc
.wxPyCommandEvent_GetSelf
,(self
,) + _args
, _kwargs
)
1013 return "<C wxPyCommandEvent instance at %s>" % (self
.this
,)
1014 class wxPyCommandEvent(wxPyCommandEventPtr
):
1015 def __init__(self
,*_args
,**_kwargs
):
1016 self
.this
= apply(eventsc
.new_wxPyCommandEvent
,_args
,_kwargs
)
1025 #-------------- FUNCTION WRAPPERS ------------------
1027 wxNewEventType
= eventsc
.wxNewEventType
1031 #-------------- VARIABLE WRAPPERS ------------------