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