]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/misc.py
Compilation fixes for wxPython's wxWizard, added wxRegionFromPoints
[wxWidgets.git] / wxPython / src / msw / misc.py
CommitLineData
8ab979d7
RD
1# This file was created automatically by SWIG.
2import miscc
9416aa89
RD
3class wxObjectPtr :
4 def __init__(self,this):
5 self.this = this
6 self.thisown = 0
7 def GetClassName(self, *_args, **_kwargs):
8 val = apply(miscc.wxObject_GetClassName,(self,) + _args, _kwargs)
9 return val
10 def Destroy(self, *_args, **_kwargs):
11 val = apply(miscc.wxObject_Destroy,(self,) + _args, _kwargs)
12 return val
13 def __repr__(self):
14 return "<C wxObject instance at %s>" % (self.this,)
15class wxObject(wxObjectPtr):
16 def __init__(self,this):
17 self.this = this
18
19
20
21
8ab979d7
RD
22class wxSizePtr :
23 def __init__(self,this):
24 self.this = this
25 self.thisown = 0
1d99702e 26 def __del__(self,miscc=miscc):
8ab979d7 27 if self.thisown == 1 :
1d99702e
RD
28 miscc.delete_wxSize(self)
29 def Set(self, *_args, **_kwargs):
30 val = apply(miscc.wxSize_Set,(self,) + _args, _kwargs)
8ab979d7 31 return val
1d99702e
RD
32 def GetX(self, *_args, **_kwargs):
33 val = apply(miscc.wxSize_GetX,(self,) + _args, _kwargs)
af309447 34 return val
1d99702e
RD
35 def GetY(self, *_args, **_kwargs):
36 val = apply(miscc.wxSize_GetY,(self,) + _args, _kwargs)
af309447 37 return val
1d99702e
RD
38 def GetWidth(self, *_args, **_kwargs):
39 val = apply(miscc.wxSize_GetWidth,(self,) + _args, _kwargs)
8ab979d7 40 return val
1d99702e
RD
41 def GetHeight(self, *_args, **_kwargs):
42 val = apply(miscc.wxSize_GetHeight,(self,) + _args, _kwargs)
8ab979d7 43 return val
1d99702e
RD
44 def SetWidth(self, *_args, **_kwargs):
45 val = apply(miscc.wxSize_SetWidth,(self,) + _args, _kwargs)
bb0054cd 46 return val
1d99702e
RD
47 def SetHeight(self, *_args, **_kwargs):
48 val = apply(miscc.wxSize_SetHeight,(self,) + _args, _kwargs)
bb0054cd 49 return val
1d99702e
RD
50 def asTuple(self, *_args, **_kwargs):
51 val = apply(miscc.wxSize_asTuple,(self,) + _args, _kwargs)
8ab979d7 52 return val
419c299a
RD
53 def __cmp__(self, *_args, **_kwargs):
54 val = apply(miscc.wxSize___cmp__,(self,) + _args, _kwargs)
55 return val
8ab979d7 56 def __setattr__(self,name,value):
af309447 57 if name == "x" :
1d99702e 58 miscc.wxSize_x_set(self,value)
af309447
RD
59 return
60 if name == "y" :
1d99702e 61 miscc.wxSize_y_set(self,value)
af309447 62 return
8ab979d7 63 if name == "width" :
1d99702e 64 miscc.wxSize_width_set(self,value)
8ab979d7
RD
65 return
66 if name == "height" :
1d99702e 67 miscc.wxSize_height_set(self,value)
8ab979d7
RD
68 return
69 self.__dict__[name] = value
70 def __getattr__(self,name):
af309447 71 if name == "x" :
1d99702e 72 return miscc.wxSize_x_get(self)
af309447 73 if name == "y" :
1d99702e 74 return miscc.wxSize_y_get(self)
8ab979d7 75 if name == "width" :
1d99702e 76 return miscc.wxSize_width_get(self)
8ab979d7 77 if name == "height" :
1d99702e 78 return miscc.wxSize_height_get(self)
8ab979d7
RD
79 raise AttributeError,name
80 def __repr__(self):
1d99702e 81 return "<C wxSize instance at %s>" % (self.this,)
211a46cf
RD
82
83 def __str__(self): return str(self.asTuple())
84 def __repr__(self): return str(self.asTuple())
85 def __len__(self): return len(self.asTuple())
86 def __getitem__(self, index): return self.asTuple()[index]
87 def __setitem__(self, index, val):
88 if index == 0: self.width = val
89 elif index == 1: self.height = val
90 else: raise IndexError
91
8ab979d7 92class wxSize(wxSizePtr):
1d99702e
RD
93 def __init__(self,*_args,**_kwargs):
94 self.this = apply(miscc.new_wxSize,_args,_kwargs)
8ab979d7
RD
95 self.thisown = 1
96
97
98
99
100class wxRealPointPtr :
101 def __init__(self,this):
102 self.this = this
103 self.thisown = 0
1d99702e 104 def __del__(self,miscc=miscc):
8ab979d7 105 if self.thisown == 1 :
1d99702e 106 miscc.delete_wxRealPoint(self)
efc5f224
RD
107 def Set(self, *_args, **_kwargs):
108 val = apply(miscc.wxRealPoint_Set,(self,) + _args, _kwargs)
109 return val
110 def asTuple(self, *_args, **_kwargs):
111 val = apply(miscc.wxRealPoint_asTuple,(self,) + _args, _kwargs)
112 return val
c368d904
RD
113 def __add__(self, *_args, **_kwargs):
114 val = apply(miscc.wxRealPoint___add__,(self,) + _args, _kwargs)
115 if val: val = wxRealPointPtr(val) ; val.thisown = 1
116 return val
117 def __sub__(self, *_args, **_kwargs):
118 val = apply(miscc.wxRealPoint___sub__,(self,) + _args, _kwargs)
119 if val: val = wxRealPointPtr(val) ; val.thisown = 1
120 return val
121 def __cmp__(self, *_args, **_kwargs):
122 val = apply(miscc.wxRealPoint___cmp__,(self,) + _args, _kwargs)
123 return val
8ab979d7
RD
124 def __setattr__(self,name,value):
125 if name == "x" :
1d99702e 126 miscc.wxRealPoint_x_set(self,value)
8ab979d7
RD
127 return
128 if name == "y" :
1d99702e 129 miscc.wxRealPoint_y_set(self,value)
8ab979d7
RD
130 return
131 self.__dict__[name] = value
132 def __getattr__(self,name):
133 if name == "x" :
1d99702e 134 return miscc.wxRealPoint_x_get(self)
8ab979d7 135 if name == "y" :
1d99702e 136 return miscc.wxRealPoint_y_get(self)
8ab979d7
RD
137 raise AttributeError,name
138 def __repr__(self):
1d99702e 139 return "<C wxRealPoint instance at %s>" % (self.this,)
211a46cf
RD
140
141 def __str__(self): return str(self.asTuple())
142 def __repr__(self): return str(self.asTuple())
143 def __len__(self): return len(self.asTuple())
144 def __getitem__(self, index): return self.asTuple()[index]
145 def __setitem__(self, index, val):
146 if index == 0: self.width = val
147 elif index == 1: self.height = val
148 else: raise IndexError
149
8ab979d7 150class wxRealPoint(wxRealPointPtr):
1d99702e
RD
151 def __init__(self,*_args,**_kwargs):
152 self.this = apply(miscc.new_wxRealPoint,_args,_kwargs)
8ab979d7
RD
153 self.thisown = 1
154
155
156
157
158class wxPointPtr :
159 def __init__(self,this):
160 self.this = this
161 self.thisown = 0
1d99702e 162 def __del__(self,miscc=miscc):
8ab979d7 163 if self.thisown == 1 :
1d99702e
RD
164 miscc.delete_wxPoint(self)
165 def Set(self, *_args, **_kwargs):
166 val = apply(miscc.wxPoint_Set,(self,) + _args, _kwargs)
8ab979d7 167 return val
1d99702e
RD
168 def asTuple(self, *_args, **_kwargs):
169 val = apply(miscc.wxPoint_asTuple,(self,) + _args, _kwargs)
8ab979d7 170 return val
c368d904
RD
171 def __add__(self, *_args, **_kwargs):
172 val = apply(miscc.wxPoint___add__,(self,) + _args, _kwargs)
173 if val: val = wxPointPtr(val) ; val.thisown = 1
174 return val
175 def __sub__(self, *_args, **_kwargs):
176 val = apply(miscc.wxPoint___sub__,(self,) + _args, _kwargs)
177 if val: val = wxPointPtr(val) ; val.thisown = 1
178 return val
179 def __cmp__(self, *_args, **_kwargs):
180 val = apply(miscc.wxPoint___cmp__,(self,) + _args, _kwargs)
181 return val
8ab979d7
RD
182 def __setattr__(self,name,value):
183 if name == "x" :
1d99702e 184 miscc.wxPoint_x_set(self,value)
8ab979d7
RD
185 return
186 if name == "y" :
1d99702e 187 miscc.wxPoint_y_set(self,value)
8ab979d7
RD
188 return
189 self.__dict__[name] = value
190 def __getattr__(self,name):
191 if name == "x" :
1d99702e 192 return miscc.wxPoint_x_get(self)
8ab979d7 193 if name == "y" :
1d99702e 194 return miscc.wxPoint_y_get(self)
8ab979d7
RD
195 raise AttributeError,name
196 def __repr__(self):
1d99702e 197 return "<C wxPoint instance at %s>" % (self.this,)
211a46cf
RD
198
199 def __str__(self): return str(self.asTuple())
200 def __repr__(self): return str(self.asTuple())
201 def __len__(self): return len(self.asTuple())
202 def __getitem__(self, index): return self.asTuple()[index]
203 def __setitem__(self, index, val):
204 if index == 0: self.x = val
205 elif index == 1: self.y = val
206 else: raise IndexError
207
8ab979d7 208class wxPoint(wxPointPtr):
1d99702e
RD
209 def __init__(self,*_args,**_kwargs):
210 self.this = apply(miscc.new_wxPoint,_args,_kwargs)
8ab979d7
RD
211 self.thisown = 1
212
213
214
215
216class wxRectPtr :
217 def __init__(self,this):
218 self.this = this
219 self.thisown = 0
1d99702e 220 def __del__(self,miscc=miscc):
8ab979d7 221 if self.thisown == 1 :
1d99702e
RD
222 miscc.delete_wxRect(self)
223 def GetX(self, *_args, **_kwargs):
224 val = apply(miscc.wxRect_GetX,(self,) + _args, _kwargs)
8ab979d7 225 return val
1d99702e
RD
226 def SetX(self, *_args, **_kwargs):
227 val = apply(miscc.wxRect_SetX,(self,) + _args, _kwargs)
8ab979d7 228 return val
1d99702e
RD
229 def GetY(self, *_args, **_kwargs):
230 val = apply(miscc.wxRect_GetY,(self,) + _args, _kwargs)
8ab979d7 231 return val
1d99702e
RD
232 def SetY(self, *_args, **_kwargs):
233 val = apply(miscc.wxRect_SetY,(self,) + _args, _kwargs)
8ab979d7 234 return val
1d99702e
RD
235 def GetWidth(self, *_args, **_kwargs):
236 val = apply(miscc.wxRect_GetWidth,(self,) + _args, _kwargs)
8ab979d7 237 return val
1d99702e
RD
238 def SetWidth(self, *_args, **_kwargs):
239 val = apply(miscc.wxRect_SetWidth,(self,) + _args, _kwargs)
8ab979d7 240 return val
1d99702e
RD
241 def GetHeight(self, *_args, **_kwargs):
242 val = apply(miscc.wxRect_GetHeight,(self,) + _args, _kwargs)
8ab979d7 243 return val
1d99702e
RD
244 def SetHeight(self, *_args, **_kwargs):
245 val = apply(miscc.wxRect_SetHeight,(self,) + _args, _kwargs)
8ab979d7 246 return val
1d99702e
RD
247 def GetPosition(self, *_args, **_kwargs):
248 val = apply(miscc.wxRect_GetPosition,(self,) + _args, _kwargs)
249 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 250 return val
1d99702e
RD
251 def GetSize(self, *_args, **_kwargs):
252 val = apply(miscc.wxRect_GetSize,(self,) + _args, _kwargs)
253 if val: val = wxSizePtr(val) ; val.thisown = 1
8ab979d7 254 return val
4c7d2b26
RD
255 def SetPosition(self, *_args, **_kwargs):
256 val = apply(miscc.wxRect_SetPosition,(self,) + _args, _kwargs)
257 return val
258 def SetSize(self, *_args, **_kwargs):
259 val = apply(miscc.wxRect_SetSize,(self,) + _args, _kwargs)
260 return val
1d99702e
RD
261 def GetLeft(self, *_args, **_kwargs):
262 val = apply(miscc.wxRect_GetLeft,(self,) + _args, _kwargs)
8ab979d7 263 return val
1d99702e
RD
264 def GetTop(self, *_args, **_kwargs):
265 val = apply(miscc.wxRect_GetTop,(self,) + _args, _kwargs)
8ab979d7 266 return val
1d99702e
RD
267 def GetBottom(self, *_args, **_kwargs):
268 val = apply(miscc.wxRect_GetBottom,(self,) + _args, _kwargs)
8ab979d7 269 return val
1d99702e
RD
270 def GetRight(self, *_args, **_kwargs):
271 val = apply(miscc.wxRect_GetRight,(self,) + _args, _kwargs)
8ab979d7 272 return val
eb715945
RD
273 def SetLeft(self, *_args, **_kwargs):
274 val = apply(miscc.wxRect_SetLeft,(self,) + _args, _kwargs)
275 return val
276 def SetRight(self, *_args, **_kwargs):
277 val = apply(miscc.wxRect_SetRight,(self,) + _args, _kwargs)
278 return val
279 def SetTop(self, *_args, **_kwargs):
280 val = apply(miscc.wxRect_SetTop,(self,) + _args, _kwargs)
281 return val
282 def SetBottom(self, *_args, **_kwargs):
283 val = apply(miscc.wxRect_SetBottom,(self,) + _args, _kwargs)
284 return val
f6bcfd97
BP
285 def Inflate(self, *_args, **_kwargs):
286 val = apply(miscc.wxRect_Inflate,(self,) + _args, _kwargs)
287 return val
288 def Inside(self, *_args, **_kwargs):
289 val = apply(miscc.wxRect_Inside,(self,) + _args, _kwargs)
290 return val
1d99702e
RD
291 def asTuple(self, *_args, **_kwargs):
292 val = apply(miscc.wxRect_asTuple,(self,) + _args, _kwargs)
af309447 293 return val
f6bcfd97
BP
294 def __add__(self, *_args, **_kwargs):
295 val = apply(miscc.wxRect___add__,(self,) + _args, _kwargs)
296 if val: val = wxRectPtr(val) ; val.thisown = 1
297 return val
298 def __cmp__(self, *_args, **_kwargs):
299 val = apply(miscc.wxRect___cmp__,(self,) + _args, _kwargs)
300 return val
8ab979d7
RD
301 def __setattr__(self,name,value):
302 if name == "x" :
1d99702e 303 miscc.wxRect_x_set(self,value)
8ab979d7
RD
304 return
305 if name == "y" :
1d99702e 306 miscc.wxRect_y_set(self,value)
8ab979d7
RD
307 return
308 if name == "width" :
1d99702e 309 miscc.wxRect_width_set(self,value)
8ab979d7
RD
310 return
311 if name == "height" :
1d99702e 312 miscc.wxRect_height_set(self,value)
8ab979d7
RD
313 return
314 self.__dict__[name] = value
315 def __getattr__(self,name):
316 if name == "x" :
1d99702e 317 return miscc.wxRect_x_get(self)
8ab979d7 318 if name == "y" :
1d99702e 319 return miscc.wxRect_y_get(self)
8ab979d7 320 if name == "width" :
1d99702e 321 return miscc.wxRect_width_get(self)
8ab979d7 322 if name == "height" :
1d99702e 323 return miscc.wxRect_height_get(self)
8ab979d7
RD
324 raise AttributeError,name
325 def __repr__(self):
1d99702e 326 return "<C wxRect instance at %s>" % (self.this,)
9b3d3bc4 327
211a46cf
RD
328 def __str__(self): return str(self.asTuple())
329 def __repr__(self): return str(self.asTuple())
330 def __len__(self): return len(self.asTuple())
331 def __getitem__(self, index): return self.asTuple()[index]
332 def __setitem__(self, index, val):
333 if index == 0: self.x = val
334 elif index == 1: self.y = val
335 elif index == 2: self.width = val
336 elif index == 3: self.height = val
337 else: raise IndexError
338
9b3d3bc4
RD
339 # override the __getattr__ made by SWIG
340 def __getattr__(self, name):
341 d = {
342 'x' : miscc.wxRect_x_get,
343 'y' : miscc.wxRect_y_get,
344 'width' : miscc.wxRect_width_get,
345 'height' : miscc.wxRect_height_get,
346 'top' : miscc.wxRect_GetTop,
347 'bottom' : miscc.wxRect_GetBottom,
348 'left' : miscc.wxRect_GetLeft,
349 'right' : miscc.wxRect_GetRight,
350 }
351 try:
352 func = d[name]
353 except KeyError:
354 raise AttributeError,name
355 return func(self)
356
357 # and also the __setattr__
358 def __setattr__(self, name, value):
359 d = {
360 'x' : miscc.wxRect_x_set,
361 'y' : miscc.wxRect_y_set,
362 'width' : miscc.wxRect_width_set,
363 'height' : miscc.wxRect_height_set,
364 'top' : miscc.wxRect_SetTop,
365 'bottom' : miscc.wxRect_SetBottom,
366 'left' : miscc.wxRect_SetLeft,
367 'right' : miscc.wxRect_SetRight,
368 }
369 try:
370 func = d[name]
371 except KeyError:
372 self.__dict__[name] = value
373 return
374 func(self, value)
375
8ab979d7 376class wxRect(wxRectPtr):
1d99702e
RD
377 def __init__(self,*_args,**_kwargs):
378 self.this = apply(miscc.new_wxRect,_args,_kwargs)
8ab979d7
RD
379 self.thisown = 1
380
381
382
383
9416aa89 384class wxIndividualLayoutConstraintPtr(wxObjectPtr):
8ab979d7
RD
385 def __init__(self,this):
386 self.this = this
387 self.thisown = 0
1d99702e
RD
388 def Above(self, *_args, **_kwargs):
389 val = apply(miscc.wxIndividualLayoutConstraint_Above,(self,) + _args, _kwargs)
8ab979d7 390 return val
1d99702e
RD
391 def Absolute(self, *_args, **_kwargs):
392 val = apply(miscc.wxIndividualLayoutConstraint_Absolute,(self,) + _args, _kwargs)
8ab979d7 393 return val
1d99702e
RD
394 def AsIs(self, *_args, **_kwargs):
395 val = apply(miscc.wxIndividualLayoutConstraint_AsIs,(self,) + _args, _kwargs)
8ab979d7 396 return val
1d99702e
RD
397 def Below(self, *_args, **_kwargs):
398 val = apply(miscc.wxIndividualLayoutConstraint_Below,(self,) + _args, _kwargs)
8ab979d7 399 return val
1d99702e
RD
400 def Unconstrained(self, *_args, **_kwargs):
401 val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained,(self,) + _args, _kwargs)
8ab979d7 402 return val
1d99702e
RD
403 def LeftOf(self, *_args, **_kwargs):
404 val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self,) + _args, _kwargs)
8ab979d7 405 return val
1d99702e
RD
406 def PercentOf(self, *_args, **_kwargs):
407 val = apply(miscc.wxIndividualLayoutConstraint_PercentOf,(self,) + _args, _kwargs)
8ab979d7 408 return val
1d99702e
RD
409 def RightOf(self, *_args, **_kwargs):
410 val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self,) + _args, _kwargs)
8ab979d7 411 return val
1d99702e
RD
412 def SameAs(self, *_args, **_kwargs):
413 val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self,) + _args, _kwargs)
8ab979d7 414 return val
1d99702e
RD
415 def Set(self, *_args, **_kwargs):
416 val = apply(miscc.wxIndividualLayoutConstraint_Set,(self,) + _args, _kwargs)
8ab979d7
RD
417 return val
418 def __repr__(self):
1d99702e 419 return "<C wxIndividualLayoutConstraint instance at %s>" % (self.this,)
8ab979d7
RD
420class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
421 def __init__(self,this):
422 self.this = this
423
424
425
426
9416aa89 427class wxLayoutConstraintsPtr(wxObjectPtr):
8ab979d7
RD
428 def __init__(self,this):
429 self.this = this
430 self.thisown = 0
431 def __setattr__(self,name,value):
432 if name == "bottom" :
1d99702e 433 miscc.wxLayoutConstraints_bottom_set(self,value.this)
8ab979d7
RD
434 return
435 if name == "centreX" :
1d99702e 436 miscc.wxLayoutConstraints_centreX_set(self,value.this)
8ab979d7
RD
437 return
438 if name == "centreY" :
1d99702e 439 miscc.wxLayoutConstraints_centreY_set(self,value.this)
8ab979d7
RD
440 return
441 if name == "height" :
1d99702e 442 miscc.wxLayoutConstraints_height_set(self,value.this)
8ab979d7
RD
443 return
444 if name == "left" :
1d99702e 445 miscc.wxLayoutConstraints_left_set(self,value.this)
8ab979d7
RD
446 return
447 if name == "right" :
1d99702e 448 miscc.wxLayoutConstraints_right_set(self,value.this)
8ab979d7
RD
449 return
450 if name == "top" :
1d99702e 451 miscc.wxLayoutConstraints_top_set(self,value.this)
8ab979d7
RD
452 return
453 if name == "width" :
1d99702e 454 miscc.wxLayoutConstraints_width_set(self,value.this)
8ab979d7
RD
455 return
456 self.__dict__[name] = value
457 def __getattr__(self,name):
458 if name == "bottom" :
1d99702e 459 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self))
8ab979d7 460 if name == "centreX" :
1d99702e 461 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self))
8ab979d7 462 if name == "centreY" :
1d99702e 463 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self))
8ab979d7 464 if name == "height" :
1d99702e 465 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self))
8ab979d7 466 if name == "left" :
1d99702e 467 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self))
8ab979d7 468 if name == "right" :
1d99702e 469 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self))
8ab979d7 470 if name == "top" :
1d99702e 471 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self))
8ab979d7 472 if name == "width" :
1d99702e 473 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
8ab979d7
RD
474 raise AttributeError,name
475 def __repr__(self):
1d99702e 476 return "<C wxLayoutConstraints instance at %s>" % (self.this,)
8ab979d7 477class wxLayoutConstraints(wxLayoutConstraintsPtr):
1d99702e
RD
478 def __init__(self,*_args,**_kwargs):
479 self.this = apply(miscc.new_wxLayoutConstraints,_args,_kwargs)
8ab979d7
RD
480 self.thisown = 1
481
482
483
484
485class wxAcceleratorEntryPtr :
486 def __init__(self,this):
487 self.this = this
488 self.thisown = 0
2f90df85
RD
489 def __del__(self,miscc=miscc):
490 if self.thisown == 1 :
491 miscc.delete_wxAcceleratorEntry(self)
1d99702e
RD
492 def Set(self, *_args, **_kwargs):
493 val = apply(miscc.wxAcceleratorEntry_Set,(self,) + _args, _kwargs)
8ab979d7 494 return val
1d99702e
RD
495 def GetFlags(self, *_args, **_kwargs):
496 val = apply(miscc.wxAcceleratorEntry_GetFlags,(self,) + _args, _kwargs)
8ab979d7 497 return val
1d99702e
RD
498 def GetKeyCode(self, *_args, **_kwargs):
499 val = apply(miscc.wxAcceleratorEntry_GetKeyCode,(self,) + _args, _kwargs)
8ab979d7 500 return val
1d99702e
RD
501 def GetCommand(self, *_args, **_kwargs):
502 val = apply(miscc.wxAcceleratorEntry_GetCommand,(self,) + _args, _kwargs)
8ab979d7
RD
503 return val
504 def __repr__(self):
1d99702e 505 return "<C wxAcceleratorEntry instance at %s>" % (self.this,)
8ab979d7 506class wxAcceleratorEntry(wxAcceleratorEntryPtr):
1d99702e
RD
507 def __init__(self,*_args,**_kwargs):
508 self.this = apply(miscc.new_wxAcceleratorEntry,_args,_kwargs)
8ab979d7
RD
509 self.thisown = 1
510
511
512
513
9416aa89 514class wxAcceleratorTablePtr(wxObjectPtr):
8ab979d7
RD
515 def __init__(self,this):
516 self.this = this
517 self.thisown = 0
2f90df85
RD
518 def __del__(self,miscc=miscc):
519 if self.thisown == 1 :
520 miscc.delete_wxAcceleratorTable(self)
8ab979d7 521 def __repr__(self):
1d99702e 522 return "<C wxAcceleratorTable instance at %s>" % (self.this,)
8ab979d7 523class wxAcceleratorTable(wxAcceleratorTablePtr):
1d99702e
RD
524 def __init__(self,*_args,**_kwargs):
525 self.this = apply(miscc.new_wxAcceleratorTable,_args,_kwargs)
8ab979d7
RD
526 self.thisown = 1
527
528
529
530
9416aa89 531class wxBusyInfoPtr(wxObjectPtr):
2abc0a0f
RD
532 def __init__(self,this):
533 self.this = this
534 self.thisown = 0
535 def __del__(self,miscc=miscc):
536 if self.thisown == 1 :
537 miscc.delete_wxBusyInfo(self)
538 def __repr__(self):
539 return "<C wxBusyInfo instance at %s>" % (self.this,)
540class wxBusyInfo(wxBusyInfoPtr):
541 def __init__(self,*_args,**_kwargs):
542 self.this = apply(miscc.new_wxBusyInfo,_args,_kwargs)
543 self.thisown = 1
544
545
546
547
8ab979d7
RD
548
549
550#-------------- FUNCTION WRAPPERS ------------------
551
eb715945
RD
552wxIntersectRect = miscc.wxIntersectRect
553
cf694132
RD
554wxNewId = miscc.wxNewId
555
556wxRegisterId = miscc.wxRegisterId
557
8ab979d7
RD
558NewId = miscc.NewId
559
560RegisterId = miscc.RegisterId
561
83b18bab
RD
562wxGetCurrentId = miscc.wxGetCurrentId
563
8ab979d7
RD
564wxBell = miscc.wxBell
565
8ab979d7
RD
566wxEndBusyCursor = miscc.wxEndBusyCursor
567
8ab979d7
RD
568wxGetElapsedTime = miscc.wxGetElapsedTime
569
570wxGetFreeMemory = miscc.wxGetFreeMemory
571
572wxGetMousePosition = miscc.wxGetMousePosition
573
574wxIsBusy = miscc.wxIsBusy
575
576wxNow = miscc.wxNow
577
578wxShell = miscc.wxShell
579
580wxStartTimer = miscc.wxStartTimer
581
582wxGetOsVersion = miscc.wxGetOsVersion
583
c368d904
RD
584wxGetOsDescription = miscc.wxGetOsDescription
585
b7fc54be
RD
586wxShutdown = miscc.wxShutdown
587
bb0054cd
RD
588wxSleep = miscc.wxSleep
589
c368d904 590wxUsleep = miscc.wxUsleep
8ab979d7 591
c368d904 592wxYield = miscc.wxYield
cf694132 593
83b18bab
RD
594wxYieldIfNeeded = miscc.wxYieldIfNeeded
595
bb0054cd
RD
596wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
597
8ab979d7
RD
598wxGetResource = miscc.wxGetResource
599
694759cf
RD
600wxStripMenuCodes = miscc.wxStripMenuCodes
601
c368d904
RD
602wxGetEmailAddress = miscc.wxGetEmailAddress
603
604wxGetHostName = miscc.wxGetHostName
605
606wxGetFullHostName = miscc.wxGetFullHostName
607
608wxGetUserId = miscc.wxGetUserId
609
610wxGetUserName = miscc.wxGetUserName
611
612wxGetHomeDir = miscc.wxGetHomeDir
613
c6c593e8
RD
614wxGetUserHome = miscc.wxGetUserHome
615
0815db26
RD
616wxGetProcessId = miscc.wxGetProcessId
617
c368d904
RD
618def wxGetAccelFromString(*_args, **_kwargs):
619 val = apply(miscc.wxGetAccelFromString,_args,_kwargs)
620 if val: val = wxAcceleratorEntryPtr(val)
621 return val
622
8ab979d7
RD
623
624
625#-------------- VARIABLE WRAPPERS ------------------
626
b7fc54be
RD
627wxSHUTDOWN_POWEROFF = miscc.wxSHUTDOWN_POWEROFF
628wxSHUTDOWN_REBOOT = miscc.wxSHUTDOWN_REBOOT
8ab979d7
RD
629wxLeft = miscc.wxLeft
630wxTop = miscc.wxTop
631wxRight = miscc.wxRight
632wxBottom = miscc.wxBottom
633wxWidth = miscc.wxWidth
634wxHeight = miscc.wxHeight
635wxCentre = miscc.wxCentre
636wxCenter = miscc.wxCenter
637wxCentreX = miscc.wxCentreX
638wxCentreY = miscc.wxCentreY
639wxUnconstrained = miscc.wxUnconstrained
640wxAsIs = miscc.wxAsIs
641wxPercentOf = miscc.wxPercentOf
642wxAbove = miscc.wxAbove
643wxBelow = miscc.wxBelow
644wxLeftOf = miscc.wxLeftOf
645wxRightOf = miscc.wxRightOf
646wxSameAs = miscc.wxSameAs
647wxAbsolute = miscc.wxAbsolute
f6bcfd97
BP
648cvar = miscc.cvar
649wxNullAcceleratorTable = wxAcceleratorTablePtr(miscc.cvar.wxNullAcceleratorTable)