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