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