1 # This file was created automatically by SWIG.
4 def __init__(self
,this
):
7 def GetClassName(self
, *_args
, **_kwargs
):
8 val
= miscc
.wxObject_GetClassName(self
, *_args
, **_kwargs
)
10 def Destroy(self
, *_args
, **_kwargs
):
11 val
= miscc
.wxObject_Destroy(self
, *_args
, **_kwargs
)
14 return "<%s.%s instance; proxy of C++ wxObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
15 class wxObject(wxObjectPtr
):
16 def __init__(self
,this
):
23 def __init__(self
,this
):
26 def __del__(self
, delfunc
=miscc
.delete_wxSize
):
32 def Set(self
, *_args
, **_kwargs
):
33 val
= miscc
.wxSize_Set(self
, *_args
, **_kwargs
)
35 def GetX(self
, *_args
, **_kwargs
):
36 val
= miscc
.wxSize_GetX(self
, *_args
, **_kwargs
)
38 def GetY(self
, *_args
, **_kwargs
):
39 val
= miscc
.wxSize_GetY(self
, *_args
, **_kwargs
)
41 def GetWidth(self
, *_args
, **_kwargs
):
42 val
= miscc
.wxSize_GetWidth(self
, *_args
, **_kwargs
)
44 def GetHeight(self
, *_args
, **_kwargs
):
45 val
= miscc
.wxSize_GetHeight(self
, *_args
, **_kwargs
)
47 def SetWidth(self
, *_args
, **_kwargs
):
48 val
= miscc
.wxSize_SetWidth(self
, *_args
, **_kwargs
)
50 def SetHeight(self
, *_args
, **_kwargs
):
51 val
= miscc
.wxSize_SetHeight(self
, *_args
, **_kwargs
)
53 def IncTo(self
, *_args
, **_kwargs
):
54 val
= miscc
.wxSize_IncTo(self
, *_args
, **_kwargs
)
56 def DecTo(self
, *_args
, **_kwargs
):
57 val
= miscc
.wxSize_DecTo(self
, *_args
, **_kwargs
)
59 def asTuple(self
, *_args
, **_kwargs
):
60 val
= miscc
.wxSize_asTuple(self
, *_args
, **_kwargs
)
62 def __eq__(self
, *_args
, **_kwargs
):
63 val
= miscc
.wxSize___eq__(self
, *_args
, **_kwargs
)
65 def __ne__(self
, *_args
, **_kwargs
):
66 val
= miscc
.wxSize___ne__(self
, *_args
, **_kwargs
)
68 def __setattr__(self
,name
,value
):
70 miscc
.wxSize_x_set(self
,value
)
73 miscc
.wxSize_y_set(self
,value
)
76 miscc
.wxSize_width_set(self
,value
)
79 miscc
.wxSize_height_set(self
,value
)
81 self
.__dict
__[name
] = value
82 def __getattr__(self
,name
):
84 return miscc
.wxSize_x_get(self
)
86 return miscc
.wxSize_y_get(self
)
88 return miscc
.wxSize_width_get(self
)
90 return miscc
.wxSize_height_get(self
)
91 raise AttributeError,name
93 return "<%s.%s instance; proxy of C++ wxSize instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
95 def __str__(self
): return str(self
.asTuple())
96 def __repr__(self
): return 'wxSize'+str(self
.asTuple())
97 def __len__(self
): return len(self
.asTuple())
98 def __getitem__(self
, index
): return self
.asTuple()[index
]
99 def __setitem__(self
, index
, val
):
100 if index
== 0: self
.width
= val
101 elif index
== 1: self
.height
= val
102 else: raise IndexError
103 def __nonzero__(self
): return self
.asTuple() != (0,0)
104 def __getinitargs__(self
): return ()
105 def __getstate__(self
): return self
.asTuple()
106 def __setstate__(self
, state
): self
.Set(*state
)
108 class wxSize(wxSizePtr
):
109 def __init__(self
,*_args
,**_kwargs
):
110 self
.this
= miscc
.new_wxSize(*_args
,**_kwargs
)
116 class wxRealPointPtr
:
117 def __init__(self
,this
):
120 def __del__(self
, delfunc
=miscc
.delete_wxRealPoint
):
121 if self
.thisown
== 1:
126 def Set(self
, *_args
, **_kwargs
):
127 val
= miscc
.wxRealPoint_Set(self
, *_args
, **_kwargs
)
129 def asTuple(self
, *_args
, **_kwargs
):
130 val
= miscc
.wxRealPoint_asTuple(self
, *_args
, **_kwargs
)
132 def __add__(self
, *_args
, **_kwargs
):
133 val
= miscc
.wxRealPoint___add__(self
, *_args
, **_kwargs
)
134 if val
: val
= wxRealPointPtr(val
) ; val
.thisown
= 1
136 def __sub__(self
, *_args
, **_kwargs
):
137 val
= miscc
.wxRealPoint___sub__(self
, *_args
, **_kwargs
)
138 if val
: val
= wxRealPointPtr(val
) ; val
.thisown
= 1
140 def __eq__(self
, *_args
, **_kwargs
):
141 val
= miscc
.wxRealPoint___eq__(self
, *_args
, **_kwargs
)
143 def __ne__(self
, *_args
, **_kwargs
):
144 val
= miscc
.wxRealPoint___ne__(self
, *_args
, **_kwargs
)
146 def __setattr__(self
,name
,value
):
148 miscc
.wxRealPoint_x_set(self
,value
)
151 miscc
.wxRealPoint_y_set(self
,value
)
153 self
.__dict
__[name
] = value
154 def __getattr__(self
,name
):
156 return miscc
.wxRealPoint_x_get(self
)
158 return miscc
.wxRealPoint_y_get(self
)
159 raise AttributeError,name
161 return "<%s.%s instance; proxy of C++ wxRealPoint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
163 def __str__(self
): return str(self
.asTuple())
164 def __repr__(self
): return 'wxRealPoint'+str(self
.asTuple())
165 def __len__(self
): return len(self
.asTuple())
166 def __getitem__(self
, index
): return self
.asTuple()[index
]
167 def __setitem__(self
, index
, val
):
168 if index
== 0: self
.width
= val
169 elif index
== 1: self
.height
= val
170 else: raise IndexError
171 def __nonzero__(self
): return self
.asTuple() != (0.0, 0.0)
172 def __getinitargs__(self
): return ()
173 def __getstate__(self
): return self
.asTuple()
174 def __setstate__(self
, state
): self
.Set(*state
)
176 class wxRealPoint(wxRealPointPtr
):
177 def __init__(self
,*_args
,**_kwargs
):
178 self
.this
= miscc
.new_wxRealPoint(*_args
,**_kwargs
)
185 def __init__(self
,this
):
188 def __del__(self
, delfunc
=miscc
.delete_wxPoint
):
189 if self
.thisown
== 1:
194 def Set(self
, *_args
, **_kwargs
):
195 val
= miscc
.wxPoint_Set(self
, *_args
, **_kwargs
)
197 def asTuple(self
, *_args
, **_kwargs
):
198 val
= miscc
.wxPoint_asTuple(self
, *_args
, **_kwargs
)
200 def __add__(self
, *_args
, **_kwargs
):
201 val
= miscc
.wxPoint___add__(self
, *_args
, **_kwargs
)
202 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
204 def __sub__(self
, *_args
, **_kwargs
):
205 val
= miscc
.wxPoint___sub__(self
, *_args
, **_kwargs
)
206 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
208 def __eq__(self
, *_args
, **_kwargs
):
209 val
= miscc
.wxPoint___eq__(self
, *_args
, **_kwargs
)
211 def __ne__(self
, *_args
, **_kwargs
):
212 val
= miscc
.wxPoint___ne__(self
, *_args
, **_kwargs
)
214 def __setattr__(self
,name
,value
):
216 miscc
.wxPoint_x_set(self
,value
)
219 miscc
.wxPoint_y_set(self
,value
)
221 self
.__dict
__[name
] = value
222 def __getattr__(self
,name
):
224 return miscc
.wxPoint_x_get(self
)
226 return miscc
.wxPoint_y_get(self
)
227 raise AttributeError,name
229 return "<%s.%s instance; proxy of C++ wxPoint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
231 def __str__(self
): return str(self
.asTuple())
232 def __repr__(self
): return 'wxPoint'+str(self
.asTuple())
233 def __len__(self
): return len(self
.asTuple())
234 def __getitem__(self
, index
): return self
.asTuple()[index
]
235 def __setitem__(self
, index
, val
):
236 if index
== 0: self
.x
= val
237 elif index
== 1: self
.y
= val
238 else: raise IndexError
239 def __nonzero__(self
): return self
.asTuple() != (0,0)
240 def __getinitargs__(self
): return ()
241 def __getstate__(self
): return self
.asTuple()
242 def __setstate__(self
, state
): self
.Set(*state
)
244 class wxPoint(wxPointPtr
):
245 def __init__(self
,*_args
,**_kwargs
):
246 self
.this
= miscc
.new_wxPoint(*_args
,**_kwargs
)
253 def __init__(self
,this
):
256 def __del__(self
, delfunc
=miscc
.delete_wxRect
):
257 if self
.thisown
== 1:
262 def GetX(self
, *_args
, **_kwargs
):
263 val
= miscc
.wxRect_GetX(self
, *_args
, **_kwargs
)
265 def SetX(self
, *_args
, **_kwargs
):
266 val
= miscc
.wxRect_SetX(self
, *_args
, **_kwargs
)
268 def GetY(self
, *_args
, **_kwargs
):
269 val
= miscc
.wxRect_GetY(self
, *_args
, **_kwargs
)
271 def SetY(self
, *_args
, **_kwargs
):
272 val
= miscc
.wxRect_SetY(self
, *_args
, **_kwargs
)
274 def GetWidth(self
, *_args
, **_kwargs
):
275 val
= miscc
.wxRect_GetWidth(self
, *_args
, **_kwargs
)
277 def SetWidth(self
, *_args
, **_kwargs
):
278 val
= miscc
.wxRect_SetWidth(self
, *_args
, **_kwargs
)
280 def GetHeight(self
, *_args
, **_kwargs
):
281 val
= miscc
.wxRect_GetHeight(self
, *_args
, **_kwargs
)
283 def SetHeight(self
, *_args
, **_kwargs
):
284 val
= miscc
.wxRect_SetHeight(self
, *_args
, **_kwargs
)
286 def GetPosition(self
, *_args
, **_kwargs
):
287 val
= miscc
.wxRect_GetPosition(self
, *_args
, **_kwargs
)
288 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
290 def GetSize(self
, *_args
, **_kwargs
):
291 val
= miscc
.wxRect_GetSize(self
, *_args
, **_kwargs
)
292 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
294 def SetPosition(self
, *_args
, **_kwargs
):
295 val
= miscc
.wxRect_SetPosition(self
, *_args
, **_kwargs
)
297 def SetSize(self
, *_args
, **_kwargs
):
298 val
= miscc
.wxRect_SetSize(self
, *_args
, **_kwargs
)
300 def GetLeft(self
, *_args
, **_kwargs
):
301 val
= miscc
.wxRect_GetLeft(self
, *_args
, **_kwargs
)
303 def GetTop(self
, *_args
, **_kwargs
):
304 val
= miscc
.wxRect_GetTop(self
, *_args
, **_kwargs
)
306 def GetBottom(self
, *_args
, **_kwargs
):
307 val
= miscc
.wxRect_GetBottom(self
, *_args
, **_kwargs
)
309 def GetRight(self
, *_args
, **_kwargs
):
310 val
= miscc
.wxRect_GetRight(self
, *_args
, **_kwargs
)
312 def SetLeft(self
, *_args
, **_kwargs
):
313 val
= miscc
.wxRect_SetLeft(self
, *_args
, **_kwargs
)
315 def SetRight(self
, *_args
, **_kwargs
):
316 val
= miscc
.wxRect_SetRight(self
, *_args
, **_kwargs
)
318 def SetTop(self
, *_args
, **_kwargs
):
319 val
= miscc
.wxRect_SetTop(self
, *_args
, **_kwargs
)
321 def SetBottom(self
, *_args
, **_kwargs
):
322 val
= miscc
.wxRect_SetBottom(self
, *_args
, **_kwargs
)
324 def Deflate(self
, *_args
, **_kwargs
):
325 val
= miscc
.wxRect_Deflate(self
, *_args
, **_kwargs
)
327 def Inflate(self
, *_args
, **_kwargs
):
328 val
= miscc
.wxRect_Inflate(self
, *_args
, **_kwargs
)
330 def InsideXY(self
, *_args
, **_kwargs
):
331 val
= miscc
.wxRect_InsideXY(self
, *_args
, **_kwargs
)
333 def Inside(self
, *_args
, **_kwargs
):
334 val
= miscc
.wxRect_Inside(self
, *_args
, **_kwargs
)
336 def Intersects(self
, *_args
, **_kwargs
):
337 val
= miscc
.wxRect_Intersects(self
, *_args
, **_kwargs
)
339 def OffsetXY(self
, *_args
, **_kwargs
):
340 val
= miscc
.wxRect_OffsetXY(self
, *_args
, **_kwargs
)
342 def Offset(self
, *_args
, **_kwargs
):
343 val
= miscc
.wxRect_Offset(self
, *_args
, **_kwargs
)
345 def Set(self
, *_args
, **_kwargs
):
346 val
= miscc
.wxRect_Set(self
, *_args
, **_kwargs
)
348 def asTuple(self
, *_args
, **_kwargs
):
349 val
= miscc
.wxRect_asTuple(self
, *_args
, **_kwargs
)
351 def __add__(self
, *_args
, **_kwargs
):
352 val
= miscc
.wxRect___add__(self
, *_args
, **_kwargs
)
353 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
355 def __eq__(self
, *_args
, **_kwargs
):
356 val
= miscc
.wxRect___eq__(self
, *_args
, **_kwargs
)
358 def __ne__(self
, *_args
, **_kwargs
):
359 val
= miscc
.wxRect___ne__(self
, *_args
, **_kwargs
)
361 def __setattr__(self
,name
,value
):
363 miscc
.wxRect_x_set(self
,value
)
366 miscc
.wxRect_y_set(self
,value
)
369 miscc
.wxRect_width_set(self
,value
)
371 if name
== "height" :
372 miscc
.wxRect_height_set(self
,value
)
374 self
.__dict
__[name
] = value
375 def __getattr__(self
,name
):
377 return miscc
.wxRect_x_get(self
)
379 return miscc
.wxRect_y_get(self
)
381 return miscc
.wxRect_width_get(self
)
382 if name
== "height" :
383 return miscc
.wxRect_height_get(self
)
384 raise AttributeError,name
386 return "<%s.%s instance; proxy of C++ wxRect instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
388 def __str__(self
): return str(self
.asTuple())
389 def __repr__(self
): return 'wxRect'+str(self
.asTuple())
390 def __len__(self
): return len(self
.asTuple())
391 def __getitem__(self
, index
): return self
.asTuple()[index
]
392 def __setitem__(self
, index
, val
):
393 if index
== 0: self
.x
= val
394 elif index
== 1: self
.y
= val
395 elif index
== 2: self
.width
= val
396 elif index
== 3: self
.height
= val
397 else: raise IndexError
398 def __nonzero__(self
): return self
.asTuple() != (0,0,0,0)
399 def __getinitargs__(self
): return ()
400 def __getstate__(self
): return self
.asTuple()
401 def __setstate__(self
, state
): self
.Set(*state
)
403 # override the __getattr__ made by SWIG
404 def __getattr__(self
, name
):
406 'x' : miscc
.wxRect_x_get
,
407 'y' : miscc
.wxRect_y_get
,
408 'width' : miscc
.wxRect_width_get
,
409 'height' : miscc
.wxRect_height_get
,
410 'top' : miscc
.wxRect_GetTop
,
411 'bottom' : miscc
.wxRect_GetBottom
,
412 'left' : miscc
.wxRect_GetLeft
,
413 'right' : miscc
.wxRect_GetRight
,
418 raise AttributeError,name
421 # and also the __setattr__
422 def __setattr__(self
, name
, value
):
424 'x' : miscc
.wxRect_x_set
,
425 'y' : miscc
.wxRect_y_set
,
426 'width' : miscc
.wxRect_width_set
,
427 'height' : miscc
.wxRect_height_set
,
428 'top' : miscc
.wxRect_SetTop
,
429 'bottom' : miscc
.wxRect_SetBottom
,
430 'left' : miscc
.wxRect_SetLeft
,
431 'right' : miscc
.wxRect_SetRight
,
436 self
.__dict
__[name
] = value
440 class wxRect(wxRectPtr
):
441 def __init__(self
,*_args
,**_kwargs
):
442 self
.this
= miscc
.new_wxRect(*_args
,**_kwargs
)
448 class wxPoint2DDoublePtr
:
449 def __init__(self
,this
):
452 def GetFloor(self
, *_args
, **_kwargs
):
453 val
= miscc
.wxPoint2DDouble_GetFloor(self
, *_args
, **_kwargs
)
455 def GetRounded(self
, *_args
, **_kwargs
):
456 val
= miscc
.wxPoint2DDouble_GetRounded(self
, *_args
, **_kwargs
)
458 def GetVectorLength(self
, *_args
, **_kwargs
):
459 val
= miscc
.wxPoint2DDouble_GetVectorLength(self
, *_args
, **_kwargs
)
461 def GetVectorAngle(self
, *_args
, **_kwargs
):
462 val
= miscc
.wxPoint2DDouble_GetVectorAngle(self
, *_args
, **_kwargs
)
464 def SetVectorLength(self
, *_args
, **_kwargs
):
465 val
= miscc
.wxPoint2DDouble_SetVectorLength(self
, *_args
, **_kwargs
)
467 def SetVectorAngle(self
, *_args
, **_kwargs
):
468 val
= miscc
.wxPoint2DDouble_SetVectorAngle(self
, *_args
, **_kwargs
)
470 def GetDistance(self
, *_args
, **_kwargs
):
471 val
= miscc
.wxPoint2DDouble_GetDistance(self
, *_args
, **_kwargs
)
473 def GetDistanceSquare(self
, *_args
, **_kwargs
):
474 val
= miscc
.wxPoint2DDouble_GetDistanceSquare(self
, *_args
, **_kwargs
)
476 def GetDotProduct(self
, *_args
, **_kwargs
):
477 val
= miscc
.wxPoint2DDouble_GetDotProduct(self
, *_args
, **_kwargs
)
479 def GetCrossProduct(self
, *_args
, **_kwargs
):
480 val
= miscc
.wxPoint2DDouble_GetCrossProduct(self
, *_args
, **_kwargs
)
482 def Set(self
, *_args
, **_kwargs
):
483 val
= miscc
.wxPoint2DDouble_Set(self
, *_args
, **_kwargs
)
485 def __neg__(self
, *_args
, **_kwargs
):
486 val
= miscc
.wxPoint2DDouble___neg__(self
, *_args
, **_kwargs
)
487 if val
: val
= wxPoint2DDoublePtr(val
) ; val
.thisown
= 1
489 def __iadd__(self
, *_args
, **_kwargs
):
490 val
= miscc
.wxPoint2DDouble___iadd__(self
, *_args
, **_kwargs
)
491 if val
: val
= wxPoint2DDoublePtr(val
)
493 def __isub__(self
, *_args
, **_kwargs
):
494 val
= miscc
.wxPoint2DDouble___isub__(self
, *_args
, **_kwargs
)
495 if val
: val
= wxPoint2DDoublePtr(val
)
497 def __imul__(self
, *_args
, **_kwargs
):
498 val
= miscc
.wxPoint2DDouble___imul__(self
, *_args
, **_kwargs
)
499 if val
: val
= wxPoint2DDoublePtr(val
)
501 def __idiv__(self
, *_args
, **_kwargs
):
502 val
= miscc
.wxPoint2DDouble___idiv__(self
, *_args
, **_kwargs
)
503 if val
: val
= wxPoint2DDoublePtr(val
)
505 def __eq__(self
, *_args
, **_kwargs
):
506 val
= miscc
.wxPoint2DDouble___eq__(self
, *_args
, **_kwargs
)
508 def __ne__(self
, *_args
, **_kwargs
):
509 val
= miscc
.wxPoint2DDouble___ne__(self
, *_args
, **_kwargs
)
511 def asTuple(self
, *_args
, **_kwargs
):
512 val
= miscc
.wxPoint2DDouble_asTuple(self
, *_args
, **_kwargs
)
514 def __setattr__(self
,name
,value
):
516 miscc
.wxPoint2DDouble_m_x_set(self
,value
)
519 miscc
.wxPoint2DDouble_m_y_set(self
,value
)
522 miscc
.wxPoint2DDouble_x_set(self
,value
)
525 miscc
.wxPoint2DDouble_y_set(self
,value
)
527 self
.__dict
__[name
] = value
528 def __getattr__(self
,name
):
530 return miscc
.wxPoint2DDouble_m_x_get(self
)
532 return miscc
.wxPoint2DDouble_m_y_get(self
)
534 return miscc
.wxPoint2DDouble_x_get(self
)
536 return miscc
.wxPoint2DDouble_y_get(self
)
537 raise AttributeError,name
539 return "<%s.%s instance; proxy of C++ wxPoint2DDouble instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
541 def SetPolarCoordinates(self
, angle
, length
):
542 self
.SetVectorLength(length
)
543 self
.SetVectorAngle(angle
)
545 self
.SetVectorLength(1.0)
548 def __str__(self
): return str(self
.asTuple())
549 def __repr__(self
): return 'wxPoint2DDouble'+str(self
.asTuple())
550 def __len__(self
): return len(self
.asTuple())
551 def __getitem__(self
, index
): return self
.asTuple()[index
]
552 def __setitem__(self
, index
, val
):
553 if index
== 0: self
.m_x
= val
554 elif index
== 1: self
.m_yt
= val
555 else: raise IndexError
556 def __nonzero__(self
): return self
.asTuple() != (0.0, 0.0)
557 def __getinitargs__(self
): return ()
558 def __getstate__(self
): return self
.asTuple()
559 def __setstate__(self
, state
): self
.Set(*state
)
561 class wxPoint2DDouble(wxPoint2DDoublePtr
):
562 def __init__(self
,*_args
,**_kwargs
):
563 self
.this
= miscc
.new_wxPoint2DDouble(*_args
,**_kwargs
)
568 def wxPoint2DDoubleCopy(*_args
,**_kwargs
):
569 val
= wxPoint2DDoublePtr(miscc
.new_wxPoint2DDoubleCopy(*_args
,**_kwargs
))
573 def wxPoint2DDoubleFromPoint(*_args
,**_kwargs
):
574 val
= wxPoint2DDoublePtr(miscc
.new_wxPoint2DDoubleFromPoint(*_args
,**_kwargs
))
579 class wxIndividualLayoutConstraintPtr(wxObjectPtr
):
580 def __init__(self
,this
):
583 def Above(self
, *_args
, **_kwargs
):
584 val
= miscc
.wxIndividualLayoutConstraint_Above(self
, *_args
, **_kwargs
)
586 def Absolute(self
, *_args
, **_kwargs
):
587 val
= miscc
.wxIndividualLayoutConstraint_Absolute(self
, *_args
, **_kwargs
)
589 def AsIs(self
, *_args
, **_kwargs
):
590 val
= miscc
.wxIndividualLayoutConstraint_AsIs(self
, *_args
, **_kwargs
)
592 def Below(self
, *_args
, **_kwargs
):
593 val
= miscc
.wxIndividualLayoutConstraint_Below(self
, *_args
, **_kwargs
)
595 def Unconstrained(self
, *_args
, **_kwargs
):
596 val
= miscc
.wxIndividualLayoutConstraint_Unconstrained(self
, *_args
, **_kwargs
)
598 def LeftOf(self
, *_args
, **_kwargs
):
599 val
= miscc
.wxIndividualLayoutConstraint_LeftOf(self
, *_args
, **_kwargs
)
601 def PercentOf(self
, *_args
, **_kwargs
):
602 val
= miscc
.wxIndividualLayoutConstraint_PercentOf(self
, *_args
, **_kwargs
)
604 def RightOf(self
, *_args
, **_kwargs
):
605 val
= miscc
.wxIndividualLayoutConstraint_RightOf(self
, *_args
, **_kwargs
)
607 def SameAs(self
, *_args
, **_kwargs
):
608 val
= miscc
.wxIndividualLayoutConstraint_SameAs(self
, *_args
, **_kwargs
)
610 def Set(self
, *_args
, **_kwargs
):
611 val
= miscc
.wxIndividualLayoutConstraint_Set(self
, *_args
, **_kwargs
)
614 return "<%s.%s instance; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
615 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr
):
616 def __init__(self
,this
):
622 class wxLayoutConstraintsPtr(wxObjectPtr
):
623 def __init__(self
,this
):
626 def __setattr__(self
,name
,value
):
627 if name
== "bottom" :
628 miscc
.wxLayoutConstraints_bottom_set(self
,value
.this
)
630 if name
== "centreX" :
631 miscc
.wxLayoutConstraints_centreX_set(self
,value
.this
)
633 if name
== "centreY" :
634 miscc
.wxLayoutConstraints_centreY_set(self
,value
.this
)
636 if name
== "height" :
637 miscc
.wxLayoutConstraints_height_set(self
,value
.this
)
640 miscc
.wxLayoutConstraints_left_set(self
,value
.this
)
643 miscc
.wxLayoutConstraints_right_set(self
,value
.this
)
646 miscc
.wxLayoutConstraints_top_set(self
,value
.this
)
649 miscc
.wxLayoutConstraints_width_set(self
,value
.this
)
651 self
.__dict
__[name
] = value
652 def __getattr__(self
,name
):
653 if name
== "bottom" :
654 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_bottom_get(self
))
655 if name
== "centreX" :
656 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreX_get(self
))
657 if name
== "centreY" :
658 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreY_get(self
))
659 if name
== "height" :
660 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_height_get(self
))
662 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_left_get(self
))
664 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_right_get(self
))
666 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_top_get(self
))
668 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_width_get(self
))
669 raise AttributeError,name
671 return "<%s.%s instance; proxy of C++ wxLayoutConstraints instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
672 class wxLayoutConstraints(wxLayoutConstraintsPtr
):
673 def __init__(self
,*_args
,**_kwargs
):
674 self
.this
= miscc
.new_wxLayoutConstraints(*_args
,**_kwargs
)
680 class wxAcceleratorEntryPtr
:
681 def __init__(self
,this
):
684 def __del__(self
, delfunc
=miscc
.delete_wxAcceleratorEntry
):
685 if self
.thisown
== 1:
690 def Set(self
, *_args
, **_kwargs
):
691 val
= miscc
.wxAcceleratorEntry_Set(self
, *_args
, **_kwargs
)
693 def GetFlags(self
, *_args
, **_kwargs
):
694 val
= miscc
.wxAcceleratorEntry_GetFlags(self
, *_args
, **_kwargs
)
696 def GetKeyCode(self
, *_args
, **_kwargs
):
697 val
= miscc
.wxAcceleratorEntry_GetKeyCode(self
, *_args
, **_kwargs
)
699 def GetCommand(self
, *_args
, **_kwargs
):
700 val
= miscc
.wxAcceleratorEntry_GetCommand(self
, *_args
, **_kwargs
)
703 return "<%s.%s instance; proxy of C++ wxAcceleratorEntry instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
704 class wxAcceleratorEntry(wxAcceleratorEntryPtr
):
705 def __init__(self
,*_args
,**_kwargs
):
706 self
.this
= miscc
.new_wxAcceleratorEntry(*_args
,**_kwargs
)
712 class wxAcceleratorTablePtr(wxObjectPtr
):
713 def __init__(self
,this
):
716 def __del__(self
, delfunc
=miscc
.delete_wxAcceleratorTable
):
717 if self
.thisown
== 1:
723 return "<%s.%s instance; proxy of C++ wxAcceleratorTable instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
724 class wxAcceleratorTable(wxAcceleratorTablePtr
):
725 def __init__(self
,*_args
,**_kwargs
):
726 self
.this
= miscc
.new_wxAcceleratorTable(*_args
,**_kwargs
)
732 class wxBusyInfoPtr(wxObjectPtr
):
733 def __init__(self
,this
):
736 def __del__(self
, delfunc
=miscc
.delete_wxBusyInfo
):
737 if self
.thisown
== 1:
743 return "<%s.%s instance; proxy of C++ wxBusyInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
744 class wxBusyInfo(wxBusyInfoPtr
):
745 def __init__(self
,*_args
,**_kwargs
):
746 self
.this
= miscc
.new_wxBusyInfo(*_args
,**_kwargs
)
754 #-------------- FUNCTION WRAPPERS ------------------
756 wxIntersectRect
= miscc
.wxIntersectRect
758 wxNewId
= miscc
.wxNewId
760 wxRegisterId
= miscc
.wxRegisterId
762 wxGetCurrentId
= miscc
.wxGetCurrentId
764 wxBell
= miscc
.wxBell
766 wxEndBusyCursor
= miscc
.wxEndBusyCursor
768 wxGetElapsedTime
= miscc
.wxGetElapsedTime
770 wxGetMousePosition
= miscc
.wxGetMousePosition
772 wxIsBusy
= miscc
.wxIsBusy
776 wxShell
= miscc
.wxShell
778 wxStartTimer
= miscc
.wxStartTimer
780 wxGetOsVersion
= miscc
.wxGetOsVersion
782 wxGetOsDescription
= miscc
.wxGetOsDescription
784 wxShutdown
= miscc
.wxShutdown
786 wxSleep
= miscc
.wxSleep
788 wxUsleep
= miscc
.wxUsleep
790 wxYield
= miscc
.wxYield
792 wxYieldIfNeeded
= miscc
.wxYieldIfNeeded
794 wxEnableTopLevelWindows
= miscc
.wxEnableTopLevelWindows
796 wxStripMenuCodes
= miscc
.wxStripMenuCodes
798 wxGetEmailAddress
= miscc
.wxGetEmailAddress
800 wxGetHostName
= miscc
.wxGetHostName
802 wxGetFullHostName
= miscc
.wxGetFullHostName
804 wxGetUserId
= miscc
.wxGetUserId
806 wxGetUserName
= miscc
.wxGetUserName
808 wxGetHomeDir
= miscc
.wxGetHomeDir
810 wxGetUserHome
= miscc
.wxGetUserHome
812 wxGetProcessId
= miscc
.wxGetProcessId
814 wxTrap
= miscc
.wxTrap
816 def wxGetAccelFromString(*_args
, **_kwargs
):
817 val
= miscc
.wxGetAccelFromString(*_args
,**_kwargs
)
818 if val
: val
= wxAcceleratorEntryPtr(val
)
823 #-------------- VARIABLE WRAPPERS ------------------
825 wxSHUTDOWN_POWEROFF
= miscc
.wxSHUTDOWN_POWEROFF
826 wxSHUTDOWN_REBOOT
= miscc
.wxSHUTDOWN_REBOOT
827 wxLeft
= miscc
.wxLeft
829 wxRight
= miscc
.wxRight
830 wxBottom
= miscc
.wxBottom
831 wxWidth
= miscc
.wxWidth
832 wxHeight
= miscc
.wxHeight
833 wxCentre
= miscc
.wxCentre
834 wxCenter
= miscc
.wxCenter
835 wxCentreX
= miscc
.wxCentreX
836 wxCentreY
= miscc
.wxCentreY
837 wxUnconstrained
= miscc
.wxUnconstrained
838 wxAsIs
= miscc
.wxAsIs
839 wxPercentOf
= miscc
.wxPercentOf
840 wxAbove
= miscc
.wxAbove
841 wxBelow
= miscc
.wxBelow
842 wxLeftOf
= miscc
.wxLeftOf
843 wxRightOf
= miscc
.wxRightOf
844 wxSameAs
= miscc
.wxSameAs
845 wxAbsolute
= miscc
.wxAbsolute
847 wxNullAcceleratorTable
= wxAcceleratorTablePtr(miscc
.cvar
.wxNullAcceleratorTable
)