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
,this
):
57 class wxSizeEventPtr(wxEventPtr
):
58 def __init__(self
,this
):
61 def GetSize(self
, *_args
, **_kwargs
):
62 val
= apply(eventsc
.wxSizeEvent_GetSize
,(self
,) + _args
, _kwargs
)
63 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
66 return "<C wxSizeEvent instance at %s>" % (self
.this
,)
67 class wxSizeEvent(wxSizeEventPtr
):
68 def __init__(self
,*_args
,**_kwargs
):
69 self
.this
= apply(eventsc
.new_wxSizeEvent
,_args
,_kwargs
)
75 class wxCloseEventPtr(wxEventPtr
):
76 def __init__(self
,this
):
79 def SetLoggingOff(self
, *_args
, **_kwargs
):
80 val
= apply(eventsc
.wxCloseEvent_SetLoggingOff
,(self
,) + _args
, _kwargs
)
82 def GetLoggingOff(self
, *_args
, **_kwargs
):
83 val
= apply(eventsc
.wxCloseEvent_GetLoggingOff
,(self
,) + _args
, _kwargs
)
85 def Veto(self
, *_args
, **_kwargs
):
86 val
= apply(eventsc
.wxCloseEvent_Veto
,(self
,) + _args
, _kwargs
)
88 def CanVeto(self
, *_args
, **_kwargs
):
89 val
= apply(eventsc
.wxCloseEvent_CanVeto
,(self
,) + _args
, _kwargs
)
91 def GetVeto(self
, *_args
, **_kwargs
):
92 val
= apply(eventsc
.wxCloseEvent_GetVeto
,(self
,) + _args
, _kwargs
)
94 def SetCanVeto(self
, *_args
, **_kwargs
):
95 val
= apply(eventsc
.wxCloseEvent_SetCanVeto
,(self
,) + _args
, _kwargs
)
98 return "<C wxCloseEvent instance at %s>" % (self
.this
,)
99 class wxCloseEvent(wxCloseEventPtr
):
100 def __init__(self
,*_args
,**_kwargs
):
101 self
.this
= apply(eventsc
.new_wxCloseEvent
,_args
,_kwargs
)
107 class wxCommandEventPtr(wxEventPtr
):
108 def __init__(self
,this
):
111 def IsChecked(self
, *_args
, **_kwargs
):
112 val
= apply(eventsc
.wxCommandEvent_IsChecked
,(self
,) + _args
, _kwargs
)
114 def Checked(self
, *_args
, **_kwargs
):
115 val
= apply(eventsc
.wxCommandEvent_Checked
,(self
,) + _args
, _kwargs
)
117 def GetExtraLong(self
, *_args
, **_kwargs
):
118 val
= apply(eventsc
.wxCommandEvent_GetExtraLong
,(self
,) + _args
, _kwargs
)
120 def GetInt(self
, *_args
, **_kwargs
):
121 val
= apply(eventsc
.wxCommandEvent_GetInt
,(self
,) + _args
, _kwargs
)
123 def GetSelection(self
, *_args
, **_kwargs
):
124 val
= apply(eventsc
.wxCommandEvent_GetSelection
,(self
,) + _args
, _kwargs
)
126 def GetString(self
, *_args
, **_kwargs
):
127 val
= apply(eventsc
.wxCommandEvent_GetString
,(self
,) + _args
, _kwargs
)
129 def IsSelection(self
, *_args
, **_kwargs
):
130 val
= apply(eventsc
.wxCommandEvent_IsSelection
,(self
,) + _args
, _kwargs
)
132 def SetString(self
, *_args
, **_kwargs
):
133 val
= apply(eventsc
.wxCommandEvent_SetString
,(self
,) + _args
, _kwargs
)
135 def SetExtraLong(self
, *_args
, **_kwargs
):
136 val
= apply(eventsc
.wxCommandEvent_SetExtraLong
,(self
,) + _args
, _kwargs
)
138 def SetInt(self
, *_args
, **_kwargs
):
139 val
= apply(eventsc
.wxCommandEvent_SetInt
,(self
,) + _args
, _kwargs
)
141 def GetClientData(self
, *_args
, **_kwargs
):
142 val
= apply(eventsc
.wxCommandEvent_GetClientData
,(self
,) + _args
, _kwargs
)
145 return "<C wxCommandEvent instance at %s>" % (self
.this
,)
146 class wxCommandEvent(wxCommandEventPtr
):
147 def __init__(self
,*_args
,**_kwargs
):
148 self
.this
= apply(eventsc
.new_wxCommandEvent
,_args
,_kwargs
)
154 class wxScrollEventPtr(wxCommandEventPtr
):
155 def __init__(self
,this
):
158 def GetOrientation(self
, *_args
, **_kwargs
):
159 val
= apply(eventsc
.wxScrollEvent_GetOrientation
,(self
,) + _args
, _kwargs
)
161 def GetPosition(self
, *_args
, **_kwargs
):
162 val
= apply(eventsc
.wxScrollEvent_GetPosition
,(self
,) + _args
, _kwargs
)
165 return "<C wxScrollEvent instance at %s>" % (self
.this
,)
166 class wxScrollEvent(wxScrollEventPtr
):
167 def __init__(self
,*_args
,**_kwargs
):
168 self
.this
= apply(eventsc
.new_wxScrollEvent
,_args
,_kwargs
)
174 class wxScrollWinEventPtr(wxEventPtr
):
175 def __init__(self
,this
):
178 def GetOrientation(self
, *_args
, **_kwargs
):
179 val
= apply(eventsc
.wxScrollWinEvent_GetOrientation
,(self
,) + _args
, _kwargs
)
181 def GetPosition(self
, *_args
, **_kwargs
):
182 val
= apply(eventsc
.wxScrollWinEvent_GetPosition
,(self
,) + _args
, _kwargs
)
185 return "<C wxScrollWinEvent instance at %s>" % (self
.this
,)
186 class wxScrollWinEvent(wxScrollWinEventPtr
):
187 def __init__(self
,*_args
,**_kwargs
):
188 self
.this
= apply(eventsc
.new_wxScrollWinEvent
,_args
,_kwargs
)
194 class wxSpinEventPtr(wxScrollEventPtr
):
195 def __init__(self
,this
):
199 return "<C wxSpinEvent instance at %s>" % (self
.this
,)
200 class wxSpinEvent(wxSpinEventPtr
):
201 def __init__(self
,*_args
,**_kwargs
):
202 self
.this
= apply(eventsc
.new_wxSpinEvent
,_args
,_kwargs
)
208 class wxMouseEventPtr(wxEventPtr
):
209 def __init__(self
,this
):
212 def IsButton(self
, *_args
, **_kwargs
):
213 val
= apply(eventsc
.wxMouseEvent_IsButton
,(self
,) + _args
, _kwargs
)
215 def ButtonDown(self
, *_args
, **_kwargs
):
216 val
= apply(eventsc
.wxMouseEvent_ButtonDown
,(self
,) + _args
, _kwargs
)
218 def ButtonDClick(self
, *_args
, **_kwargs
):
219 val
= apply(eventsc
.wxMouseEvent_ButtonDClick
,(self
,) + _args
, _kwargs
)
221 def ButtonUp(self
, *_args
, **_kwargs
):
222 val
= apply(eventsc
.wxMouseEvent_ButtonUp
,(self
,) + _args
, _kwargs
)
224 def Button(self
, *_args
, **_kwargs
):
225 val
= apply(eventsc
.wxMouseEvent_Button
,(self
,) + _args
, _kwargs
)
227 def ButtonIsDown(self
, *_args
, **_kwargs
):
228 val
= apply(eventsc
.wxMouseEvent_ButtonIsDown
,(self
,) + _args
, _kwargs
)
230 def ControlDown(self
, *_args
, **_kwargs
):
231 val
= apply(eventsc
.wxMouseEvent_ControlDown
,(self
,) + _args
, _kwargs
)
233 def MetaDown(self
, *_args
, **_kwargs
):
234 val
= apply(eventsc
.wxMouseEvent_MetaDown
,(self
,) + _args
, _kwargs
)
236 def AltDown(self
, *_args
, **_kwargs
):
237 val
= apply(eventsc
.wxMouseEvent_AltDown
,(self
,) + _args
, _kwargs
)
239 def ShiftDown(self
, *_args
, **_kwargs
):
240 val
= apply(eventsc
.wxMouseEvent_ShiftDown
,(self
,) + _args
, _kwargs
)
242 def LeftDown(self
, *_args
, **_kwargs
):
243 val
= apply(eventsc
.wxMouseEvent_LeftDown
,(self
,) + _args
, _kwargs
)
245 def MiddleDown(self
, *_args
, **_kwargs
):
246 val
= apply(eventsc
.wxMouseEvent_MiddleDown
,(self
,) + _args
, _kwargs
)
248 def RightDown(self
, *_args
, **_kwargs
):
249 val
= apply(eventsc
.wxMouseEvent_RightDown
,(self
,) + _args
, _kwargs
)
251 def LeftUp(self
, *_args
, **_kwargs
):
252 val
= apply(eventsc
.wxMouseEvent_LeftUp
,(self
,) + _args
, _kwargs
)
254 def MiddleUp(self
, *_args
, **_kwargs
):
255 val
= apply(eventsc
.wxMouseEvent_MiddleUp
,(self
,) + _args
, _kwargs
)
257 def RightUp(self
, *_args
, **_kwargs
):
258 val
= apply(eventsc
.wxMouseEvent_RightUp
,(self
,) + _args
, _kwargs
)
260 def LeftDClick(self
, *_args
, **_kwargs
):
261 val
= apply(eventsc
.wxMouseEvent_LeftDClick
,(self
,) + _args
, _kwargs
)
263 def MiddleDClick(self
, *_args
, **_kwargs
):
264 val
= apply(eventsc
.wxMouseEvent_MiddleDClick
,(self
,) + _args
, _kwargs
)
266 def RightDClick(self
, *_args
, **_kwargs
):
267 val
= apply(eventsc
.wxMouseEvent_RightDClick
,(self
,) + _args
, _kwargs
)
269 def LeftIsDown(self
, *_args
, **_kwargs
):
270 val
= apply(eventsc
.wxMouseEvent_LeftIsDown
,(self
,) + _args
, _kwargs
)
272 def MiddleIsDown(self
, *_args
, **_kwargs
):
273 val
= apply(eventsc
.wxMouseEvent_MiddleIsDown
,(self
,) + _args
, _kwargs
)
275 def RightIsDown(self
, *_args
, **_kwargs
):
276 val
= apply(eventsc
.wxMouseEvent_RightIsDown
,(self
,) + _args
, _kwargs
)
278 def Dragging(self
, *_args
, **_kwargs
):
279 val
= apply(eventsc
.wxMouseEvent_Dragging
,(self
,) + _args
, _kwargs
)
281 def Moving(self
, *_args
, **_kwargs
):
282 val
= apply(eventsc
.wxMouseEvent_Moving
,(self
,) + _args
, _kwargs
)
284 def Entering(self
, *_args
, **_kwargs
):
285 val
= apply(eventsc
.wxMouseEvent_Entering
,(self
,) + _args
, _kwargs
)
287 def Leaving(self
, *_args
, **_kwargs
):
288 val
= apply(eventsc
.wxMouseEvent_Leaving
,(self
,) + _args
, _kwargs
)
290 def GetPosition(self
, *_args
, **_kwargs
):
291 val
= apply(eventsc
.wxMouseEvent_GetPosition
,(self
,) + _args
, _kwargs
)
292 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
294 def GetPositionTuple(self
, *_args
, **_kwargs
):
295 val
= apply(eventsc
.wxMouseEvent_GetPositionTuple
,(self
,) + _args
, _kwargs
)
297 def GetLogicalPosition(self
, *_args
, **_kwargs
):
298 val
= apply(eventsc
.wxMouseEvent_GetLogicalPosition
,(self
,) + _args
, _kwargs
)
299 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
301 def GetX(self
, *_args
, **_kwargs
):
302 val
= apply(eventsc
.wxMouseEvent_GetX
,(self
,) + _args
, _kwargs
)
304 def GetY(self
, *_args
, **_kwargs
):
305 val
= apply(eventsc
.wxMouseEvent_GetY
,(self
,) + _args
, _kwargs
)
307 def GetWheelRotation(self
, *_args
, **_kwargs
):
308 val
= apply(eventsc
.wxMouseEvent_GetWheelRotation
,(self
,) + _args
, _kwargs
)
310 def GetWheelDelta(self
, *_args
, **_kwargs
):
311 val
= apply(eventsc
.wxMouseEvent_GetWheelDelta
,(self
,) + _args
, _kwargs
)
313 def GetLinesPerAction(self
, *_args
, **_kwargs
):
314 val
= apply(eventsc
.wxMouseEvent_GetLinesPerAction
,(self
,) + _args
, _kwargs
)
316 def __setattr__(self
,name
,value
):
318 eventsc
.wxMouseEvent_m_x_set(self
,value
)
321 eventsc
.wxMouseEvent_m_y_set(self
,value
)
323 if name
== "m_leftDown" :
324 eventsc
.wxMouseEvent_m_leftDown_set(self
,value
)
326 if name
== "m_middleDown" :
327 eventsc
.wxMouseEvent_m_middleDown_set(self
,value
)
329 if name
== "m_rightDown" :
330 eventsc
.wxMouseEvent_m_rightDown_set(self
,value
)
332 if name
== "m_controlDown" :
333 eventsc
.wxMouseEvent_m_controlDown_set(self
,value
)
335 if name
== "m_shiftDown" :
336 eventsc
.wxMouseEvent_m_shiftDown_set(self
,value
)
338 if name
== "m_altDown" :
339 eventsc
.wxMouseEvent_m_altDown_set(self
,value
)
341 if name
== "m_metaDown" :
342 eventsc
.wxMouseEvent_m_metaDown_set(self
,value
)
344 if name
== "m_wheelRotation" :
345 eventsc
.wxMouseEvent_m_wheelRotation_set(self
,value
)
347 if name
== "m_wheelDelta" :
348 eventsc
.wxMouseEvent_m_wheelDelta_set(self
,value
)
350 if name
== "m_linesPerAction" :
351 eventsc
.wxMouseEvent_m_linesPerAction_set(self
,value
)
353 self
.__dict
__[name
] = value
354 def __getattr__(self
,name
):
356 return eventsc
.wxMouseEvent_m_x_get(self
)
358 return eventsc
.wxMouseEvent_m_y_get(self
)
359 if name
== "m_leftDown" :
360 return eventsc
.wxMouseEvent_m_leftDown_get(self
)
361 if name
== "m_middleDown" :
362 return eventsc
.wxMouseEvent_m_middleDown_get(self
)
363 if name
== "m_rightDown" :
364 return eventsc
.wxMouseEvent_m_rightDown_get(self
)
365 if name
== "m_controlDown" :
366 return eventsc
.wxMouseEvent_m_controlDown_get(self
)
367 if name
== "m_shiftDown" :
368 return eventsc
.wxMouseEvent_m_shiftDown_get(self
)
369 if name
== "m_altDown" :
370 return eventsc
.wxMouseEvent_m_altDown_get(self
)
371 if name
== "m_metaDown" :
372 return eventsc
.wxMouseEvent_m_metaDown_get(self
)
373 if name
== "m_wheelRotation" :
374 return eventsc
.wxMouseEvent_m_wheelRotation_get(self
)
375 if name
== "m_wheelDelta" :
376 return eventsc
.wxMouseEvent_m_wheelDelta_get(self
)
377 if name
== "m_linesPerAction" :
378 return eventsc
.wxMouseEvent_m_linesPerAction_get(self
)
379 raise AttributeError,name
381 return "<C wxMouseEvent instance at %s>" % (self
.this
,)
382 class wxMouseEvent(wxMouseEventPtr
):
383 def __init__(self
,*_args
,**_kwargs
):
384 self
.this
= apply(eventsc
.new_wxMouseEvent
,_args
,_kwargs
)
390 class wxKeyEventPtr(wxEventPtr
):
391 def __init__(self
,this
):
394 def ControlDown(self
, *_args
, **_kwargs
):
395 val
= apply(eventsc
.wxKeyEvent_ControlDown
,(self
,) + _args
, _kwargs
)
397 def MetaDown(self
, *_args
, **_kwargs
):
398 val
= apply(eventsc
.wxKeyEvent_MetaDown
,(self
,) + _args
, _kwargs
)
400 def AltDown(self
, *_args
, **_kwargs
):
401 val
= apply(eventsc
.wxKeyEvent_AltDown
,(self
,) + _args
, _kwargs
)
403 def ShiftDown(self
, *_args
, **_kwargs
):
404 val
= apply(eventsc
.wxKeyEvent_ShiftDown
,(self
,) + _args
, _kwargs
)
406 def KeyCode(self
, *_args
, **_kwargs
):
407 val
= apply(eventsc
.wxKeyEvent_KeyCode
,(self
,) + _args
, _kwargs
)
409 def GetKeyCode(self
, *_args
, **_kwargs
):
410 val
= apply(eventsc
.wxKeyEvent_GetKeyCode
,(self
,) + _args
, _kwargs
)
412 def HasModifiers(self
, *_args
, **_kwargs
):
413 val
= apply(eventsc
.wxKeyEvent_HasModifiers
,(self
,) + _args
, _kwargs
)
415 def GetX(self
, *_args
, **_kwargs
):
416 val
= apply(eventsc
.wxKeyEvent_GetX
,(self
,) + _args
, _kwargs
)
418 def GetY(self
, *_args
, **_kwargs
):
419 val
= apply(eventsc
.wxKeyEvent_GetY
,(self
,) + _args
, _kwargs
)
421 def GetPosition(self
, *_args
, **_kwargs
):
422 val
= apply(eventsc
.wxKeyEvent_GetPosition
,(self
,) + _args
, _kwargs
)
423 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
425 def GetPositionTuple(self
, *_args
, **_kwargs
):
426 val
= apply(eventsc
.wxKeyEvent_GetPositionTuple
,(self
,) + _args
, _kwargs
)
428 def __setattr__(self
,name
,value
):
430 eventsc
.wxKeyEvent_m_x_set(self
,value
)
433 eventsc
.wxKeyEvent_m_y_set(self
,value
)
435 if name
== "m_keyCode" :
436 eventsc
.wxKeyEvent_m_keyCode_set(self
,value
)
438 if name
== "m_controlDown" :
439 eventsc
.wxKeyEvent_m_controlDown_set(self
,value
)
441 if name
== "m_shiftDown" :
442 eventsc
.wxKeyEvent_m_shiftDown_set(self
,value
)
444 if name
== "m_altDown" :
445 eventsc
.wxKeyEvent_m_altDown_set(self
,value
)
447 if name
== "m_metaDown" :
448 eventsc
.wxKeyEvent_m_metaDown_set(self
,value
)
450 if name
== "m_scanCode" :
451 eventsc
.wxKeyEvent_m_scanCode_set(self
,value
)
453 self
.__dict
__[name
] = value
454 def __getattr__(self
,name
):
456 return eventsc
.wxKeyEvent_m_x_get(self
)
458 return eventsc
.wxKeyEvent_m_y_get(self
)
459 if name
== "m_keyCode" :
460 return eventsc
.wxKeyEvent_m_keyCode_get(self
)
461 if name
== "m_controlDown" :
462 return eventsc
.wxKeyEvent_m_controlDown_get(self
)
463 if name
== "m_shiftDown" :
464 return eventsc
.wxKeyEvent_m_shiftDown_get(self
)
465 if name
== "m_altDown" :
466 return eventsc
.wxKeyEvent_m_altDown_get(self
)
467 if name
== "m_metaDown" :
468 return eventsc
.wxKeyEvent_m_metaDown_get(self
)
469 if name
== "m_scanCode" :
470 return eventsc
.wxKeyEvent_m_scanCode_get(self
)
471 raise AttributeError,name
473 return "<C wxKeyEvent instance at %s>" % (self
.this
,)
474 class wxKeyEvent(wxKeyEventPtr
):
475 def __init__(self
,*_args
,**_kwargs
):
476 self
.this
= apply(eventsc
.new_wxKeyEvent
,_args
,_kwargs
)
482 class wxNavigationKeyEventPtr(wxEventPtr
):
483 def __init__(self
,this
):
486 def GetDirection(self
, *_args
, **_kwargs
):
487 val
= apply(eventsc
.wxNavigationKeyEvent_GetDirection
,(self
,) + _args
, _kwargs
)
489 def SetDirection(self
, *_args
, **_kwargs
):
490 val
= apply(eventsc
.wxNavigationKeyEvent_SetDirection
,(self
,) + _args
, _kwargs
)
492 def IsWindowChange(self
, *_args
, **_kwargs
):
493 val
= apply(eventsc
.wxNavigationKeyEvent_IsWindowChange
,(self
,) + _args
, _kwargs
)
495 def SetWindowChange(self
, *_args
, **_kwargs
):
496 val
= apply(eventsc
.wxNavigationKeyEvent_SetWindowChange
,(self
,) + _args
, _kwargs
)
498 def GetCurrentFocus(self
, *_args
, **_kwargs
):
499 val
= apply(eventsc
.wxNavigationKeyEvent_GetCurrentFocus
,(self
,) + _args
, _kwargs
)
501 def SetCurrentFocus(self
, *_args
, **_kwargs
):
502 val
= apply(eventsc
.wxNavigationKeyEvent_SetCurrentFocus
,(self
,) + _args
, _kwargs
)
505 return "<C wxNavigationKeyEvent instance at %s>" % (self
.this
,)
506 class wxNavigationKeyEvent(wxNavigationKeyEventPtr
):
507 def __init__(self
,*_args
,**_kwargs
):
508 self
.this
= apply(eventsc
.new_wxNavigationKeyEvent
,_args
,_kwargs
)
514 class wxMoveEventPtr(wxEventPtr
):
515 def __init__(self
,this
):
518 def GetPosition(self
, *_args
, **_kwargs
):
519 val
= apply(eventsc
.wxMoveEvent_GetPosition
,(self
,) + _args
, _kwargs
)
520 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
523 return "<C wxMoveEvent instance at %s>" % (self
.this
,)
524 class wxMoveEvent(wxMoveEventPtr
):
525 def __init__(self
,*_args
,**_kwargs
):
526 self
.this
= apply(eventsc
.new_wxMoveEvent
,_args
,_kwargs
)
532 class wxPaintEventPtr(wxEventPtr
):
533 def __init__(self
,this
):
537 return "<C wxPaintEvent instance at %s>" % (self
.this
,)
538 class wxPaintEvent(wxPaintEventPtr
):
539 def __init__(self
,*_args
,**_kwargs
):
540 self
.this
= apply(eventsc
.new_wxPaintEvent
,_args
,_kwargs
)
546 class wxEraseEventPtr(wxEventPtr
):
547 def __init__(self
,this
):
550 def GetDC(self
, *_args
, **_kwargs
):
551 val
= apply(eventsc
.wxEraseEvent_GetDC
,(self
,) + _args
, _kwargs
)
554 return "<C wxEraseEvent instance at %s>" % (self
.this
,)
555 class wxEraseEvent(wxEraseEventPtr
):
556 def __init__(self
,*_args
,**_kwargs
):
557 self
.this
= apply(eventsc
.new_wxEraseEvent
,_args
,_kwargs
)
563 class wxFocusEventPtr(wxEventPtr
):
564 def __init__(self
,this
):
568 return "<C wxFocusEvent instance at %s>" % (self
.this
,)
569 class wxFocusEvent(wxFocusEventPtr
):
570 def __init__(self
,*_args
,**_kwargs
):
571 self
.this
= apply(eventsc
.new_wxFocusEvent
,_args
,_kwargs
)
577 class wxChildFocusEventPtr(wxCommandEventPtr
):
578 def __init__(self
,this
):
581 def GetWindow(self
, *_args
, **_kwargs
):
582 val
= apply(eventsc
.wxChildFocusEvent_GetWindow
,(self
,) + _args
, _kwargs
)
585 return "<C wxChildFocusEvent instance at %s>" % (self
.this
,)
586 class wxChildFocusEvent(wxChildFocusEventPtr
):
587 def __init__(self
,*_args
,**_kwargs
):
588 self
.this
= apply(eventsc
.new_wxChildFocusEvent
,_args
,_kwargs
)
594 class wxActivateEventPtr(wxEventPtr
):
595 def __init__(self
,this
):
598 def GetActive(self
, *_args
, **_kwargs
):
599 val
= apply(eventsc
.wxActivateEvent_GetActive
,(self
,) + _args
, _kwargs
)
602 return "<C wxActivateEvent instance at %s>" % (self
.this
,)
603 class wxActivateEvent(wxActivateEventPtr
):
604 def __init__(self
,*_args
,**_kwargs
):
605 self
.this
= apply(eventsc
.new_wxActivateEvent
,_args
,_kwargs
)
611 class wxInitDialogEventPtr(wxEventPtr
):
612 def __init__(self
,this
):
616 return "<C wxInitDialogEvent instance at %s>" % (self
.this
,)
617 class wxInitDialogEvent(wxInitDialogEventPtr
):
618 def __init__(self
,*_args
,**_kwargs
):
619 self
.this
= apply(eventsc
.new_wxInitDialogEvent
,_args
,_kwargs
)
625 class wxMenuEventPtr(wxEventPtr
):
626 def __init__(self
,this
):
629 def GetMenuId(self
, *_args
, **_kwargs
):
630 val
= apply(eventsc
.wxMenuEvent_GetMenuId
,(self
,) + _args
, _kwargs
)
633 return "<C wxMenuEvent instance at %s>" % (self
.this
,)
634 class wxMenuEvent(wxMenuEventPtr
):
635 def __init__(self
,*_args
,**_kwargs
):
636 self
.this
= apply(eventsc
.new_wxMenuEvent
,_args
,_kwargs
)
642 class wxShowEventPtr(wxEventPtr
):
643 def __init__(self
,this
):
646 def SetShow(self
, *_args
, **_kwargs
):
647 val
= apply(eventsc
.wxShowEvent_SetShow
,(self
,) + _args
, _kwargs
)
649 def GetShow(self
, *_args
, **_kwargs
):
650 val
= apply(eventsc
.wxShowEvent_GetShow
,(self
,) + _args
, _kwargs
)
653 return "<C wxShowEvent instance at %s>" % (self
.this
,)
654 class wxShowEvent(wxShowEventPtr
):
655 def __init__(self
,*_args
,**_kwargs
):
656 self
.this
= apply(eventsc
.new_wxShowEvent
,_args
,_kwargs
)
662 class wxIconizeEventPtr(wxEventPtr
):
663 def __init__(self
,this
):
666 def Iconized(self
, *_args
, **_kwargs
):
667 val
= apply(eventsc
.wxIconizeEvent_Iconized
,(self
,) + _args
, _kwargs
)
670 return "<C wxIconizeEvent instance at %s>" % (self
.this
,)
671 class wxIconizeEvent(wxIconizeEventPtr
):
672 def __init__(self
,*_args
,**_kwargs
):
673 self
.this
= apply(eventsc
.new_wxIconizeEvent
,_args
,_kwargs
)
679 class wxMaximizeEventPtr(wxEventPtr
):
680 def __init__(self
,this
):
684 return "<C wxMaximizeEvent instance at %s>" % (self
.this
,)
685 class wxMaximizeEvent(wxMaximizeEventPtr
):
686 def __init__(self
,*_args
,**_kwargs
):
687 self
.this
= apply(eventsc
.new_wxMaximizeEvent
,_args
,_kwargs
)
693 class wxJoystickEventPtr(wxEventPtr
):
694 def __init__(self
,this
):
697 def GetPosition(self
, *_args
, **_kwargs
):
698 val
= apply(eventsc
.wxJoystickEvent_GetPosition
,(self
,) + _args
, _kwargs
)
699 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
701 def GetZPosition(self
, *_args
, **_kwargs
):
702 val
= apply(eventsc
.wxJoystickEvent_GetZPosition
,(self
,) + _args
, _kwargs
)
704 def GetButtonState(self
, *_args
, **_kwargs
):
705 val
= apply(eventsc
.wxJoystickEvent_GetButtonState
,(self
,) + _args
, _kwargs
)
707 def GetButtonChange(self
, *_args
, **_kwargs
):
708 val
= apply(eventsc
.wxJoystickEvent_GetButtonChange
,(self
,) + _args
, _kwargs
)
710 def GetJoystick(self
, *_args
, **_kwargs
):
711 val
= apply(eventsc
.wxJoystickEvent_GetJoystick
,(self
,) + _args
, _kwargs
)
713 def SetJoystick(self
, *_args
, **_kwargs
):
714 val
= apply(eventsc
.wxJoystickEvent_SetJoystick
,(self
,) + _args
, _kwargs
)
716 def SetButtonState(self
, *_args
, **_kwargs
):
717 val
= apply(eventsc
.wxJoystickEvent_SetButtonState
,(self
,) + _args
, _kwargs
)
719 def SetButtonChange(self
, *_args
, **_kwargs
):
720 val
= apply(eventsc
.wxJoystickEvent_SetButtonChange
,(self
,) + _args
, _kwargs
)
722 def SetPosition(self
, *_args
, **_kwargs
):
723 val
= apply(eventsc
.wxJoystickEvent_SetPosition
,(self
,) + _args
, _kwargs
)
725 def SetZPosition(self
, *_args
, **_kwargs
):
726 val
= apply(eventsc
.wxJoystickEvent_SetZPosition
,(self
,) + _args
, _kwargs
)
728 def IsButton(self
, *_args
, **_kwargs
):
729 val
= apply(eventsc
.wxJoystickEvent_IsButton
,(self
,) + _args
, _kwargs
)
731 def IsMove(self
, *_args
, **_kwargs
):
732 val
= apply(eventsc
.wxJoystickEvent_IsMove
,(self
,) + _args
, _kwargs
)
734 def IsZMove(self
, *_args
, **_kwargs
):
735 val
= apply(eventsc
.wxJoystickEvent_IsZMove
,(self
,) + _args
, _kwargs
)
737 def ButtonDown(self
, *_args
, **_kwargs
):
738 val
= apply(eventsc
.wxJoystickEvent_ButtonDown
,(self
,) + _args
, _kwargs
)
740 def ButtonUp(self
, *_args
, **_kwargs
):
741 val
= apply(eventsc
.wxJoystickEvent_ButtonUp
,(self
,) + _args
, _kwargs
)
743 def ButtonIsDown(self
, *_args
, **_kwargs
):
744 val
= apply(eventsc
.wxJoystickEvent_ButtonIsDown
,(self
,) + _args
, _kwargs
)
747 return "<C wxJoystickEvent instance at %s>" % (self
.this
,)
748 class wxJoystickEvent(wxJoystickEventPtr
):
749 def __init__(self
,*_args
,**_kwargs
):
750 self
.this
= apply(eventsc
.new_wxJoystickEvent
,_args
,_kwargs
)
756 class wxDropFilesEventPtr(wxEventPtr
):
757 def __init__(self
,this
):
760 def GetPosition(self
, *_args
, **_kwargs
):
761 val
= apply(eventsc
.wxDropFilesEvent_GetPosition
,(self
,) + _args
, _kwargs
)
762 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
764 def GetNumberOfFiles(self
, *_args
, **_kwargs
):
765 val
= apply(eventsc
.wxDropFilesEvent_GetNumberOfFiles
,(self
,) + _args
, _kwargs
)
767 def GetFiles(self
, *_args
, **_kwargs
):
768 val
= apply(eventsc
.wxDropFilesEvent_GetFiles
,(self
,) + _args
, _kwargs
)
771 return "<C wxDropFilesEvent instance at %s>" % (self
.this
,)
772 class wxDropFilesEvent(wxDropFilesEventPtr
):
773 def __init__(self
,this
):
779 class wxIdleEventPtr(wxEventPtr
):
780 def __init__(self
,this
):
783 def RequestMore(self
, *_args
, **_kwargs
):
784 val
= apply(eventsc
.wxIdleEvent_RequestMore
,(self
,) + _args
, _kwargs
)
786 def MoreRequested(self
, *_args
, **_kwargs
):
787 val
= apply(eventsc
.wxIdleEvent_MoreRequested
,(self
,) + _args
, _kwargs
)
790 return "<C wxIdleEvent instance at %s>" % (self
.this
,)
791 class wxIdleEvent(wxIdleEventPtr
):
792 def __init__(self
,*_args
,**_kwargs
):
793 self
.this
= apply(eventsc
.new_wxIdleEvent
,_args
,_kwargs
)
799 class wxUpdateUIEventPtr(wxEventPtr
):
800 def __init__(self
,this
):
803 def GetChecked(self
, *_args
, **_kwargs
):
804 val
= apply(eventsc
.wxUpdateUIEvent_GetChecked
,(self
,) + _args
, _kwargs
)
806 def GetEnabled(self
, *_args
, **_kwargs
):
807 val
= apply(eventsc
.wxUpdateUIEvent_GetEnabled
,(self
,) + _args
, _kwargs
)
809 def GetText(self
, *_args
, **_kwargs
):
810 val
= apply(eventsc
.wxUpdateUIEvent_GetText
,(self
,) + _args
, _kwargs
)
812 def GetSetText(self
, *_args
, **_kwargs
):
813 val
= apply(eventsc
.wxUpdateUIEvent_GetSetText
,(self
,) + _args
, _kwargs
)
815 def GetSetChecked(self
, *_args
, **_kwargs
):
816 val
= apply(eventsc
.wxUpdateUIEvent_GetSetChecked
,(self
,) + _args
, _kwargs
)
818 def GetSetEnabled(self
, *_args
, **_kwargs
):
819 val
= apply(eventsc
.wxUpdateUIEvent_GetSetEnabled
,(self
,) + _args
, _kwargs
)
821 def Check(self
, *_args
, **_kwargs
):
822 val
= apply(eventsc
.wxUpdateUIEvent_Check
,(self
,) + _args
, _kwargs
)
824 def Enable(self
, *_args
, **_kwargs
):
825 val
= apply(eventsc
.wxUpdateUIEvent_Enable
,(self
,) + _args
, _kwargs
)
827 def SetText(self
, *_args
, **_kwargs
):
828 val
= apply(eventsc
.wxUpdateUIEvent_SetText
,(self
,) + _args
, _kwargs
)
831 return "<C wxUpdateUIEvent instance at %s>" % (self
.this
,)
832 class wxUpdateUIEvent(wxUpdateUIEventPtr
):
833 def __init__(self
,*_args
,**_kwargs
):
834 self
.this
= apply(eventsc
.new_wxUpdateUIEvent
,_args
,_kwargs
)
840 class wxSysColourChangedEventPtr(wxEventPtr
):
841 def __init__(self
,this
):
845 return "<C wxSysColourChangedEvent instance at %s>" % (self
.this
,)
846 class wxSysColourChangedEvent(wxSysColourChangedEventPtr
):
847 def __init__(self
,*_args
,**_kwargs
):
848 self
.this
= apply(eventsc
.new_wxSysColourChangedEvent
,_args
,_kwargs
)
854 class wxNotifyEventPtr(wxCommandEventPtr
):
855 def __init__(self
,this
):
858 def IsAllowed(self
, *_args
, **_kwargs
):
859 val
= apply(eventsc
.wxNotifyEvent_IsAllowed
,(self
,) + _args
, _kwargs
)
861 def Allow(self
, *_args
, **_kwargs
):
862 val
= apply(eventsc
.wxNotifyEvent_Allow
,(self
,) + _args
, _kwargs
)
864 def Veto(self
, *_args
, **_kwargs
):
865 val
= apply(eventsc
.wxNotifyEvent_Veto
,(self
,) + _args
, _kwargs
)
868 return "<C wxNotifyEvent instance at %s>" % (self
.this
,)
869 class wxNotifyEvent(wxNotifyEventPtr
):
870 def __init__(self
,*_args
,**_kwargs
):
871 self
.this
= apply(eventsc
.new_wxNotifyEvent
,_args
,_kwargs
)
877 class wxPaletteChangedEventPtr(wxEventPtr
):
878 def __init__(self
,this
):
881 def SetChangedWindow(self
, *_args
, **_kwargs
):
882 val
= apply(eventsc
.wxPaletteChangedEvent_SetChangedWindow
,(self
,) + _args
, _kwargs
)
884 def GetChangedWindow(self
, *_args
, **_kwargs
):
885 val
= apply(eventsc
.wxPaletteChangedEvent_GetChangedWindow
,(self
,) + _args
, _kwargs
)
888 return "<C wxPaletteChangedEvent instance at %s>" % (self
.this
,)
889 class wxPaletteChangedEvent(wxPaletteChangedEventPtr
):
890 def __init__(self
,*_args
,**_kwargs
):
891 self
.this
= apply(eventsc
.new_wxPaletteChangedEvent
,_args
,_kwargs
)
897 class wxQueryNewPaletteEventPtr(wxEventPtr
):
898 def __init__(self
,this
):
901 def SetPaletteRealized(self
, *_args
, **_kwargs
):
902 val
= apply(eventsc
.wxQueryNewPaletteEvent_SetPaletteRealized
,(self
,) + _args
, _kwargs
)
904 def GetPaletteRealized(self
, *_args
, **_kwargs
):
905 val
= apply(eventsc
.wxQueryNewPaletteEvent_GetPaletteRealized
,(self
,) + _args
, _kwargs
)
908 return "<C wxQueryNewPaletteEvent instance at %s>" % (self
.this
,)
909 class wxQueryNewPaletteEvent(wxQueryNewPaletteEventPtr
):
910 def __init__(self
,*_args
,**_kwargs
):
911 self
.this
= apply(eventsc
.new_wxQueryNewPaletteEvent
,_args
,_kwargs
)
917 class wxWindowCreateEventPtr(wxCommandEventPtr
):
918 def __init__(self
,this
):
921 def GetWindow(self
, *_args
, **_kwargs
):
922 val
= apply(eventsc
.wxWindowCreateEvent_GetWindow
,(self
,) + _args
, _kwargs
)
925 return "<C wxWindowCreateEvent instance at %s>" % (self
.this
,)
926 class wxWindowCreateEvent(wxWindowCreateEventPtr
):
927 def __init__(self
,*_args
,**_kwargs
):
928 self
.this
= apply(eventsc
.new_wxWindowCreateEvent
,_args
,_kwargs
)
934 class wxWindowDestroyEventPtr(wxCommandEventPtr
):
935 def __init__(self
,this
):
938 def GetWindow(self
, *_args
, **_kwargs
):
939 val
= apply(eventsc
.wxWindowDestroyEvent_GetWindow
,(self
,) + _args
, _kwargs
)
942 return "<C wxWindowDestroyEvent instance at %s>" % (self
.this
,)
943 class wxWindowDestroyEvent(wxWindowDestroyEventPtr
):
944 def __init__(self
,*_args
,**_kwargs
):
945 self
.this
= apply(eventsc
.new_wxWindowDestroyEvent
,_args
,_kwargs
)
951 class wxTimerEventPtr(wxEventPtr
):
952 def __init__(self
,this
):
955 def GetInterval(self
, *_args
, **_kwargs
):
956 val
= apply(eventsc
.wxTimerEvent_GetInterval
,(self
,) + _args
, _kwargs
)
959 return "<C wxTimerEvent instance at %s>" % (self
.this
,)
960 class wxTimerEvent(wxTimerEventPtr
):
961 def __init__(self
,*_args
,**_kwargs
):
962 self
.this
= apply(eventsc
.new_wxTimerEvent
,_args
,_kwargs
)
968 class wxTextUrlEventPtr(wxCommandEventPtr
):
969 def __init__(self
,this
):
972 def GetMouseEvent(self
, *_args
, **_kwargs
):
973 val
= apply(eventsc
.wxTextUrlEvent_GetMouseEvent
,(self
,) + _args
, _kwargs
)
975 def GetURLStart(self
, *_args
, **_kwargs
):
976 val
= apply(eventsc
.wxTextUrlEvent_GetURLStart
,(self
,) + _args
, _kwargs
)
978 def GetURLEnd(self
, *_args
, **_kwargs
):
979 val
= apply(eventsc
.wxTextUrlEvent_GetURLEnd
,(self
,) + _args
, _kwargs
)
982 return "<C wxTextUrlEvent instance at %s>" % (self
.this
,)
983 class wxTextUrlEvent(wxTextUrlEventPtr
):
984 def __init__(self
,*_args
,**_kwargs
):
985 self
.this
= apply(eventsc
.new_wxTextUrlEvent
,_args
,_kwargs
)
991 class wxPyEventPtr(wxEventPtr
):
992 def __init__(self
,this
):
995 def __del__(self
,eventsc
=eventsc
):
996 if self
.thisown
== 1 :
997 eventsc
.delete_wxPyEvent(self
)
998 def SetSelf(self
, *_args
, **_kwargs
):
999 val
= apply(eventsc
.wxPyEvent_SetSelf
,(self
,) + _args
, _kwargs
)
1001 def GetSelf(self
, *_args
, **_kwargs
):
1002 val
= apply(eventsc
.wxPyEvent_GetSelf
,(self
,) + _args
, _kwargs
)
1005 return "<C wxPyEvent instance at %s>" % (self
.this
,)
1006 class wxPyEvent(wxPyEventPtr
):
1007 def __init__(self
,*_args
,**_kwargs
):
1008 self
.this
= apply(eventsc
.new_wxPyEvent
,_args
,_kwargs
)
1015 class wxPyCommandEventPtr(wxCommandEventPtr
):
1016 def __init__(self
,this
):
1019 def __del__(self
,eventsc
=eventsc
):
1020 if self
.thisown
== 1 :
1021 eventsc
.delete_wxPyCommandEvent(self
)
1022 def SetSelf(self
, *_args
, **_kwargs
):
1023 val
= apply(eventsc
.wxPyCommandEvent_SetSelf
,(self
,) + _args
, _kwargs
)
1025 def GetSelf(self
, *_args
, **_kwargs
):
1026 val
= apply(eventsc
.wxPyCommandEvent_GetSelf
,(self
,) + _args
, _kwargs
)
1029 return "<C wxPyCommandEvent instance at %s>" % (self
.this
,)
1030 class wxPyCommandEvent(wxPyCommandEventPtr
):
1031 def __init__(self
,*_args
,**_kwargs
):
1032 self
.this
= apply(eventsc
.new_wxPyCommandEvent
,_args
,_kwargs
)
1041 #-------------- FUNCTION WRAPPERS ------------------
1043 wxNewEventType
= eventsc
.wxNewEventType
1047 #-------------- VARIABLE WRAPPERS ------------------