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