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