]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/events.py
applied patch to uncover cells next to 0 automatically
[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 class wxEventPtr :
8 def __init__(self,this):
9 self.this = this
10 self.thisown = 0
11 def __del__(self,eventsc=eventsc):
12 if self.thisown == 1 :
13 eventsc.delete_wxEvent(self)
14 def GetEventObject(self, *_args, **_kwargs):
15 val = apply(eventsc.wxEvent_GetEventObject,(self,) + _args, _kwargs)
16 return val
17 def GetEventType(self, *_args, **_kwargs):
18 val = apply(eventsc.wxEvent_GetEventType,(self,) + _args, _kwargs)
19 return val
20 def GetId(self, *_args, **_kwargs):
21 val = apply(eventsc.wxEvent_GetId,(self,) + _args, _kwargs)
22 return val
23 def GetSkipped(self, *_args, **_kwargs):
24 val = apply(eventsc.wxEvent_GetSkipped,(self,) + _args, _kwargs)
25 return val
26 def GetTimestamp(self, *_args, **_kwargs):
27 val = apply(eventsc.wxEvent_GetTimestamp,(self,) + _args, _kwargs)
28 return val
29 def SetEventObject(self, *_args, **_kwargs):
30 val = apply(eventsc.wxEvent_SetEventObject,(self,) + _args, _kwargs)
31 return val
32 def SetEventType(self, *_args, **_kwargs):
33 val = apply(eventsc.wxEvent_SetEventType,(self,) + _args, _kwargs)
34 return val
35 def SetId(self, *_args, **_kwargs):
36 val = apply(eventsc.wxEvent_SetId,(self,) + _args, _kwargs)
37 return val
38 def SetTimestamp(self, *_args, **_kwargs):
39 val = apply(eventsc.wxEvent_SetTimestamp,(self,) + _args, _kwargs)
40 return val
41 def Skip(self, *_args, **_kwargs):
42 val = apply(eventsc.wxEvent_Skip,(self,) + _args, _kwargs)
43 return val
44 def __repr__(self):
45 return "<C wxEvent instance at %s>" % (self.this,)
46 class wxEvent(wxEventPtr):
47 def __init__(self,*_args,**_kwargs):
48 self.this = apply(eventsc.new_wxEvent,_args,_kwargs)
49 self.thisown = 1
50
51
52
53
54 class wxSizeEventPtr(wxEventPtr):
55 def __init__(self,this):
56 self.this = this
57 self.thisown = 0
58 def GetSize(self, *_args, **_kwargs):
59 val = apply(eventsc.wxSizeEvent_GetSize,(self,) + _args, _kwargs)
60 if val: val = wxSizePtr(val) ; val.thisown = 1
61 return val
62 def __repr__(self):
63 return "<C wxSizeEvent instance at %s>" % (self.this,)
64 class wxSizeEvent(wxSizeEventPtr):
65 def __init__(self,*_args,**_kwargs):
66 self.this = apply(eventsc.new_wxSizeEvent,_args,_kwargs)
67 self.thisown = 1
68
69
70
71
72 class wxCloseEventPtr(wxEventPtr):
73 def __init__(self,this):
74 self.this = this
75 self.thisown = 0
76 def SetLoggingOff(self, *_args, **_kwargs):
77 val = apply(eventsc.wxCloseEvent_SetLoggingOff,(self,) + _args, _kwargs)
78 return val
79 def GetLoggingOff(self, *_args, **_kwargs):
80 val = apply(eventsc.wxCloseEvent_GetLoggingOff,(self,) + _args, _kwargs)
81 return val
82 def Veto(self, *_args, **_kwargs):
83 val = apply(eventsc.wxCloseEvent_Veto,(self,) + _args, _kwargs)
84 return val
85 def CanVeto(self, *_args, **_kwargs):
86 val = apply(eventsc.wxCloseEvent_CanVeto,(self,) + _args, _kwargs)
87 return val
88 def GetVeto(self, *_args, **_kwargs):
89 val = apply(eventsc.wxCloseEvent_GetVeto,(self,) + _args, _kwargs)
90 return val
91 def SetCanVeto(self, *_args, **_kwargs):
92 val = apply(eventsc.wxCloseEvent_SetCanVeto,(self,) + _args, _kwargs)
93 return val
94 def __repr__(self):
95 return "<C wxCloseEvent instance at %s>" % (self.this,)
96 class wxCloseEvent(wxCloseEventPtr):
97 def __init__(self,*_args,**_kwargs):
98 self.this = apply(eventsc.new_wxCloseEvent,_args,_kwargs)
99 self.thisown = 1
100
101
102
103
104 class wxCommandEventPtr(wxEventPtr):
105 def __init__(self,this):
106 self.this = this
107 self.thisown = 0
108 def IsChecked(self, *_args, **_kwargs):
109 val = apply(eventsc.wxCommandEvent_IsChecked,(self,) + _args, _kwargs)
110 return val
111 def Checked(self, *_args, **_kwargs):
112 val = apply(eventsc.wxCommandEvent_Checked,(self,) + _args, _kwargs)
113 return val
114 def GetExtraLong(self, *_args, **_kwargs):
115 val = apply(eventsc.wxCommandEvent_GetExtraLong,(self,) + _args, _kwargs)
116 return val
117 def GetInt(self, *_args, **_kwargs):
118 val = apply(eventsc.wxCommandEvent_GetInt,(self,) + _args, _kwargs)
119 return val
120 def GetSelection(self, *_args, **_kwargs):
121 val = apply(eventsc.wxCommandEvent_GetSelection,(self,) + _args, _kwargs)
122 return val
123 def GetString(self, *_args, **_kwargs):
124 val = apply(eventsc.wxCommandEvent_GetString,(self,) + _args, _kwargs)
125 return val
126 def IsSelection(self, *_args, **_kwargs):
127 val = apply(eventsc.wxCommandEvent_IsSelection,(self,) + _args, _kwargs)
128 return val
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
138 def __repr__(self):
139 return "<C wxCommandEvent instance at %s>" % (self.this,)
140 class wxCommandEvent(wxCommandEventPtr):
141 def __init__(self,*_args,**_kwargs):
142 self.this = apply(eventsc.new_wxCommandEvent,_args,_kwargs)
143 self.thisown = 1
144
145
146
147
148 class wxScrollEventPtr(wxCommandEventPtr):
149 def __init__(self,this):
150 self.this = this
151 self.thisown = 0
152 def GetOrientation(self, *_args, **_kwargs):
153 val = apply(eventsc.wxScrollEvent_GetOrientation,(self,) + _args, _kwargs)
154 return val
155 def GetPosition(self, *_args, **_kwargs):
156 val = apply(eventsc.wxScrollEvent_GetPosition,(self,) + _args, _kwargs)
157 return val
158 def __repr__(self):
159 return "<C wxScrollEvent instance at %s>" % (self.this,)
160 class wxScrollEvent(wxScrollEventPtr):
161 def __init__(self,*_args,**_kwargs):
162 self.this = apply(eventsc.new_wxScrollEvent,_args,_kwargs)
163 self.thisown = 1
164
165
166
167
168 class wxScrollWinEventPtr(wxEventPtr):
169 def __init__(self,this):
170 self.this = this
171 self.thisown = 0
172 def GetOrientation(self, *_args, **_kwargs):
173 val = apply(eventsc.wxScrollWinEvent_GetOrientation,(self,) + _args, _kwargs)
174 return val
175 def GetPosition(self, *_args, **_kwargs):
176 val = apply(eventsc.wxScrollWinEvent_GetPosition,(self,) + _args, _kwargs)
177 return val
178 def __repr__(self):
179 return "<C wxScrollWinEvent instance at %s>" % (self.this,)
180 class wxScrollWinEvent(wxScrollWinEventPtr):
181 def __init__(self,*_args,**_kwargs):
182 self.this = apply(eventsc.new_wxScrollWinEvent,_args,_kwargs)
183 self.thisown = 1
184
185
186
187
188 class wxSpinEventPtr(wxScrollEventPtr):
189 def __init__(self,this):
190 self.this = this
191 self.thisown = 0
192 def __repr__(self):
193 return "<C wxSpinEvent instance at %s>" % (self.this,)
194 class wxSpinEvent(wxSpinEventPtr):
195 def __init__(self,*_args,**_kwargs):
196 self.this = apply(eventsc.new_wxSpinEvent,_args,_kwargs)
197 self.thisown = 1
198
199
200
201
202 class wxMouseEventPtr(wxEventPtr):
203 def __init__(self,this):
204 self.this = this
205 self.thisown = 0
206 def IsButton(self, *_args, **_kwargs):
207 val = apply(eventsc.wxMouseEvent_IsButton,(self,) + _args, _kwargs)
208 return val
209 def ButtonDown(self, *_args, **_kwargs):
210 val = apply(eventsc.wxMouseEvent_ButtonDown,(self,) + _args, _kwargs)
211 return val
212 def ButtonDClick(self, *_args, **_kwargs):
213 val = apply(eventsc.wxMouseEvent_ButtonDClick,(self,) + _args, _kwargs)
214 return val
215 def ButtonUp(self, *_args, **_kwargs):
216 val = apply(eventsc.wxMouseEvent_ButtonUp,(self,) + _args, _kwargs)
217 return val
218 def Button(self, *_args, **_kwargs):
219 val = apply(eventsc.wxMouseEvent_Button,(self,) + _args, _kwargs)
220 return val
221 def ButtonIsDown(self, *_args, **_kwargs):
222 val = apply(eventsc.wxMouseEvent_ButtonIsDown,(self,) + _args, _kwargs)
223 return val
224 def ControlDown(self, *_args, **_kwargs):
225 val = apply(eventsc.wxMouseEvent_ControlDown,(self,) + _args, _kwargs)
226 return val
227 def MetaDown(self, *_args, **_kwargs):
228 val = apply(eventsc.wxMouseEvent_MetaDown,(self,) + _args, _kwargs)
229 return val
230 def AltDown(self, *_args, **_kwargs):
231 val = apply(eventsc.wxMouseEvent_AltDown,(self,) + _args, _kwargs)
232 return val
233 def ShiftDown(self, *_args, **_kwargs):
234 val = apply(eventsc.wxMouseEvent_ShiftDown,(self,) + _args, _kwargs)
235 return val
236 def LeftDown(self, *_args, **_kwargs):
237 val = apply(eventsc.wxMouseEvent_LeftDown,(self,) + _args, _kwargs)
238 return val
239 def MiddleDown(self, *_args, **_kwargs):
240 val = apply(eventsc.wxMouseEvent_MiddleDown,(self,) + _args, _kwargs)
241 return val
242 def RightDown(self, *_args, **_kwargs):
243 val = apply(eventsc.wxMouseEvent_RightDown,(self,) + _args, _kwargs)
244 return val
245 def LeftUp(self, *_args, **_kwargs):
246 val = apply(eventsc.wxMouseEvent_LeftUp,(self,) + _args, _kwargs)
247 return val
248 def MiddleUp(self, *_args, **_kwargs):
249 val = apply(eventsc.wxMouseEvent_MiddleUp,(self,) + _args, _kwargs)
250 return val
251 def RightUp(self, *_args, **_kwargs):
252 val = apply(eventsc.wxMouseEvent_RightUp,(self,) + _args, _kwargs)
253 return val
254 def LeftDClick(self, *_args, **_kwargs):
255 val = apply(eventsc.wxMouseEvent_LeftDClick,(self,) + _args, _kwargs)
256 return val
257 def MiddleDClick(self, *_args, **_kwargs):
258 val = apply(eventsc.wxMouseEvent_MiddleDClick,(self,) + _args, _kwargs)
259 return val
260 def RightDClick(self, *_args, **_kwargs):
261 val = apply(eventsc.wxMouseEvent_RightDClick,(self,) + _args, _kwargs)
262 return val
263 def LeftIsDown(self, *_args, **_kwargs):
264 val = apply(eventsc.wxMouseEvent_LeftIsDown,(self,) + _args, _kwargs)
265 return val
266 def MiddleIsDown(self, *_args, **_kwargs):
267 val = apply(eventsc.wxMouseEvent_MiddleIsDown,(self,) + _args, _kwargs)
268 return val
269 def RightIsDown(self, *_args, **_kwargs):
270 val = apply(eventsc.wxMouseEvent_RightIsDown,(self,) + _args, _kwargs)
271 return val
272 def Dragging(self, *_args, **_kwargs):
273 val = apply(eventsc.wxMouseEvent_Dragging,(self,) + _args, _kwargs)
274 return val
275 def Moving(self, *_args, **_kwargs):
276 val = apply(eventsc.wxMouseEvent_Moving,(self,) + _args, _kwargs)
277 return val
278 def Entering(self, *_args, **_kwargs):
279 val = apply(eventsc.wxMouseEvent_Entering,(self,) + _args, _kwargs)
280 return val
281 def Leaving(self, *_args, **_kwargs):
282 val = apply(eventsc.wxMouseEvent_Leaving,(self,) + _args, _kwargs)
283 return val
284 def GetPosition(self, *_args, **_kwargs):
285 val = apply(eventsc.wxMouseEvent_GetPosition,(self,) + _args, _kwargs)
286 if val: val = wxPointPtr(val) ; val.thisown = 1
287 return val
288 def GetPositionTuple(self, *_args, **_kwargs):
289 val = apply(eventsc.wxMouseEvent_GetPositionTuple,(self,) + _args, _kwargs)
290 return val
291 def GetLogicalPosition(self, *_args, **_kwargs):
292 val = apply(eventsc.wxMouseEvent_GetLogicalPosition,(self,) + _args, _kwargs)
293 if val: val = wxPointPtr(val) ; val.thisown = 1
294 return val
295 def GetX(self, *_args, **_kwargs):
296 val = apply(eventsc.wxMouseEvent_GetX,(self,) + _args, _kwargs)
297 return val
298 def GetY(self, *_args, **_kwargs):
299 val = apply(eventsc.wxMouseEvent_GetY,(self,) + _args, _kwargs)
300 return val
301 def __repr__(self):
302 return "<C wxMouseEvent instance at %s>" % (self.this,)
303 class wxMouseEvent(wxMouseEventPtr):
304 def __init__(self,*_args,**_kwargs):
305 self.this = apply(eventsc.new_wxMouseEvent,_args,_kwargs)
306 self.thisown = 1
307
308
309
310
311 class wxKeyEventPtr(wxEventPtr):
312 def __init__(self,this):
313 self.this = this
314 self.thisown = 0
315 def ControlDown(self, *_args, **_kwargs):
316 val = apply(eventsc.wxKeyEvent_ControlDown,(self,) + _args, _kwargs)
317 return val
318 def MetaDown(self, *_args, **_kwargs):
319 val = apply(eventsc.wxKeyEvent_MetaDown,(self,) + _args, _kwargs)
320 return val
321 def AltDown(self, *_args, **_kwargs):
322 val = apply(eventsc.wxKeyEvent_AltDown,(self,) + _args, _kwargs)
323 return val
324 def ShiftDown(self, *_args, **_kwargs):
325 val = apply(eventsc.wxKeyEvent_ShiftDown,(self,) + _args, _kwargs)
326 return val
327 def KeyCode(self, *_args, **_kwargs):
328 val = apply(eventsc.wxKeyEvent_KeyCode,(self,) + _args, _kwargs)
329 return val
330 def GetKeyCode(self, *_args, **_kwargs):
331 val = apply(eventsc.wxKeyEvent_GetKeyCode,(self,) + _args, _kwargs)
332 return val
333 def HasModifiers(self, *_args, **_kwargs):
334 val = apply(eventsc.wxKeyEvent_HasModifiers,(self,) + _args, _kwargs)
335 return val
336 def GetX(self, *_args, **_kwargs):
337 val = apply(eventsc.wxKeyEvent_GetX,(self,) + _args, _kwargs)
338 return val
339 def GetY(self, *_args, **_kwargs):
340 val = apply(eventsc.wxKeyEvent_GetY,(self,) + _args, _kwargs)
341 return val
342 def GetPosition(self, *_args, **_kwargs):
343 val = apply(eventsc.wxKeyEvent_GetPosition,(self,) + _args, _kwargs)
344 if val: val = wxPointPtr(val) ; val.thisown = 1
345 return val
346 def GetPositionTuple(self, *_args, **_kwargs):
347 val = apply(eventsc.wxKeyEvent_GetPositionTuple,(self,) + _args, _kwargs)
348 return val
349 def __repr__(self):
350 return "<C wxKeyEvent instance at %s>" % (self.this,)
351 class wxKeyEvent(wxKeyEventPtr):
352 def __init__(self,*_args,**_kwargs):
353 self.this = apply(eventsc.new_wxKeyEvent,_args,_kwargs)
354 self.thisown = 1
355
356
357
358
359 class wxNavigationKeyEventPtr(wxEventPtr):
360 def __init__(self,this):
361 self.this = this
362 self.thisown = 0
363 def GetDirection(self, *_args, **_kwargs):
364 val = apply(eventsc.wxNavigationKeyEvent_GetDirection,(self,) + _args, _kwargs)
365 return val
366 def SetDirection(self, *_args, **_kwargs):
367 val = apply(eventsc.wxNavigationKeyEvent_SetDirection,(self,) + _args, _kwargs)
368 return val
369 def IsWindowChange(self, *_args, **_kwargs):
370 val = apply(eventsc.wxNavigationKeyEvent_IsWindowChange,(self,) + _args, _kwargs)
371 return val
372 def SetWindowChange(self, *_args, **_kwargs):
373 val = apply(eventsc.wxNavigationKeyEvent_SetWindowChange,(self,) + _args, _kwargs)
374 return val
375 def GetCurrentFocus(self, *_args, **_kwargs):
376 val = apply(eventsc.wxNavigationKeyEvent_GetCurrentFocus,(self,) + _args, _kwargs)
377 if val: val = wxWindowPtr(val)
378 return val
379 def SetCurrentFocus(self, *_args, **_kwargs):
380 val = apply(eventsc.wxNavigationKeyEvent_SetCurrentFocus,(self,) + _args, _kwargs)
381 return val
382 def __repr__(self):
383 return "<C wxNavigationKeyEvent instance at %s>" % (self.this,)
384 class wxNavigationKeyEvent(wxNavigationKeyEventPtr):
385 def __init__(self,*_args,**_kwargs):
386 self.this = apply(eventsc.new_wxNavigationKeyEvent,_args,_kwargs)
387 self.thisown = 1
388
389
390
391
392 class wxMoveEventPtr(wxEventPtr):
393 def __init__(self,this):
394 self.this = this
395 self.thisown = 0
396 def GetPosition(self, *_args, **_kwargs):
397 val = apply(eventsc.wxMoveEvent_GetPosition,(self,) + _args, _kwargs)
398 if val: val = wxPointPtr(val) ; val.thisown = 1
399 return val
400 def __repr__(self):
401 return "<C wxMoveEvent instance at %s>" % (self.this,)
402 class wxMoveEvent(wxMoveEventPtr):
403 def __init__(self,*_args,**_kwargs):
404 self.this = apply(eventsc.new_wxMoveEvent,_args,_kwargs)
405 self.thisown = 1
406
407
408
409
410 class wxPaintEventPtr(wxEventPtr):
411 def __init__(self,this):
412 self.this = this
413 self.thisown = 0
414 def __repr__(self):
415 return "<C wxPaintEvent instance at %s>" % (self.this,)
416 class wxPaintEvent(wxPaintEventPtr):
417 def __init__(self,*_args,**_kwargs):
418 self.this = apply(eventsc.new_wxPaintEvent,_args,_kwargs)
419 self.thisown = 1
420
421
422
423
424 class wxEraseEventPtr(wxEventPtr):
425 def __init__(self,this):
426 self.this = this
427 self.thisown = 0
428 def GetDC(self, *_args, **_kwargs):
429 val = apply(eventsc.wxEraseEvent_GetDC,(self,) + _args, _kwargs)
430 if val: val = wxDCPtr(val)
431 return val
432 def __repr__(self):
433 return "<C wxEraseEvent instance at %s>" % (self.this,)
434 class wxEraseEvent(wxEraseEventPtr):
435 def __init__(self,*_args,**_kwargs):
436 self.this = apply(eventsc.new_wxEraseEvent,_args,_kwargs)
437 self.thisown = 1
438
439
440
441
442 class wxFocusEventPtr(wxEventPtr):
443 def __init__(self,this):
444 self.this = this
445 self.thisown = 0
446 def __repr__(self):
447 return "<C wxFocusEvent instance at %s>" % (self.this,)
448 class wxFocusEvent(wxFocusEventPtr):
449 def __init__(self,*_args,**_kwargs):
450 self.this = apply(eventsc.new_wxFocusEvent,_args,_kwargs)
451 self.thisown = 1
452
453
454
455
456 class wxActivateEventPtr(wxEventPtr):
457 def __init__(self,this):
458 self.this = this
459 self.thisown = 0
460 def GetActive(self, *_args, **_kwargs):
461 val = apply(eventsc.wxActivateEvent_GetActive,(self,) + _args, _kwargs)
462 return val
463 def __repr__(self):
464 return "<C wxActivateEvent instance at %s>" % (self.this,)
465 class wxActivateEvent(wxActivateEventPtr):
466 def __init__(self,*_args,**_kwargs):
467 self.this = apply(eventsc.new_wxActivateEvent,_args,_kwargs)
468 self.thisown = 1
469
470
471
472
473 class wxInitDialogEventPtr(wxEventPtr):
474 def __init__(self,this):
475 self.this = this
476 self.thisown = 0
477 def __repr__(self):
478 return "<C wxInitDialogEvent instance at %s>" % (self.this,)
479 class wxInitDialogEvent(wxInitDialogEventPtr):
480 def __init__(self,*_args,**_kwargs):
481 self.this = apply(eventsc.new_wxInitDialogEvent,_args,_kwargs)
482 self.thisown = 1
483
484
485
486
487 class wxMenuEventPtr(wxEventPtr):
488 def __init__(self,this):
489 self.this = this
490 self.thisown = 0
491 def GetMenuId(self, *_args, **_kwargs):
492 val = apply(eventsc.wxMenuEvent_GetMenuId,(self,) + _args, _kwargs)
493 return val
494 def __repr__(self):
495 return "<C wxMenuEvent instance at %s>" % (self.this,)
496 class wxMenuEvent(wxMenuEventPtr):
497 def __init__(self,*_args,**_kwargs):
498 self.this = apply(eventsc.new_wxMenuEvent,_args,_kwargs)
499 self.thisown = 1
500
501
502
503
504 class wxShowEventPtr(wxEventPtr):
505 def __init__(self,this):
506 self.this = this
507 self.thisown = 0
508 def SetShow(self, *_args, **_kwargs):
509 val = apply(eventsc.wxShowEvent_SetShow,(self,) + _args, _kwargs)
510 return val
511 def GetShow(self, *_args, **_kwargs):
512 val = apply(eventsc.wxShowEvent_GetShow,(self,) + _args, _kwargs)
513 return val
514 def __repr__(self):
515 return "<C wxShowEvent instance at %s>" % (self.this,)
516 class wxShowEvent(wxShowEventPtr):
517 def __init__(self,*_args,**_kwargs):
518 self.this = apply(eventsc.new_wxShowEvent,_args,_kwargs)
519 self.thisown = 1
520
521
522
523
524 class wxIconizeEventPtr(wxEventPtr):
525 def __init__(self,this):
526 self.this = this
527 self.thisown = 0
528 def __repr__(self):
529 return "<C wxIconizeEvent instance at %s>" % (self.this,)
530 class wxIconizeEvent(wxIconizeEventPtr):
531 def __init__(self,*_args,**_kwargs):
532 self.this = apply(eventsc.new_wxIconizeEvent,_args,_kwargs)
533 self.thisown = 1
534
535
536
537
538 class wxMaximizeEventPtr(wxEventPtr):
539 def __init__(self,this):
540 self.this = this
541 self.thisown = 0
542 def __repr__(self):
543 return "<C wxMaximizeEvent instance at %s>" % (self.this,)
544 class wxMaximizeEvent(wxMaximizeEventPtr):
545 def __init__(self,*_args,**_kwargs):
546 self.this = apply(eventsc.new_wxMaximizeEvent,_args,_kwargs)
547 self.thisown = 1
548
549
550
551
552 class wxJoystickEventPtr(wxEventPtr):
553 def __init__(self,this):
554 self.this = this
555 self.thisown = 0
556 def GetPosition(self, *_args, **_kwargs):
557 val = apply(eventsc.wxJoystickEvent_GetPosition,(self,) + _args, _kwargs)
558 if val: val = wxPointPtr(val) ; val.thisown = 1
559 return val
560 def GetZPosition(self, *_args, **_kwargs):
561 val = apply(eventsc.wxJoystickEvent_GetZPosition,(self,) + _args, _kwargs)
562 return val
563 def GetButtonState(self, *_args, **_kwargs):
564 val = apply(eventsc.wxJoystickEvent_GetButtonState,(self,) + _args, _kwargs)
565 return val
566 def GetButtonChange(self, *_args, **_kwargs):
567 val = apply(eventsc.wxJoystickEvent_GetButtonChange,(self,) + _args, _kwargs)
568 return val
569 def GetJoystick(self, *_args, **_kwargs):
570 val = apply(eventsc.wxJoystickEvent_GetJoystick,(self,) + _args, _kwargs)
571 return val
572 def SetJoystick(self, *_args, **_kwargs):
573 val = apply(eventsc.wxJoystickEvent_SetJoystick,(self,) + _args, _kwargs)
574 return val
575 def SetButtonState(self, *_args, **_kwargs):
576 val = apply(eventsc.wxJoystickEvent_SetButtonState,(self,) + _args, _kwargs)
577 return val
578 def SetButtonChange(self, *_args, **_kwargs):
579 val = apply(eventsc.wxJoystickEvent_SetButtonChange,(self,) + _args, _kwargs)
580 return val
581 def SetPosition(self, *_args, **_kwargs):
582 val = apply(eventsc.wxJoystickEvent_SetPosition,(self,) + _args, _kwargs)
583 return val
584 def SetZPosition(self, *_args, **_kwargs):
585 val = apply(eventsc.wxJoystickEvent_SetZPosition,(self,) + _args, _kwargs)
586 return val
587 def IsButton(self, *_args, **_kwargs):
588 val = apply(eventsc.wxJoystickEvent_IsButton,(self,) + _args, _kwargs)
589 return val
590 def IsMove(self, *_args, **_kwargs):
591 val = apply(eventsc.wxJoystickEvent_IsMove,(self,) + _args, _kwargs)
592 return val
593 def IsZMove(self, *_args, **_kwargs):
594 val = apply(eventsc.wxJoystickEvent_IsZMove,(self,) + _args, _kwargs)
595 return val
596 def ButtonDown(self, *_args, **_kwargs):
597 val = apply(eventsc.wxJoystickEvent_ButtonDown,(self,) + _args, _kwargs)
598 return val
599 def ButtonUp(self, *_args, **_kwargs):
600 val = apply(eventsc.wxJoystickEvent_ButtonUp,(self,) + _args, _kwargs)
601 return val
602 def ButtonIsDown(self, *_args, **_kwargs):
603 val = apply(eventsc.wxJoystickEvent_ButtonIsDown,(self,) + _args, _kwargs)
604 return val
605 def __repr__(self):
606 return "<C wxJoystickEvent instance at %s>" % (self.this,)
607 class wxJoystickEvent(wxJoystickEventPtr):
608 def __init__(self,*_args,**_kwargs):
609 self.this = apply(eventsc.new_wxJoystickEvent,_args,_kwargs)
610 self.thisown = 1
611
612
613
614
615 class wxDropFilesEventPtr(wxEventPtr):
616 def __init__(self,this):
617 self.this = this
618 self.thisown = 0
619 def GetPosition(self, *_args, **_kwargs):
620 val = apply(eventsc.wxDropFilesEvent_GetPosition,(self,) + _args, _kwargs)
621 if val: val = wxPointPtr(val) ; val.thisown = 1
622 return val
623 def GetNumberOfFiles(self, *_args, **_kwargs):
624 val = apply(eventsc.wxDropFilesEvent_GetNumberOfFiles,(self,) + _args, _kwargs)
625 return val
626 def GetFiles(self, *_args, **_kwargs):
627 val = apply(eventsc.wxDropFilesEvent_GetFiles,(self,) + _args, _kwargs)
628 return val
629 def __repr__(self):
630 return "<C wxDropFilesEvent instance at %s>" % (self.this,)
631 class wxDropFilesEvent(wxDropFilesEventPtr):
632 def __init__(self,this):
633 self.this = this
634
635
636
637
638 class wxIdleEventPtr(wxEventPtr):
639 def __init__(self,this):
640 self.this = this
641 self.thisown = 0
642 def RequestMore(self, *_args, **_kwargs):
643 val = apply(eventsc.wxIdleEvent_RequestMore,(self,) + _args, _kwargs)
644 return val
645 def MoreRequested(self, *_args, **_kwargs):
646 val = apply(eventsc.wxIdleEvent_MoreRequested,(self,) + _args, _kwargs)
647 return val
648 def __repr__(self):
649 return "<C wxIdleEvent instance at %s>" % (self.this,)
650 class wxIdleEvent(wxIdleEventPtr):
651 def __init__(self,*_args,**_kwargs):
652 self.this = apply(eventsc.new_wxIdleEvent,_args,_kwargs)
653 self.thisown = 1
654
655
656
657
658 class wxUpdateUIEventPtr(wxEventPtr):
659 def __init__(self,this):
660 self.this = this
661 self.thisown = 0
662 def GetChecked(self, *_args, **_kwargs):
663 val = apply(eventsc.wxUpdateUIEvent_GetChecked,(self,) + _args, _kwargs)
664 return val
665 def GetEnabled(self, *_args, **_kwargs):
666 val = apply(eventsc.wxUpdateUIEvent_GetEnabled,(self,) + _args, _kwargs)
667 return val
668 def GetText(self, *_args, **_kwargs):
669 val = apply(eventsc.wxUpdateUIEvent_GetText,(self,) + _args, _kwargs)
670 return val
671 def GetSetText(self, *_args, **_kwargs):
672 val = apply(eventsc.wxUpdateUIEvent_GetSetText,(self,) + _args, _kwargs)
673 return val
674 def GetSetChecked(self, *_args, **_kwargs):
675 val = apply(eventsc.wxUpdateUIEvent_GetSetChecked,(self,) + _args, _kwargs)
676 return val
677 def GetSetEnabled(self, *_args, **_kwargs):
678 val = apply(eventsc.wxUpdateUIEvent_GetSetEnabled,(self,) + _args, _kwargs)
679 return val
680 def Check(self, *_args, **_kwargs):
681 val = apply(eventsc.wxUpdateUIEvent_Check,(self,) + _args, _kwargs)
682 return val
683 def Enable(self, *_args, **_kwargs):
684 val = apply(eventsc.wxUpdateUIEvent_Enable,(self,) + _args, _kwargs)
685 return val
686 def SetText(self, *_args, **_kwargs):
687 val = apply(eventsc.wxUpdateUIEvent_SetText,(self,) + _args, _kwargs)
688 return val
689 def __repr__(self):
690 return "<C wxUpdateUIEvent instance at %s>" % (self.this,)
691 class wxUpdateUIEvent(wxUpdateUIEventPtr):
692 def __init__(self,*_args,**_kwargs):
693 self.this = apply(eventsc.new_wxUpdateUIEvent,_args,_kwargs)
694 self.thisown = 1
695
696
697
698
699 class wxSysColourChangedEventPtr(wxEventPtr):
700 def __init__(self,this):
701 self.this = this
702 self.thisown = 0
703 def __repr__(self):
704 return "<C wxSysColourChangedEvent instance at %s>" % (self.this,)
705 class wxSysColourChangedEvent(wxSysColourChangedEventPtr):
706 def __init__(self,*_args,**_kwargs):
707 self.this = apply(eventsc.new_wxSysColourChangedEvent,_args,_kwargs)
708 self.thisown = 1
709
710
711
712
713 class wxNotifyEventPtr(wxCommandEventPtr):
714 def __init__(self,this):
715 self.this = this
716 self.thisown = 0
717 def IsAllowed(self, *_args, **_kwargs):
718 val = apply(eventsc.wxNotifyEvent_IsAllowed,(self,) + _args, _kwargs)
719 return val
720 def Veto(self, *_args, **_kwargs):
721 val = apply(eventsc.wxNotifyEvent_Veto,(self,) + _args, _kwargs)
722 return val
723 def __repr__(self):
724 return "<C wxNotifyEvent instance at %s>" % (self.this,)
725 class wxNotifyEvent(wxNotifyEventPtr):
726 def __init__(self,*_args,**_kwargs):
727 self.this = apply(eventsc.new_wxNotifyEvent,_args,_kwargs)
728 self.thisown = 1
729
730
731
732
733 class wxPaletteChangedEventPtr(wxEventPtr):
734 def __init__(self,this):
735 self.this = this
736 self.thisown = 0
737 def SetChangedWindow(self, *_args, **_kwargs):
738 val = apply(eventsc.wxPaletteChangedEvent_SetChangedWindow,(self,) + _args, _kwargs)
739 return val
740 def GetChangedWindow(self, *_args, **_kwargs):
741 val = apply(eventsc.wxPaletteChangedEvent_GetChangedWindow,(self,) + _args, _kwargs)
742 if val: val = wxWindowPtr(val)
743 return val
744 def __repr__(self):
745 return "<C wxPaletteChangedEvent instance at %s>" % (self.this,)
746 class wxPaletteChangedEvent(wxPaletteChangedEventPtr):
747 def __init__(self,*_args,**_kwargs):
748 self.this = apply(eventsc.new_wxPaletteChangedEvent,_args,_kwargs)
749 self.thisown = 1
750
751
752
753
754 class wxQueryNewPaletteEventPtr(wxEventPtr):
755 def __init__(self,this):
756 self.this = this
757 self.thisown = 0
758 def SetPaletteRealized(self, *_args, **_kwargs):
759 val = apply(eventsc.wxQueryNewPaletteEvent_SetPaletteRealized,(self,) + _args, _kwargs)
760 return val
761 def GetPaletteRealized(self, *_args, **_kwargs):
762 val = apply(eventsc.wxQueryNewPaletteEvent_GetPaletteRealized,(self,) + _args, _kwargs)
763 return val
764 def __repr__(self):
765 return "<C wxQueryNewPaletteEvent instance at %s>" % (self.this,)
766 class wxQueryNewPaletteEvent(wxQueryNewPaletteEventPtr):
767 def __init__(self,*_args,**_kwargs):
768 self.this = apply(eventsc.new_wxQueryNewPaletteEvent,_args,_kwargs)
769 self.thisown = 1
770
771
772
773
774 class wxWindowCreateEventPtr(wxCommandEventPtr):
775 def __init__(self,this):
776 self.this = this
777 self.thisown = 0
778 def GetWindow(self, *_args, **_kwargs):
779 val = apply(eventsc.wxWindowCreateEvent_GetWindow,(self,) + _args, _kwargs)
780 if val: val = wxWindowPtr(val)
781 return val
782 def __repr__(self):
783 return "<C wxWindowCreateEvent instance at %s>" % (self.this,)
784 class wxWindowCreateEvent(wxWindowCreateEventPtr):
785 def __init__(self,*_args,**_kwargs):
786 self.this = apply(eventsc.new_wxWindowCreateEvent,_args,_kwargs)
787 self.thisown = 1
788
789
790
791
792 class wxWindowDestroyEventPtr(wxCommandEventPtr):
793 def __init__(self,this):
794 self.this = this
795 self.thisown = 0
796 def GetWindow(self, *_args, **_kwargs):
797 val = apply(eventsc.wxWindowDestroyEvent_GetWindow,(self,) + _args, _kwargs)
798 if val: val = wxWindowPtr(val)
799 return val
800 def __repr__(self):
801 return "<C wxWindowDestroyEvent instance at %s>" % (self.this,)
802 class wxWindowDestroyEvent(wxWindowDestroyEventPtr):
803 def __init__(self,*_args,**_kwargs):
804 self.this = apply(eventsc.new_wxWindowDestroyEvent,_args,_kwargs)
805 self.thisown = 1
806
807
808
809
810 class wxTimerEventPtr(wxEventPtr):
811 def __init__(self,this):
812 self.this = this
813 self.thisown = 0
814 def GetInterval(self, *_args, **_kwargs):
815 val = apply(eventsc.wxTimerEvent_GetInterval,(self,) + _args, _kwargs)
816 return val
817 def __repr__(self):
818 return "<C wxTimerEvent instance at %s>" % (self.this,)
819 class wxTimerEvent(wxTimerEventPtr):
820 def __init__(self,*_args,**_kwargs):
821 self.this = apply(eventsc.new_wxTimerEvent,_args,_kwargs)
822 self.thisown = 1
823
824
825
826
827 class wxPyEventPtr(wxEventPtr):
828 def __init__(self,this):
829 self.this = this
830 self.thisown = 0
831 def __del__(self,eventsc=eventsc):
832 if self.thisown == 1 :
833 eventsc.delete_wxPyEvent(self)
834 def SetSelf(self, *_args, **_kwargs):
835 val = apply(eventsc.wxPyEvent_SetSelf,(self,) + _args, _kwargs)
836 return val
837 def GetSelf(self, *_args, **_kwargs):
838 val = apply(eventsc.wxPyEvent_GetSelf,(self,) + _args, _kwargs)
839 return val
840 def __repr__(self):
841 return "<C wxPyEvent instance at %s>" % (self.this,)
842 class wxPyEvent(wxPyEventPtr):
843 def __init__(self,*_args,**_kwargs):
844 self.this = apply(eventsc.new_wxPyEvent,_args,_kwargs)
845 self.thisown = 1
846 self.SetSelf(self)
847
848
849
850
851 class wxPyCommandEventPtr(wxCommandEventPtr):
852 def __init__(self,this):
853 self.this = this
854 self.thisown = 0
855 def __del__(self,eventsc=eventsc):
856 if self.thisown == 1 :
857 eventsc.delete_wxPyCommandEvent(self)
858 def SetSelf(self, *_args, **_kwargs):
859 val = apply(eventsc.wxPyCommandEvent_SetSelf,(self,) + _args, _kwargs)
860 return val
861 def GetSelf(self, *_args, **_kwargs):
862 val = apply(eventsc.wxPyCommandEvent_GetSelf,(self,) + _args, _kwargs)
863 return val
864 def __repr__(self):
865 return "<C wxPyCommandEvent instance at %s>" % (self.this,)
866 class wxPyCommandEvent(wxPyCommandEventPtr):
867 def __init__(self,*_args,**_kwargs):
868 self.this = apply(eventsc.new_wxPyCommandEvent,_args,_kwargs)
869 self.thisown = 1
870 self.SetSelf(self)
871
872
873
874
875
876
877 #-------------- FUNCTION WRAPPERS ------------------
878
879
880
881 #-------------- VARIABLE WRAPPERS ------------------
882