]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/misc.py
Fixes for differences between wxMSW and wxGTK`
[wxWidgets.git] / utils / wxPython / src / gtk / misc.py
CommitLineData
70551f47
RD
1# This file was created automatically by SWIG.
2import miscc
3class wxSizePtr :
4 def __init__(self,this):
5 self.this = this
6 self.thisown = 0
2d091820 7 def __del__(self,miscc=miscc):
70551f47 8 if self.thisown == 1 :
2d091820
RD
9 miscc.delete_wxSize(self)
10 def Set(self, *_args, **_kwargs):
11 val = apply(miscc.wxSize_Set,(self,) + _args, _kwargs)
70551f47 12 return val
2d091820
RD
13 def GetX(self, *_args, **_kwargs):
14 val = apply(miscc.wxSize_GetX,(self,) + _args, _kwargs)
21f8d7ea 15 return val
2d091820
RD
16 def GetY(self, *_args, **_kwargs):
17 val = apply(miscc.wxSize_GetY,(self,) + _args, _kwargs)
21f8d7ea 18 return val
2d091820
RD
19 def GetWidth(self, *_args, **_kwargs):
20 val = apply(miscc.wxSize_GetWidth,(self,) + _args, _kwargs)
70551f47 21 return val
2d091820
RD
22 def GetHeight(self, *_args, **_kwargs):
23 val = apply(miscc.wxSize_GetHeight,(self,) + _args, _kwargs)
70551f47 24 return val
2d091820
RD
25 def SetWidth(self, *_args, **_kwargs):
26 val = apply(miscc.wxSize_SetWidth,(self,) + _args, _kwargs)
d24a34bb 27 return val
2d091820
RD
28 def SetHeight(self, *_args, **_kwargs):
29 val = apply(miscc.wxSize_SetHeight,(self,) + _args, _kwargs)
d24a34bb 30 return val
2d091820
RD
31 def asTuple(self, *_args, **_kwargs):
32 val = apply(miscc.wxSize_asTuple,(self,) + _args, _kwargs)
70551f47
RD
33 return val
34 def __setattr__(self,name,value):
21f8d7ea 35 if name == "x" :
2d091820 36 miscc.wxSize_x_set(self,value)
21f8d7ea
RD
37 return
38 if name == "y" :
2d091820 39 miscc.wxSize_y_set(self,value)
21f8d7ea 40 return
70551f47 41 if name == "width" :
2d091820 42 miscc.wxSize_width_set(self,value)
70551f47
RD
43 return
44 if name == "height" :
2d091820 45 miscc.wxSize_height_set(self,value)
70551f47
RD
46 return
47 self.__dict__[name] = value
48 def __getattr__(self,name):
21f8d7ea 49 if name == "x" :
2d091820 50 return miscc.wxSize_x_get(self)
21f8d7ea 51 if name == "y" :
2d091820 52 return miscc.wxSize_y_get(self)
70551f47 53 if name == "width" :
2d091820 54 return miscc.wxSize_width_get(self)
70551f47 55 if name == "height" :
2d091820 56 return miscc.wxSize_height_get(self)
70551f47
RD
57 raise AttributeError,name
58 def __repr__(self):
2d091820 59 return "<C wxSize instance at %s>" % (self.this,)
21f8d7ea
RD
60 def __str__(self): return str(self.asTuple())
61 def __repr__(self): return str(self.asTuple())
70551f47 62class wxSize(wxSizePtr):
2d091820
RD
63 def __init__(self,*_args,**_kwargs):
64 self.this = apply(miscc.new_wxSize,_args,_kwargs)
70551f47
RD
65 self.thisown = 1
66
67
68
69
70class wxRealPointPtr :
71 def __init__(self,this):
72 self.this = this
73 self.thisown = 0
2d091820 74 def __del__(self,miscc=miscc):
70551f47 75 if self.thisown == 1 :
2d091820 76 miscc.delete_wxRealPoint(self)
107e4716
RD
77 def Set(self, *_args, **_kwargs):
78 val = apply(miscc.wxRealPoint_Set,(self,) + _args, _kwargs)
79 return val
80 def asTuple(self, *_args, **_kwargs):
81 val = apply(miscc.wxRealPoint_asTuple,(self,) + _args, _kwargs)
82 return val
70551f47
RD
83 def __setattr__(self,name,value):
84 if name == "x" :
2d091820 85 miscc.wxRealPoint_x_set(self,value)
70551f47
RD
86 return
87 if name == "y" :
2d091820 88 miscc.wxRealPoint_y_set(self,value)
70551f47
RD
89 return
90 self.__dict__[name] = value
91 def __getattr__(self,name):
92 if name == "x" :
2d091820 93 return miscc.wxRealPoint_x_get(self)
70551f47 94 if name == "y" :
2d091820 95 return miscc.wxRealPoint_y_get(self)
70551f47
RD
96 raise AttributeError,name
97 def __repr__(self):
2d091820 98 return "<C wxRealPoint instance at %s>" % (self.this,)
107e4716
RD
99 def __str__(self): return str(self.asTuple())
100 def __repr__(self): return str(self.asTuple())
70551f47 101class wxRealPoint(wxRealPointPtr):
2d091820
RD
102 def __init__(self,*_args,**_kwargs):
103 self.this = apply(miscc.new_wxRealPoint,_args,_kwargs)
70551f47
RD
104 self.thisown = 1
105
106
107
108
109class wxPointPtr :
110 def __init__(self,this):
111 self.this = this
112 self.thisown = 0
2d091820 113 def __del__(self,miscc=miscc):
70551f47 114 if self.thisown == 1 :
2d091820
RD
115 miscc.delete_wxPoint(self)
116 def Set(self, *_args, **_kwargs):
117 val = apply(miscc.wxPoint_Set,(self,) + _args, _kwargs)
70551f47 118 return val
2d091820
RD
119 def asTuple(self, *_args, **_kwargs):
120 val = apply(miscc.wxPoint_asTuple,(self,) + _args, _kwargs)
70551f47
RD
121 return val
122 def __setattr__(self,name,value):
123 if name == "x" :
2d091820 124 miscc.wxPoint_x_set(self,value)
70551f47
RD
125 return
126 if name == "y" :
2d091820 127 miscc.wxPoint_y_set(self,value)
70551f47
RD
128 return
129 self.__dict__[name] = value
130 def __getattr__(self,name):
131 if name == "x" :
2d091820 132 return miscc.wxPoint_x_get(self)
70551f47 133 if name == "y" :
2d091820 134 return miscc.wxPoint_y_get(self)
70551f47
RD
135 raise AttributeError,name
136 def __repr__(self):
2d091820 137 return "<C wxPoint instance at %s>" % (self.this,)
21f8d7ea
RD
138 def __str__(self): return str(self.asTuple())
139 def __repr__(self): return str(self.asTuple())
70551f47 140class wxPoint(wxPointPtr):
2d091820
RD
141 def __init__(self,*_args,**_kwargs):
142 self.this = apply(miscc.new_wxPoint,_args,_kwargs)
70551f47
RD
143 self.thisown = 1
144
145
146
147
148class wxRectPtr :
149 def __init__(self,this):
150 self.this = this
151 self.thisown = 0
2d091820 152 def __del__(self,miscc=miscc):
70551f47 153 if self.thisown == 1 :
2d091820
RD
154 miscc.delete_wxRect(self)
155 def GetX(self, *_args, **_kwargs):
156 val = apply(miscc.wxRect_GetX,(self,) + _args, _kwargs)
70551f47 157 return val
2d091820
RD
158 def SetX(self, *_args, **_kwargs):
159 val = apply(miscc.wxRect_SetX,(self,) + _args, _kwargs)
70551f47 160 return val
2d091820
RD
161 def GetY(self, *_args, **_kwargs):
162 val = apply(miscc.wxRect_GetY,(self,) + _args, _kwargs)
70551f47 163 return val
2d091820
RD
164 def SetY(self, *_args, **_kwargs):
165 val = apply(miscc.wxRect_SetY,(self,) + _args, _kwargs)
70551f47 166 return val
2d091820
RD
167 def GetWidth(self, *_args, **_kwargs):
168 val = apply(miscc.wxRect_GetWidth,(self,) + _args, _kwargs)
70551f47 169 return val
2d091820
RD
170 def SetWidth(self, *_args, **_kwargs):
171 val = apply(miscc.wxRect_SetWidth,(self,) + _args, _kwargs)
70551f47 172 return val
2d091820
RD
173 def GetHeight(self, *_args, **_kwargs):
174 val = apply(miscc.wxRect_GetHeight,(self,) + _args, _kwargs)
70551f47 175 return val
2d091820
RD
176 def SetHeight(self, *_args, **_kwargs):
177 val = apply(miscc.wxRect_SetHeight,(self,) + _args, _kwargs)
70551f47 178 return val
2d091820
RD
179 def GetPosition(self, *_args, **_kwargs):
180 val = apply(miscc.wxRect_GetPosition,(self,) + _args, _kwargs)
181 if val: val = wxPointPtr(val) ; val.thisown = 1
70551f47 182 return val
2d091820
RD
183 def GetSize(self, *_args, **_kwargs):
184 val = apply(miscc.wxRect_GetSize,(self,) + _args, _kwargs)
185 if val: val = wxSizePtr(val) ; val.thisown = 1
70551f47 186 return val
2d091820
RD
187 def GetLeft(self, *_args, **_kwargs):
188 val = apply(miscc.wxRect_GetLeft,(self,) + _args, _kwargs)
70551f47 189 return val
2d091820
RD
190 def GetTop(self, *_args, **_kwargs):
191 val = apply(miscc.wxRect_GetTop,(self,) + _args, _kwargs)
70551f47 192 return val
2d091820
RD
193 def GetBottom(self, *_args, **_kwargs):
194 val = apply(miscc.wxRect_GetBottom,(self,) + _args, _kwargs)
70551f47 195 return val
2d091820
RD
196 def GetRight(self, *_args, **_kwargs):
197 val = apply(miscc.wxRect_GetRight,(self,) + _args, _kwargs)
70551f47 198 return val
2d091820
RD
199 def asTuple(self, *_args, **_kwargs):
200 val = apply(miscc.wxRect_asTuple,(self,) + _args, _kwargs)
21f8d7ea 201 return val
70551f47
RD
202 def __setattr__(self,name,value):
203 if name == "x" :
2d091820 204 miscc.wxRect_x_set(self,value)
70551f47
RD
205 return
206 if name == "y" :
2d091820 207 miscc.wxRect_y_set(self,value)
70551f47
RD
208 return
209 if name == "width" :
2d091820 210 miscc.wxRect_width_set(self,value)
70551f47
RD
211 return
212 if name == "height" :
2d091820 213 miscc.wxRect_height_set(self,value)
70551f47
RD
214 return
215 self.__dict__[name] = value
216 def __getattr__(self,name):
217 if name == "x" :
2d091820 218 return miscc.wxRect_x_get(self)
70551f47 219 if name == "y" :
2d091820 220 return miscc.wxRect_y_get(self)
70551f47 221 if name == "width" :
2d091820 222 return miscc.wxRect_width_get(self)
70551f47 223 if name == "height" :
2d091820 224 return miscc.wxRect_height_get(self)
70551f47
RD
225 raise AttributeError,name
226 def __repr__(self):
2d091820 227 return "<C wxRect instance at %s>" % (self.this,)
21f8d7ea
RD
228 def __str__(self): return str(self.asTuple())
229 def __repr__(self): return str(self.asTuple())
70551f47 230class wxRect(wxRectPtr):
2d091820
RD
231 def __init__(self,*_args,**_kwargs):
232 self.this = apply(miscc.new_wxRect,_args,_kwargs)
70551f47
RD
233 self.thisown = 1
234
235
236
237
238class wxPyTimerPtr :
239 def __init__(self,this):
240 self.this = this
241 self.thisown = 0
2d091820 242 def __del__(self,miscc=miscc):
70551f47 243 if self.thisown == 1 :
2d091820 244 miscc.delete_wxPyTimer(self)
d29aba2f
RD
245 def GetInterval(self, *_args, **_kwargs):
246 val = apply(miscc.wxPyTimer_GetInterval,(self,) + _args, _kwargs)
247 return val
248 def IsOneShot(self, *_args, **_kwargs):
249 val = apply(miscc.wxPyTimer_IsOneShot,(self,) + _args, _kwargs)
70551f47 250 return val
2d091820
RD
251 def Start(self, *_args, **_kwargs):
252 val = apply(miscc.wxPyTimer_Start,(self,) + _args, _kwargs)
70551f47 253 return val
2d091820
RD
254 def Stop(self, *_args, **_kwargs):
255 val = apply(miscc.wxPyTimer_Stop,(self,) + _args, _kwargs)
70551f47
RD
256 return val
257 def __repr__(self):
2d091820 258 return "<C wxPyTimer instance at %s>" % (self.this,)
70551f47 259class wxPyTimer(wxPyTimerPtr):
2d091820
RD
260 def __init__(self,*_args,**_kwargs):
261 self.this = apply(miscc.new_wxPyTimer,_args,_kwargs)
70551f47
RD
262 self.thisown = 1
263
264
265
266
267class wxIndividualLayoutConstraintPtr :
268 def __init__(self,this):
269 self.this = this
270 self.thisown = 0
2d091820
RD
271 def Above(self, *_args, **_kwargs):
272 val = apply(miscc.wxIndividualLayoutConstraint_Above,(self,) + _args, _kwargs)
70551f47 273 return val
2d091820
RD
274 def Absolute(self, *_args, **_kwargs):
275 val = apply(miscc.wxIndividualLayoutConstraint_Absolute,(self,) + _args, _kwargs)
70551f47 276 return val
2d091820
RD
277 def AsIs(self, *_args, **_kwargs):
278 val = apply(miscc.wxIndividualLayoutConstraint_AsIs,(self,) + _args, _kwargs)
70551f47 279 return val
2d091820
RD
280 def Below(self, *_args, **_kwargs):
281 val = apply(miscc.wxIndividualLayoutConstraint_Below,(self,) + _args, _kwargs)
70551f47 282 return val
2d091820
RD
283 def Unconstrained(self, *_args, **_kwargs):
284 val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained,(self,) + _args, _kwargs)
70551f47 285 return val
2d091820
RD
286 def LeftOf(self, *_args, **_kwargs):
287 val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self,) + _args, _kwargs)
70551f47 288 return val
2d091820
RD
289 def PercentOf(self, *_args, **_kwargs):
290 val = apply(miscc.wxIndividualLayoutConstraint_PercentOf,(self,) + _args, _kwargs)
70551f47 291 return val
2d091820
RD
292 def RightOf(self, *_args, **_kwargs):
293 val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self,) + _args, _kwargs)
70551f47 294 return val
2d091820
RD
295 def SameAs(self, *_args, **_kwargs):
296 val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self,) + _args, _kwargs)
70551f47 297 return val
2d091820
RD
298 def Set(self, *_args, **_kwargs):
299 val = apply(miscc.wxIndividualLayoutConstraint_Set,(self,) + _args, _kwargs)
70551f47
RD
300 return val
301 def __repr__(self):
2d091820 302 return "<C wxIndividualLayoutConstraint instance at %s>" % (self.this,)
70551f47
RD
303class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
304 def __init__(self,this):
305 self.this = this
306
307
308
309
310class wxLayoutConstraintsPtr :
311 def __init__(self,this):
312 self.this = this
313 self.thisown = 0
314 def __setattr__(self,name,value):
315 if name == "bottom" :
2d091820 316 miscc.wxLayoutConstraints_bottom_set(self,value.this)
70551f47
RD
317 return
318 if name == "centreX" :
2d091820 319 miscc.wxLayoutConstraints_centreX_set(self,value.this)
70551f47
RD
320 return
321 if name == "centreY" :
2d091820 322 miscc.wxLayoutConstraints_centreY_set(self,value.this)
70551f47
RD
323 return
324 if name == "height" :
2d091820 325 miscc.wxLayoutConstraints_height_set(self,value.this)
70551f47
RD
326 return
327 if name == "left" :
2d091820 328 miscc.wxLayoutConstraints_left_set(self,value.this)
70551f47
RD
329 return
330 if name == "right" :
2d091820 331 miscc.wxLayoutConstraints_right_set(self,value.this)
70551f47
RD
332 return
333 if name == "top" :
2d091820 334 miscc.wxLayoutConstraints_top_set(self,value.this)
70551f47
RD
335 return
336 if name == "width" :
2d091820 337 miscc.wxLayoutConstraints_width_set(self,value.this)
70551f47
RD
338 return
339 self.__dict__[name] = value
340 def __getattr__(self,name):
341 if name == "bottom" :
2d091820 342 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self))
70551f47 343 if name == "centreX" :
2d091820 344 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self))
70551f47 345 if name == "centreY" :
2d091820 346 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self))
70551f47 347 if name == "height" :
2d091820 348 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self))
70551f47 349 if name == "left" :
2d091820 350 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self))
70551f47 351 if name == "right" :
2d091820 352 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self))
70551f47 353 if name == "top" :
2d091820 354 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self))
70551f47 355 if name == "width" :
2d091820 356 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
70551f47
RD
357 raise AttributeError,name
358 def __repr__(self):
2d091820 359 return "<C wxLayoutConstraints instance at %s>" % (self.this,)
70551f47 360class wxLayoutConstraints(wxLayoutConstraintsPtr):
2d091820
RD
361 def __init__(self,*_args,**_kwargs):
362 self.this = apply(miscc.new_wxLayoutConstraints,_args,_kwargs)
70551f47
RD
363 self.thisown = 1
364
365
366
367
105e45b9
RD
368class wxRegionPtr :
369 def __init__(self,this):
370 self.this = this
371 self.thisown = 0
2d091820 372 def __del__(self,miscc=miscc):
105e45b9 373 if self.thisown == 1 :
2d091820
RD
374 miscc.delete_wxRegion(self)
375 def Clear(self, *_args, **_kwargs):
376 val = apply(miscc.wxRegion_Clear,(self,) + _args, _kwargs)
105e45b9 377 return val
2d091820
RD
378 def Contains(self, *_args, **_kwargs):
379 val = apply(miscc.wxRegion_Contains,(self,) + _args, _kwargs)
105e45b9 380 return val
2d091820
RD
381 def ContainsPoint(self, *_args, **_kwargs):
382 val = apply(miscc.wxRegion_ContainsPoint,(self,) + _args, _kwargs)
105e45b9 383 return val
2d091820
RD
384 def ContainsRect(self, *_args, **_kwargs):
385 val = apply(miscc.wxRegion_ContainsRect,(self,) + _args, _kwargs)
105e45b9 386 return val
2d091820
RD
387 def GetBox(self, *_args, **_kwargs):
388 val = apply(miscc.wxRegion_GetBox,(self,) + _args, _kwargs)
389 if val: val = wxRectPtr(val) ; val.thisown = 1
105e45b9 390 return val
2d091820
RD
391 def Intersect(self, *_args, **_kwargs):
392 val = apply(miscc.wxRegion_Intersect,(self,) + _args, _kwargs)
105e45b9 393 return val
bc29c5e0
RD
394 def IsEmpty(self, *_args, **_kwargs):
395 val = apply(miscc.wxRegion_IsEmpty,(self,) + _args, _kwargs)
396 return val
2d091820
RD
397 def Subtract(self, *_args, **_kwargs):
398 val = apply(miscc.wxRegion_Subtract,(self,) + _args, _kwargs)
105e45b9 399 return val
2d091820
RD
400 def Union(self, *_args, **_kwargs):
401 val = apply(miscc.wxRegion_Union,(self,) + _args, _kwargs)
105e45b9 402 return val
2d091820
RD
403 def Xor(self, *_args, **_kwargs):
404 val = apply(miscc.wxRegion_Xor,(self,) + _args, _kwargs)
105e45b9
RD
405 return val
406 def __repr__(self):
2d091820 407 return "<C wxRegion instance at %s>" % (self.this,)
105e45b9 408class wxRegion(wxRegionPtr):
2d091820
RD
409 def __init__(self,*_args,**_kwargs):
410 self.this = apply(miscc.new_wxRegion,_args,_kwargs)
105e45b9
RD
411 self.thisown = 1
412
413
414
415
416class wxRegionIteratorPtr :
417 def __init__(self,this):
418 self.this = this
419 self.thisown = 0
2d091820 420 def __del__(self,miscc=miscc):
105e45b9 421 if self.thisown == 1 :
2d091820
RD
422 miscc.delete_wxRegionIterator(self)
423 def GetX(self, *_args, **_kwargs):
424 val = apply(miscc.wxRegionIterator_GetX,(self,) + _args, _kwargs)
105e45b9 425 return val
2d091820
RD
426 def GetY(self, *_args, **_kwargs):
427 val = apply(miscc.wxRegionIterator_GetY,(self,) + _args, _kwargs)
105e45b9 428 return val
2d091820
RD
429 def GetW(self, *_args, **_kwargs):
430 val = apply(miscc.wxRegionIterator_GetW,(self,) + _args, _kwargs)
105e45b9 431 return val
2d091820
RD
432 def GetWidth(self, *_args, **_kwargs):
433 val = apply(miscc.wxRegionIterator_GetWidth,(self,) + _args, _kwargs)
105e45b9 434 return val
2d091820
RD
435 def GetH(self, *_args, **_kwargs):
436 val = apply(miscc.wxRegionIterator_GetH,(self,) + _args, _kwargs)
105e45b9 437 return val
2d091820
RD
438 def GetHeight(self, *_args, **_kwargs):
439 val = apply(miscc.wxRegionIterator_GetHeight,(self,) + _args, _kwargs)
105e45b9 440 return val
2d091820
RD
441 def GetRect(self, *_args, **_kwargs):
442 val = apply(miscc.wxRegionIterator_GetRect,(self,) + _args, _kwargs)
443 if val: val = wxRectPtr(val) ; val.thisown = 1
105e45b9 444 return val
2d091820
RD
445 def HaveRects(self, *_args, **_kwargs):
446 val = apply(miscc.wxRegionIterator_HaveRects,(self,) + _args, _kwargs)
105e45b9 447 return val
2d091820
RD
448 def Reset(self, *_args, **_kwargs):
449 val = apply(miscc.wxRegionIterator_Reset,(self,) + _args, _kwargs)
105e45b9 450 return val
2d091820
RD
451 def Next(self, *_args, **_kwargs):
452 val = apply(miscc.wxRegionIterator_Next,(self,) + _args, _kwargs)
105e45b9
RD
453 return val
454 def __repr__(self):
2d091820 455 return "<C wxRegionIterator instance at %s>" % (self.this,)
105e45b9 456class wxRegionIterator(wxRegionIteratorPtr):
2d091820
RD
457 def __init__(self,*_args,**_kwargs):
458 self.this = apply(miscc.new_wxRegionIterator,_args,_kwargs)
105e45b9
RD
459 self.thisown = 1
460
461
462
463
faf3cb35
RD
464class wxAcceleratorEntryPtr :
465 def __init__(self,this):
466 self.this = this
467 self.thisown = 0
37f6a977
RD
468 def __del__(self,miscc=miscc):
469 if self.thisown == 1 :
470 miscc.delete_wxAcceleratorEntry(self)
2d091820
RD
471 def Set(self, *_args, **_kwargs):
472 val = apply(miscc.wxAcceleratorEntry_Set,(self,) + _args, _kwargs)
faf3cb35 473 return val
2d091820
RD
474 def GetFlags(self, *_args, **_kwargs):
475 val = apply(miscc.wxAcceleratorEntry_GetFlags,(self,) + _args, _kwargs)
faf3cb35 476 return val
2d091820
RD
477 def GetKeyCode(self, *_args, **_kwargs):
478 val = apply(miscc.wxAcceleratorEntry_GetKeyCode,(self,) + _args, _kwargs)
faf3cb35 479 return val
2d091820
RD
480 def GetCommand(self, *_args, **_kwargs):
481 val = apply(miscc.wxAcceleratorEntry_GetCommand,(self,) + _args, _kwargs)
faf3cb35
RD
482 return val
483 def __repr__(self):
2d091820 484 return "<C wxAcceleratorEntry instance at %s>" % (self.this,)
faf3cb35 485class wxAcceleratorEntry(wxAcceleratorEntryPtr):
2d091820
RD
486 def __init__(self,*_args,**_kwargs):
487 self.this = apply(miscc.new_wxAcceleratorEntry,_args,_kwargs)
faf3cb35
RD
488 self.thisown = 1
489
490
491
492
493class wxAcceleratorTablePtr :
494 def __init__(self,this):
495 self.this = this
496 self.thisown = 0
37f6a977
RD
497 def __del__(self,miscc=miscc):
498 if self.thisown == 1 :
499 miscc.delete_wxAcceleratorTable(self)
faf3cb35 500 def __repr__(self):
2d091820 501 return "<C wxAcceleratorTable instance at %s>" % (self.this,)
faf3cb35 502class wxAcceleratorTable(wxAcceleratorTablePtr):
2d091820
RD
503 def __init__(self,*_args,**_kwargs):
504 self.this = apply(miscc.new_wxAcceleratorTable,_args,_kwargs)
faf3cb35
RD
505 self.thisown = 1
506
507
508
509
4120ef2b
RD
510class wxBusyInfoPtr :
511 def __init__(self,this):
512 self.this = this
513 self.thisown = 0
514 def __del__(self,miscc=miscc):
515 if self.thisown == 1 :
516 miscc.delete_wxBusyInfo(self)
517 def __repr__(self):
518 return "<C wxBusyInfo instance at %s>" % (self.this,)
519class wxBusyInfo(wxBusyInfoPtr):
520 def __init__(self,*_args,**_kwargs):
521 self.this = apply(miscc.new_wxBusyInfo,_args,_kwargs)
522 self.thisown = 1
523
524
525
526
70551f47
RD
527
528
529#-------------- FUNCTION WRAPPERS ------------------
530
ab9bc19b
RD
531wxNewId = miscc.wxNewId
532
533wxRegisterId = miscc.wxRegisterId
534
70551f47
RD
535NewId = miscc.NewId
536
537RegisterId = miscc.RegisterId
538
70551f47
RD
539wxBell = miscc.wxBell
540
541wxDisplaySize = miscc.wxDisplaySize
542
543wxEndBusyCursor = miscc.wxEndBusyCursor
544
545wxExecute = miscc.wxExecute
546
bc29c5e0
RD
547wxGetElapsedTime = miscc.wxGetElapsedTime
548
70551f47
RD
549wxGetMousePosition = miscc.wxGetMousePosition
550
551wxIsBusy = miscc.wxIsBusy
552
553wxNow = miscc.wxNow
554
bc29c5e0
RD
555wxShell = miscc.wxShell
556
557wxStartTimer = miscc.wxStartTimer
558
559wxGetOsVersion = miscc.wxGetOsVersion
560
d24a34bb
RD
561wxSleep = miscc.wxSleep
562
70551f47
RD
563wxYield = miscc.wxYield
564
ab9bc19b
RD
565wxSafeYield = miscc.wxSafeYield
566
d24a34bb
RD
567wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
568
70551f47
RD
569wxGetResource = miscc.wxGetResource
570
d29aba2f
RD
571wxStripMenuCodes = miscc.wxStripMenuCodes
572
70551f47
RD
573
574
575#-------------- VARIABLE WRAPPERS ------------------
576
577wxLeft = miscc.wxLeft
578wxTop = miscc.wxTop
579wxRight = miscc.wxRight
580wxBottom = miscc.wxBottom
581wxWidth = miscc.wxWidth
582wxHeight = miscc.wxHeight
583wxCentre = miscc.wxCentre
584wxCenter = miscc.wxCenter
585wxCentreX = miscc.wxCentreX
586wxCentreY = miscc.wxCentreY
587wxUnconstrained = miscc.wxUnconstrained
588wxAsIs = miscc.wxAsIs
589wxPercentOf = miscc.wxPercentOf
590wxAbove = miscc.wxAbove
591wxBelow = miscc.wxBelow
592wxLeftOf = miscc.wxLeftOf
593wxRightOf = miscc.wxRightOf
594wxSameAs = miscc.wxSameAs
595wxAbsolute = miscc.wxAbsolute
105e45b9
RD
596wxOutRegion = miscc.wxOutRegion
597wxPartRegion = miscc.wxPartRegion
598wxInRegion = miscc.wxInRegion