1 # This file was created automatically by SWIG.
4 def __init__(self
,this
):
7 def GetClassName(self
, *_args
, **_kwargs
):
8 val
= apply(miscc
.wxObject_GetClassName
,(self
,) + _args
, _kwargs
)
10 def Destroy(self
, *_args
, **_kwargs
):
11 val
= apply(miscc
.wxObject_Destroy
,(self
,) + _args
, _kwargs
)
14 return "<C wxObject instance at %s>" % (self
.this
,)
15 class wxObject(wxObjectPtr
):
16 def __init__(self
,this
):
23 def __init__(self
,this
):
26 def __del__(self
,miscc
=miscc
):
27 if self
.thisown
== 1 :
28 miscc
.delete_wxSize(self
)
29 def Set(self
, *_args
, **_kwargs
):
30 val
= apply(miscc
.wxSize_Set
,(self
,) + _args
, _kwargs
)
32 def GetX(self
, *_args
, **_kwargs
):
33 val
= apply(miscc
.wxSize_GetX
,(self
,) + _args
, _kwargs
)
35 def GetY(self
, *_args
, **_kwargs
):
36 val
= apply(miscc
.wxSize_GetY
,(self
,) + _args
, _kwargs
)
38 def GetWidth(self
, *_args
, **_kwargs
):
39 val
= apply(miscc
.wxSize_GetWidth
,(self
,) + _args
, _kwargs
)
41 def GetHeight(self
, *_args
, **_kwargs
):
42 val
= apply(miscc
.wxSize_GetHeight
,(self
,) + _args
, _kwargs
)
44 def SetWidth(self
, *_args
, **_kwargs
):
45 val
= apply(miscc
.wxSize_SetWidth
,(self
,) + _args
, _kwargs
)
47 def SetHeight(self
, *_args
, **_kwargs
):
48 val
= apply(miscc
.wxSize_SetHeight
,(self
,) + _args
, _kwargs
)
50 def asTuple(self
, *_args
, **_kwargs
):
51 val
= apply(miscc
.wxSize_asTuple
,(self
,) + _args
, _kwargs
)
53 def __cmp__(self
, *_args
, **_kwargs
):
54 val
= apply(miscc
.wxSize___cmp__
,(self
,) + _args
, _kwargs
)
56 def __setattr__(self
,name
,value
):
58 miscc
.wxSize_x_set(self
,value
)
61 miscc
.wxSize_y_set(self
,value
)
64 miscc
.wxSize_width_set(self
,value
)
67 miscc
.wxSize_height_set(self
,value
)
69 self
.__dict
__[name
] = value
70 def __getattr__(self
,name
):
72 return miscc
.wxSize_x_get(self
)
74 return miscc
.wxSize_y_get(self
)
76 return miscc
.wxSize_width_get(self
)
78 return miscc
.wxSize_height_get(self
)
79 raise AttributeError,name
81 return "<C wxSize instance at %s>" % (self
.this
,)
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
92 class wxSize(wxSizePtr
):
93 def __init__(self
,*_args
,**_kwargs
):
94 self
.this
= apply(miscc
.new_wxSize
,_args
,_kwargs
)
100 class wxRealPointPtr
:
101 def __init__(self
,this
):
104 def __del__(self
,miscc
=miscc
):
105 if self
.thisown
== 1 :
106 miscc
.delete_wxRealPoint(self
)
107 def Set(self
, *_args
, **_kwargs
):
108 val
= apply(miscc
.wxRealPoint_Set
,(self
,) + _args
, _kwargs
)
110 def asTuple(self
, *_args
, **_kwargs
):
111 val
= apply(miscc
.wxRealPoint_asTuple
,(self
,) + _args
, _kwargs
)
113 def __add__(self
, *_args
, **_kwargs
):
114 val
= apply(miscc
.wxRealPoint___add__
,(self
,) + _args
, _kwargs
)
115 if val
: val
= wxRealPointPtr(val
) ; val
.thisown
= 1
117 def __sub__(self
, *_args
, **_kwargs
):
118 val
= apply(miscc
.wxRealPoint___sub__
,(self
,) + _args
, _kwargs
)
119 if val
: val
= wxRealPointPtr(val
) ; val
.thisown
= 1
121 def __cmp__(self
, *_args
, **_kwargs
):
122 val
= apply(miscc
.wxRealPoint___cmp__
,(self
,) + _args
, _kwargs
)
124 def __setattr__(self
,name
,value
):
126 miscc
.wxRealPoint_x_set(self
,value
)
129 miscc
.wxRealPoint_y_set(self
,value
)
131 self
.__dict
__[name
] = value
132 def __getattr__(self
,name
):
134 return miscc
.wxRealPoint_x_get(self
)
136 return miscc
.wxRealPoint_y_get(self
)
137 raise AttributeError,name
139 return "<C wxRealPoint instance at %s>" % (self
.this
,)
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
150 class wxRealPoint(wxRealPointPtr
):
151 def __init__(self
,*_args
,**_kwargs
):
152 self
.this
= apply(miscc
.new_wxRealPoint
,_args
,_kwargs
)
159 def __init__(self
,this
):
162 def __del__(self
,miscc
=miscc
):
163 if self
.thisown
== 1 :
164 miscc
.delete_wxPoint(self
)
165 def Set(self
, *_args
, **_kwargs
):
166 val
= apply(miscc
.wxPoint_Set
,(self
,) + _args
, _kwargs
)
168 def asTuple(self
, *_args
, **_kwargs
):
169 val
= apply(miscc
.wxPoint_asTuple
,(self
,) + _args
, _kwargs
)
171 def __add__(self
, *_args
, **_kwargs
):
172 val
= apply(miscc
.wxPoint___add__
,(self
,) + _args
, _kwargs
)
173 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
175 def __sub__(self
, *_args
, **_kwargs
):
176 val
= apply(miscc
.wxPoint___sub__
,(self
,) + _args
, _kwargs
)
177 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
179 def __cmp__(self
, *_args
, **_kwargs
):
180 val
= apply(miscc
.wxPoint___cmp__
,(self
,) + _args
, _kwargs
)
182 def __setattr__(self
,name
,value
):
184 miscc
.wxPoint_x_set(self
,value
)
187 miscc
.wxPoint_y_set(self
,value
)
189 self
.__dict
__[name
] = value
190 def __getattr__(self
,name
):
192 return miscc
.wxPoint_x_get(self
)
194 return miscc
.wxPoint_y_get(self
)
195 raise AttributeError,name
197 return "<C wxPoint instance at %s>" % (self
.this
,)
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
208 class wxPoint(wxPointPtr
):
209 def __init__(self
,*_args
,**_kwargs
):
210 self
.this
= apply(miscc
.new_wxPoint
,_args
,_kwargs
)
217 def __init__(self
,this
):
220 def __del__(self
,miscc
=miscc
):
221 if self
.thisown
== 1 :
222 miscc
.delete_wxRect(self
)
223 def GetX(self
, *_args
, **_kwargs
):
224 val
= apply(miscc
.wxRect_GetX
,(self
,) + _args
, _kwargs
)
226 def SetX(self
, *_args
, **_kwargs
):
227 val
= apply(miscc
.wxRect_SetX
,(self
,) + _args
, _kwargs
)
229 def GetY(self
, *_args
, **_kwargs
):
230 val
= apply(miscc
.wxRect_GetY
,(self
,) + _args
, _kwargs
)
232 def SetY(self
, *_args
, **_kwargs
):
233 val
= apply(miscc
.wxRect_SetY
,(self
,) + _args
, _kwargs
)
235 def GetWidth(self
, *_args
, **_kwargs
):
236 val
= apply(miscc
.wxRect_GetWidth
,(self
,) + _args
, _kwargs
)
238 def SetWidth(self
, *_args
, **_kwargs
):
239 val
= apply(miscc
.wxRect_SetWidth
,(self
,) + _args
, _kwargs
)
241 def GetHeight(self
, *_args
, **_kwargs
):
242 val
= apply(miscc
.wxRect_GetHeight
,(self
,) + _args
, _kwargs
)
244 def SetHeight(self
, *_args
, **_kwargs
):
245 val
= apply(miscc
.wxRect_SetHeight
,(self
,) + _args
, _kwargs
)
247 def GetPosition(self
, *_args
, **_kwargs
):
248 val
= apply(miscc
.wxRect_GetPosition
,(self
,) + _args
, _kwargs
)
249 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
251 def GetSize(self
, *_args
, **_kwargs
):
252 val
= apply(miscc
.wxRect_GetSize
,(self
,) + _args
, _kwargs
)
253 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
255 def GetLeft(self
, *_args
, **_kwargs
):
256 val
= apply(miscc
.wxRect_GetLeft
,(self
,) + _args
, _kwargs
)
258 def GetTop(self
, *_args
, **_kwargs
):
259 val
= apply(miscc
.wxRect_GetTop
,(self
,) + _args
, _kwargs
)
261 def GetBottom(self
, *_args
, **_kwargs
):
262 val
= apply(miscc
.wxRect_GetBottom
,(self
,) + _args
, _kwargs
)
264 def GetRight(self
, *_args
, **_kwargs
):
265 val
= apply(miscc
.wxRect_GetRight
,(self
,) + _args
, _kwargs
)
267 def SetLeft(self
, *_args
, **_kwargs
):
268 val
= apply(miscc
.wxRect_SetLeft
,(self
,) + _args
, _kwargs
)
270 def SetRight(self
, *_args
, **_kwargs
):
271 val
= apply(miscc
.wxRect_SetRight
,(self
,) + _args
, _kwargs
)
273 def SetTop(self
, *_args
, **_kwargs
):
274 val
= apply(miscc
.wxRect_SetTop
,(self
,) + _args
, _kwargs
)
276 def SetBottom(self
, *_args
, **_kwargs
):
277 val
= apply(miscc
.wxRect_SetBottom
,(self
,) + _args
, _kwargs
)
279 def Inflate(self
, *_args
, **_kwargs
):
280 val
= apply(miscc
.wxRect_Inflate
,(self
,) + _args
, _kwargs
)
282 def Inside(self
, *_args
, **_kwargs
):
283 val
= apply(miscc
.wxRect_Inside
,(self
,) + _args
, _kwargs
)
285 def asTuple(self
, *_args
, **_kwargs
):
286 val
= apply(miscc
.wxRect_asTuple
,(self
,) + _args
, _kwargs
)
288 def __add__(self
, *_args
, **_kwargs
):
289 val
= apply(miscc
.wxRect___add__
,(self
,) + _args
, _kwargs
)
290 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
292 def __cmp__(self
, *_args
, **_kwargs
):
293 val
= apply(miscc
.wxRect___cmp__
,(self
,) + _args
, _kwargs
)
295 def __setattr__(self
,name
,value
):
297 miscc
.wxRect_x_set(self
,value
)
300 miscc
.wxRect_y_set(self
,value
)
303 miscc
.wxRect_width_set(self
,value
)
305 if name
== "height" :
306 miscc
.wxRect_height_set(self
,value
)
308 self
.__dict
__[name
] = value
309 def __getattr__(self
,name
):
311 return miscc
.wxRect_x_get(self
)
313 return miscc
.wxRect_y_get(self
)
315 return miscc
.wxRect_width_get(self
)
316 if name
== "height" :
317 return miscc
.wxRect_height_get(self
)
318 raise AttributeError,name
320 return "<C wxRect instance at %s>" % (self
.this
,)
322 def __str__(self
): return str(self
.asTuple())
323 def __repr__(self
): return str(self
.asTuple())
324 def __len__(self
): return len(self
.asTuple())
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
333 # override the __getattr__ made by SWIG
334 def __getattr__(self
, name
):
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
,
348 raise AttributeError,name
351 # and also the __setattr__
352 def __setattr__(self
, name
, value
):
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
,
366 self
.__dict
__[name
] = value
370 class wxRect(wxRectPtr
):
371 def __init__(self
,*_args
,**_kwargs
):
372 self
.this
= apply(miscc
.new_wxRect
,_args
,_kwargs
)
378 class wxIndividualLayoutConstraintPtr(wxObjectPtr
):
379 def __init__(self
,this
):
382 def Above(self
, *_args
, **_kwargs
):
383 val
= apply(miscc
.wxIndividualLayoutConstraint_Above
,(self
,) + _args
, _kwargs
)
385 def Absolute(self
, *_args
, **_kwargs
):
386 val
= apply(miscc
.wxIndividualLayoutConstraint_Absolute
,(self
,) + _args
, _kwargs
)
388 def AsIs(self
, *_args
, **_kwargs
):
389 val
= apply(miscc
.wxIndividualLayoutConstraint_AsIs
,(self
,) + _args
, _kwargs
)
391 def Below(self
, *_args
, **_kwargs
):
392 val
= apply(miscc
.wxIndividualLayoutConstraint_Below
,(self
,) + _args
, _kwargs
)
394 def Unconstrained(self
, *_args
, **_kwargs
):
395 val
= apply(miscc
.wxIndividualLayoutConstraint_Unconstrained
,(self
,) + _args
, _kwargs
)
397 def LeftOf(self
, *_args
, **_kwargs
):
398 val
= apply(miscc
.wxIndividualLayoutConstraint_LeftOf
,(self
,) + _args
, _kwargs
)
400 def PercentOf(self
, *_args
, **_kwargs
):
401 val
= apply(miscc
.wxIndividualLayoutConstraint_PercentOf
,(self
,) + _args
, _kwargs
)
403 def RightOf(self
, *_args
, **_kwargs
):
404 val
= apply(miscc
.wxIndividualLayoutConstraint_RightOf
,(self
,) + _args
, _kwargs
)
406 def SameAs(self
, *_args
, **_kwargs
):
407 val
= apply(miscc
.wxIndividualLayoutConstraint_SameAs
,(self
,) + _args
, _kwargs
)
409 def Set(self
, *_args
, **_kwargs
):
410 val
= apply(miscc
.wxIndividualLayoutConstraint_Set
,(self
,) + _args
, _kwargs
)
413 return "<C wxIndividualLayoutConstraint instance at %s>" % (self
.this
,)
414 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr
):
415 def __init__(self
,this
):
421 class wxLayoutConstraintsPtr(wxObjectPtr
):
422 def __init__(self
,this
):
425 def __setattr__(self
,name
,value
):
426 if name
== "bottom" :
427 miscc
.wxLayoutConstraints_bottom_set(self
,value
.this
)
429 if name
== "centreX" :
430 miscc
.wxLayoutConstraints_centreX_set(self
,value
.this
)
432 if name
== "centreY" :
433 miscc
.wxLayoutConstraints_centreY_set(self
,value
.this
)
435 if name
== "height" :
436 miscc
.wxLayoutConstraints_height_set(self
,value
.this
)
439 miscc
.wxLayoutConstraints_left_set(self
,value
.this
)
442 miscc
.wxLayoutConstraints_right_set(self
,value
.this
)
445 miscc
.wxLayoutConstraints_top_set(self
,value
.this
)
448 miscc
.wxLayoutConstraints_width_set(self
,value
.this
)
450 self
.__dict
__[name
] = value
451 def __getattr__(self
,name
):
452 if name
== "bottom" :
453 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_bottom_get(self
))
454 if name
== "centreX" :
455 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreX_get(self
))
456 if name
== "centreY" :
457 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreY_get(self
))
458 if name
== "height" :
459 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_height_get(self
))
461 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_left_get(self
))
463 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_right_get(self
))
465 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_top_get(self
))
467 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_width_get(self
))
468 raise AttributeError,name
470 return "<C wxLayoutConstraints instance at %s>" % (self
.this
,)
471 class wxLayoutConstraints(wxLayoutConstraintsPtr
):
472 def __init__(self
,*_args
,**_kwargs
):
473 self
.this
= apply(miscc
.new_wxLayoutConstraints
,_args
,_kwargs
)
479 class wxAcceleratorEntryPtr
:
480 def __init__(self
,this
):
483 def __del__(self
,miscc
=miscc
):
484 if self
.thisown
== 1 :
485 miscc
.delete_wxAcceleratorEntry(self
)
486 def Set(self
, *_args
, **_kwargs
):
487 val
= apply(miscc
.wxAcceleratorEntry_Set
,(self
,) + _args
, _kwargs
)
489 def GetFlags(self
, *_args
, **_kwargs
):
490 val
= apply(miscc
.wxAcceleratorEntry_GetFlags
,(self
,) + _args
, _kwargs
)
492 def GetKeyCode(self
, *_args
, **_kwargs
):
493 val
= apply(miscc
.wxAcceleratorEntry_GetKeyCode
,(self
,) + _args
, _kwargs
)
495 def GetCommand(self
, *_args
, **_kwargs
):
496 val
= apply(miscc
.wxAcceleratorEntry_GetCommand
,(self
,) + _args
, _kwargs
)
499 return "<C wxAcceleratorEntry instance at %s>" % (self
.this
,)
500 class wxAcceleratorEntry(wxAcceleratorEntryPtr
):
501 def __init__(self
,*_args
,**_kwargs
):
502 self
.this
= apply(miscc
.new_wxAcceleratorEntry
,_args
,_kwargs
)
508 class wxAcceleratorTablePtr(wxObjectPtr
):
509 def __init__(self
,this
):
512 def __del__(self
,miscc
=miscc
):
513 if self
.thisown
== 1 :
514 miscc
.delete_wxAcceleratorTable(self
)
516 return "<C wxAcceleratorTable instance at %s>" % (self
.this
,)
517 class wxAcceleratorTable(wxAcceleratorTablePtr
):
518 def __init__(self
,*_args
,**_kwargs
):
519 self
.this
= apply(miscc
.new_wxAcceleratorTable
,_args
,_kwargs
)
525 class wxBusyInfoPtr(wxObjectPtr
):
526 def __init__(self
,this
):
529 def __del__(self
,miscc
=miscc
):
530 if self
.thisown
== 1 :
531 miscc
.delete_wxBusyInfo(self
)
533 return "<C wxBusyInfo instance at %s>" % (self
.this
,)
534 class wxBusyInfo(wxBusyInfoPtr
):
535 def __init__(self
,*_args
,**_kwargs
):
536 self
.this
= apply(miscc
.new_wxBusyInfo
,_args
,_kwargs
)
544 #-------------- FUNCTION WRAPPERS ------------------
546 wxIntersectRect
= miscc
.wxIntersectRect
548 wxNewId
= miscc
.wxNewId
550 wxRegisterId
= miscc
.wxRegisterId
554 RegisterId
= miscc
.RegisterId
556 wxGetCurrentId
= miscc
.wxGetCurrentId
558 wxBell
= miscc
.wxBell
560 wxEndBusyCursor
= miscc
.wxEndBusyCursor
562 wxGetElapsedTime
= miscc
.wxGetElapsedTime
564 wxGetMousePosition
= miscc
.wxGetMousePosition
566 wxIsBusy
= miscc
.wxIsBusy
570 wxShell
= miscc
.wxShell
572 wxStartTimer
= miscc
.wxStartTimer
574 wxGetOsVersion
= miscc
.wxGetOsVersion
576 wxGetOsDescription
= miscc
.wxGetOsDescription
578 wxShutdown
= miscc
.wxShutdown
580 wxSleep
= miscc
.wxSleep
582 wxUsleep
= miscc
.wxUsleep
584 wxYield
= miscc
.wxYield
586 wxYieldIfNeeded
= miscc
.wxYieldIfNeeded
588 wxEnableTopLevelWindows
= miscc
.wxEnableTopLevelWindows
590 wxGetResource
= miscc
.wxGetResource
592 wxStripMenuCodes
= miscc
.wxStripMenuCodes
594 wxGetEmailAddress
= miscc
.wxGetEmailAddress
596 wxGetHostName
= miscc
.wxGetHostName
598 wxGetFullHostName
= miscc
.wxGetFullHostName
600 wxGetUserId
= miscc
.wxGetUserId
602 wxGetUserName
= miscc
.wxGetUserName
604 wxGetHomeDir
= miscc
.wxGetHomeDir
606 wxGetUserHome
= miscc
.wxGetUserHome
608 def wxGetAccelFromString(*_args
, **_kwargs
):
609 val
= apply(miscc
.wxGetAccelFromString
,_args
,_kwargs
)
610 if val
: val
= wxAcceleratorEntryPtr(val
)
615 #-------------- VARIABLE WRAPPERS ------------------
617 wxSHUTDOWN_POWEROFF
= miscc
.wxSHUTDOWN_POWEROFF
618 wxSHUTDOWN_REBOOT
= miscc
.wxSHUTDOWN_REBOOT
619 wxLeft
= miscc
.wxLeft
621 wxRight
= miscc
.wxRight
622 wxBottom
= miscc
.wxBottom
623 wxWidth
= miscc
.wxWidth
624 wxHeight
= miscc
.wxHeight
625 wxCentre
= miscc
.wxCentre
626 wxCenter
= miscc
.wxCenter
627 wxCentreX
= miscc
.wxCentreX
628 wxCentreY
= miscc
.wxCentreY
629 wxUnconstrained
= miscc
.wxUnconstrained
630 wxAsIs
= miscc
.wxAsIs
631 wxPercentOf
= miscc
.wxPercentOf
632 wxAbove
= miscc
.wxAbove
633 wxBelow
= miscc
.wxBelow
634 wxLeftOf
= miscc
.wxLeftOf
635 wxRightOf
= miscc
.wxRightOf
636 wxSameAs
= miscc
.wxSameAs
637 wxAbsolute
= miscc
.wxAbsolute
639 wxNullAcceleratorTable
= wxAcceleratorTablePtr(miscc
.cvar
.wxNullAcceleratorTable
)