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