1 # This file was created automatically by SWIG.
4 def __init__(self
,this
):
9 miscc
.delete_wxSize(self
.this
)
10 def Set(self
,arg0
,arg1
):
11 val
= miscc
.wxSize_Set(self
.this
,arg0
,arg1
)
14 val
= miscc
.wxSize_GetX(self
.this
)
17 val
= miscc
.wxSize_GetY(self
.this
)
20 val
= miscc
.wxSize_GetWidth(self
.this
)
23 val
= miscc
.wxSize_GetHeight(self
.this
)
26 val
= miscc
.wxSize_asTuple(self
.this
)
28 def __setattr__(self
,name
,value
):
30 miscc
.wxSize_x_set(self
.this
,value
)
33 miscc
.wxSize_y_set(self
.this
,value
)
36 miscc
.wxSize_width_set(self
.this
,value
)
39 miscc
.wxSize_height_set(self
.this
,value
)
41 self
.__dict
__[name
] = value
42 def __getattr__(self
,name
):
44 return miscc
.wxSize_x_get(self
.this
)
46 return miscc
.wxSize_y_get(self
.this
)
48 return miscc
.wxSize_width_get(self
.this
)
50 return miscc
.wxSize_height_get(self
.this
)
51 raise AttributeError,name
53 return "<C wxSize instance>"
54 def __str__(self
): return str(self
.asTuple())
55 def __repr__(self
): return str(self
.asTuple())
56 class wxSize(wxSizePtr
):
57 def __init__(self
,*args
) :
58 self
.this
= apply(miscc
.new_wxSize
,()+args
)
64 class wxRealPointPtr
:
65 def __init__(self
,this
):
69 if self
.thisown
== 1 :
70 miscc
.delete_wxRealPoint(self
.this
)
71 def __setattr__(self
,name
,value
):
73 miscc
.wxRealPoint_x_set(self
.this
,value
)
76 miscc
.wxRealPoint_y_set(self
.this
,value
)
78 self
.__dict
__[name
] = value
79 def __getattr__(self
,name
):
81 return miscc
.wxRealPoint_x_get(self
.this
)
83 return miscc
.wxRealPoint_y_get(self
.this
)
84 raise AttributeError,name
86 return "<C wxRealPoint instance>"
87 class wxRealPoint(wxRealPointPtr
):
88 def __init__(self
,*args
) :
89 self
.this
= apply(miscc
.new_wxRealPoint
,()+args
)
96 def __init__(self
,this
):
100 if self
.thisown
== 1 :
101 miscc
.delete_wxPoint(self
.this
)
102 def Set(self
,arg0
,arg1
):
103 val
= miscc
.wxPoint_Set(self
.this
,arg0
,arg1
)
106 val
= miscc
.wxPoint_asTuple(self
.this
)
108 def __setattr__(self
,name
,value
):
110 miscc
.wxPoint_x_set(self
.this
,value
)
113 miscc
.wxPoint_y_set(self
.this
,value
)
115 self
.__dict
__[name
] = value
116 def __getattr__(self
,name
):
118 return miscc
.wxPoint_x_get(self
.this
)
120 return miscc
.wxPoint_y_get(self
.this
)
121 raise AttributeError,name
123 return "<C wxPoint instance>"
124 def __str__(self
): return str(self
.asTuple())
125 def __repr__(self
): return str(self
.asTuple())
126 class wxPoint(wxPointPtr
):
127 def __init__(self
,*args
) :
128 self
.this
= apply(miscc
.new_wxPoint
,()+args
)
135 def __init__(self
,this
):
139 if self
.thisown
== 1 :
140 miscc
.delete_wxRect(self
.this
)
142 val
= miscc
.wxRect_GetX(self
.this
)
145 val
= miscc
.wxRect_SetX(self
.this
,arg0
)
148 val
= miscc
.wxRect_GetY(self
.this
)
151 val
= miscc
.wxRect_SetY(self
.this
,arg0
)
154 val
= miscc
.wxRect_GetWidth(self
.this
)
156 def SetWidth(self
,arg0
):
157 val
= miscc
.wxRect_SetWidth(self
.this
,arg0
)
160 val
= miscc
.wxRect_GetHeight(self
.this
)
162 def SetHeight(self
,arg0
):
163 val
= miscc
.wxRect_SetHeight(self
.this
,arg0
)
165 def GetPosition(self
):
166 val
= miscc
.wxRect_GetPosition(self
.this
)
167 val
= wxPointPtr(val
)
171 val
= miscc
.wxRect_GetSize(self
.this
)
176 val
= miscc
.wxRect_GetLeft(self
.this
)
179 val
= miscc
.wxRect_GetTop(self
.this
)
182 val
= miscc
.wxRect_GetBottom(self
.this
)
185 val
= miscc
.wxRect_GetRight(self
.this
)
188 val
= miscc
.wxRect_asTuple(self
.this
)
190 def __setattr__(self
,name
,value
):
192 miscc
.wxRect_x_set(self
.this
,value
)
195 miscc
.wxRect_y_set(self
.this
,value
)
198 miscc
.wxRect_width_set(self
.this
,value
)
200 if name
== "height" :
201 miscc
.wxRect_height_set(self
.this
,value
)
203 self
.__dict
__[name
] = value
204 def __getattr__(self
,name
):
206 return miscc
.wxRect_x_get(self
.this
)
208 return miscc
.wxRect_y_get(self
.this
)
210 return miscc
.wxRect_width_get(self
.this
)
211 if name
== "height" :
212 return miscc
.wxRect_height_get(self
.this
)
213 raise AttributeError,name
215 return "<C wxRect instance>"
216 def __str__(self
): return str(self
.asTuple())
217 def __repr__(self
): return str(self
.asTuple())
218 class wxRect(wxRectPtr
):
219 def __init__(self
,*args
) :
220 self
.this
= apply(miscc
.new_wxRect
,()+args
)
227 def __init__(self
,this
):
231 if self
.thisown
== 1 :
232 miscc
.delete_wxPyTimer(self
.this
)
234 val
= miscc
.wxPyTimer_Interval(self
.this
)
236 def Start(self
,*args
):
237 val
= apply(miscc
.wxPyTimer_Start
,(self
.this
,)+args
)
240 val
= miscc
.wxPyTimer_Stop(self
.this
)
243 return "<C wxPyTimer instance>"
244 class wxPyTimer(wxPyTimerPtr
):
245 def __init__(self
,arg0
) :
246 self
.this
= miscc
.new_wxPyTimer(arg0
)
252 class wxIndividualLayoutConstraintPtr
:
253 def __init__(self
,this
):
256 def Above(self
,arg0
,*args
):
257 val
= apply(miscc
.wxIndividualLayoutConstraint_Above
,(self
.this
,arg0
.this
,)+args
)
259 def Absolute(self
,arg0
):
260 val
= miscc
.wxIndividualLayoutConstraint_Absolute(self
.this
,arg0
)
263 val
= miscc
.wxIndividualLayoutConstraint_AsIs(self
.this
)
265 def Below(self
,arg0
,*args
):
266 val
= apply(miscc
.wxIndividualLayoutConstraint_Below
,(self
.this
,arg0
.this
,)+args
)
268 def Unconstrained(self
):
269 val
= miscc
.wxIndividualLayoutConstraint_Unconstrained(self
.this
)
271 def LeftOf(self
,arg0
,*args
):
272 val
= apply(miscc
.wxIndividualLayoutConstraint_LeftOf
,(self
.this
,arg0
.this
,)+args
)
274 def PercentOf(self
,arg0
,arg1
,arg2
):
275 val
= miscc
.wxIndividualLayoutConstraint_PercentOf(self
.this
,arg0
.this
,arg1
,arg2
)
277 def RightOf(self
,arg0
,*args
):
278 val
= apply(miscc
.wxIndividualLayoutConstraint_RightOf
,(self
.this
,arg0
.this
,)+args
)
280 def SameAs(self
,arg0
,arg1
,*args
):
281 val
= apply(miscc
.wxIndividualLayoutConstraint_SameAs
,(self
.this
,arg0
.this
,arg1
,)+args
)
283 def Set(self
,arg0
,arg1
,arg2
,*args
):
284 val
= apply(miscc
.wxIndividualLayoutConstraint_Set
,(self
.this
,arg0
,arg1
.this
,arg2
,)+args
)
287 return "<C wxIndividualLayoutConstraint instance>"
288 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr
):
289 def __init__(self
,this
):
295 class wxLayoutConstraintsPtr
:
296 def __init__(self
,this
):
299 def __setattr__(self
,name
,value
):
300 if name
== "bottom" :
301 miscc
.wxLayoutConstraints_bottom_set(self
.this
,value
.this
)
303 if name
== "centreX" :
304 miscc
.wxLayoutConstraints_centreX_set(self
.this
,value
.this
)
306 if name
== "centreY" :
307 miscc
.wxLayoutConstraints_centreY_set(self
.this
,value
.this
)
309 if name
== "height" :
310 miscc
.wxLayoutConstraints_height_set(self
.this
,value
.this
)
313 miscc
.wxLayoutConstraints_left_set(self
.this
,value
.this
)
316 miscc
.wxLayoutConstraints_right_set(self
.this
,value
.this
)
319 miscc
.wxLayoutConstraints_top_set(self
.this
,value
.this
)
322 miscc
.wxLayoutConstraints_width_set(self
.this
,value
.this
)
324 self
.__dict
__[name
] = value
325 def __getattr__(self
,name
):
326 if name
== "bottom" :
327 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_bottom_get(self
.this
))
328 if name
== "centreX" :
329 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreX_get(self
.this
))
330 if name
== "centreY" :
331 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreY_get(self
.this
))
332 if name
== "height" :
333 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_height_get(self
.this
))
335 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_left_get(self
.this
))
337 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_right_get(self
.this
))
339 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_top_get(self
.this
))
341 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_width_get(self
.this
))
342 raise AttributeError,name
344 return "<C wxLayoutConstraints instance>"
345 class wxLayoutConstraints(wxLayoutConstraintsPtr
):
347 self
.this
= miscc
.new_wxLayoutConstraints()
354 def __init__(self
,this
):
358 if self
.thisown
== 1 :
359 miscc
.delete_wxRegion(self
.this
)
361 val
= miscc
.wxRegion_Clear(self
.this
)
363 def Contains(self
,arg0
,arg1
):
364 val
= miscc
.wxRegion_Contains(self
.this
,arg0
,arg1
)
366 def ContainsPoint(self
,arg0
):
367 val
= miscc
.wxRegion_ContainsPoint(self
.this
,arg0
.this
)
369 def ContainsRect(self
,arg0
):
370 val
= miscc
.wxRegion_ContainsRect(self
.this
,arg0
.this
)
373 val
= miscc
.wxRegion_GetBox(self
.this
)
377 def Intersect(self
,arg0
):
378 val
= miscc
.wxRegion_Intersect(self
.this
,arg0
.this
)
381 val
= miscc
.wxRegion_IsEmpty(self
.this
)
383 def Subtract(self
,arg0
):
384 val
= miscc
.wxRegion_Subtract(self
.this
,arg0
.this
)
386 def Union(self
,arg0
):
387 val
= miscc
.wxRegion_Union(self
.this
,arg0
.this
)
390 val
= miscc
.wxRegion_Xor(self
.this
,arg0
.this
)
393 return "<C wxRegion instance>"
394 class wxRegion(wxRegionPtr
):
396 self
.this
= miscc
.new_wxRegion()
402 class wxRegionIteratorPtr
:
403 def __init__(self
,this
):
407 if self
.thisown
== 1 :
408 miscc
.delete_wxRegionIterator(self
.this
)
410 val
= miscc
.wxRegionIterator_GetX(self
.this
)
413 val
= miscc
.wxRegionIterator_GetY(self
.this
)
416 val
= miscc
.wxRegionIterator_GetW(self
.this
)
419 val
= miscc
.wxRegionIterator_GetWidth(self
.this
)
422 val
= miscc
.wxRegionIterator_GetH(self
.this
)
425 val
= miscc
.wxRegionIterator_GetHeight(self
.this
)
428 val
= miscc
.wxRegionIterator_GetRect(self
.this
)
433 val
= miscc
.wxRegionIterator_HaveRects(self
.this
)
436 val
= miscc
.wxRegionIterator_Reset(self
.this
)
439 val
= miscc
.wxRegionIterator_Next(self
.this
)
442 return "<C wxRegionIterator instance>"
443 class wxRegionIterator(wxRegionIteratorPtr
):
444 def __init__(self
,arg0
) :
445 self
.this
= miscc
.new_wxRegionIterator(arg0
.this
)
451 class wxAcceleratorEntryPtr
:
452 def __init__(self
,this
):
455 def Set(self
,arg0
,arg1
,arg2
):
456 val
= miscc
.wxAcceleratorEntry_Set(self
.this
,arg0
,arg1
,arg2
)
459 val
= miscc
.wxAcceleratorEntry_GetFlags(self
.this
)
461 def GetKeyCode(self
):
462 val
= miscc
.wxAcceleratorEntry_GetKeyCode(self
.this
)
464 def GetCommand(self
):
465 val
= miscc
.wxAcceleratorEntry_GetCommand(self
.this
)
468 return "<C wxAcceleratorEntry instance>"
469 class wxAcceleratorEntry(wxAcceleratorEntryPtr
):
470 def __init__(self
,*args
) :
471 self
.this
= apply(miscc
.new_wxAcceleratorEntry
,()+args
)
477 class wxAcceleratorTablePtr
:
478 def __init__(self
,this
):
482 return "<C wxAcceleratorTable instance>"
483 class wxAcceleratorTable(wxAcceleratorTablePtr
):
484 def __init__(self
,arg0
) :
485 self
.this
= miscc
.new_wxAcceleratorTable(arg0
.this
)
492 def __init__(self
,this
):
495 def SetTip(self
,arg0
):
496 val
= miscc
.wxToolTip_SetTip(self
.this
,arg0
)
499 val
= miscc
.wxToolTip_GetTip(self
.this
)
502 val
= miscc
.wxToolTip_GetWindow(self
.this
)
503 val
= wxWindowPtr(val
)
506 return "<C wxToolTip instance>"
507 class wxToolTip(wxToolTipPtr
):
508 def __init__(self
,arg0
) :
509 self
.this
= miscc
.new_wxToolTip(arg0
)
517 #-------------- FUNCTION WRAPPERS ------------------
519 def wxFileSelector(arg0
,*args
):
520 argl
= map(None,args
)
521 try: argl
[5] = argl
[5].this
524 val
= apply(miscc
.wxFileSelector
,(arg0
,)+args
)
527 def wxGetTextFromUser(arg0
,*args
):
528 argl
= map(None,args
)
529 try: argl
[2] = argl
[2].this
532 val
= apply(miscc
.wxGetTextFromUser
,(arg0
,)+args
)
535 def wxGetSingleChoice(arg0
,arg1
,arg2
,*args
):
536 argl
= map(None,args
)
537 try: argl
[0] = argl
[0].this
540 val
= apply(miscc
.wxGetSingleChoice
,(arg0
,arg1
,arg2
,)+args
)
543 def wxGetSingleChoiceIndex(arg0
,arg1
,arg2
,*args
):
544 argl
= map(None,args
)
545 try: argl
[0] = argl
[0].this
548 val
= apply(miscc
.wxGetSingleChoiceIndex
,(arg0
,arg1
,arg2
,)+args
)
551 def wxMessageBox(arg0
,*args
):
552 argl
= map(None,args
)
553 try: argl
[2] = argl
[2].this
556 val
= apply(miscc
.wxMessageBox
,(arg0
,)+args
)
559 wxColourDisplay
= miscc
.wxColourDisplay
561 wxDisplayDepth
= miscc
.wxDisplayDepth
563 def wxSetCursor(arg0
):
564 val
= miscc
.wxSetCursor(arg0
.this
)
569 RegisterId
= miscc
.RegisterId
571 def wxBeginBusyCursor(*args
):
572 argl
= map(None,args
)
573 try: argl
[0] = argl
[0].this
576 val
= apply(miscc
.wxBeginBusyCursor
,()+args
)
579 wxBell
= miscc
.wxBell
581 wxDisplaySize
= miscc
.wxDisplaySize
583 wxEndBusyCursor
= miscc
.wxEndBusyCursor
585 wxExecute
= miscc
.wxExecute
587 def wxFindWindowByLabel(arg0
,*args
):
588 argl
= map(None,args
)
589 try: argl
[0] = argl
[0].this
592 val
= apply(miscc
.wxFindWindowByLabel
,(arg0
,)+args
)
593 val
= wxWindowPtr(val
)
596 def wxFindWindowByName(arg0
,*args
):
597 argl
= map(None,args
)
598 try: argl
[0] = argl
[0].this
601 val
= apply(miscc
.wxFindWindowByName
,(arg0
,)+args
)
602 val
= wxWindowPtr(val
)
605 def wxGetActiveWindow():
606 val
= miscc
.wxGetActiveWindow()
607 val
= wxWindowPtr(val
)
610 wxGetElapsedTime
= miscc
.wxGetElapsedTime
612 wxGetFreeMemory
= miscc
.wxGetFreeMemory
614 wxGetMousePosition
= miscc
.wxGetMousePosition
616 wxIsBusy
= miscc
.wxIsBusy
620 wxShell
= miscc
.wxShell
622 wxStartTimer
= miscc
.wxStartTimer
624 wxGetOsVersion
= miscc
.wxGetOsVersion
626 wxYield
= miscc
.wxYield
628 wxGetResource
= miscc
.wxGetResource
630 wxResourceAddIdentifier
= miscc
.wxResourceAddIdentifier
632 wxResourceClear
= miscc
.wxResourceClear
634 def wxResourceCreateBitmap(arg0
):
635 val
= miscc
.wxResourceCreateBitmap(arg0
)
636 val
= wxBitmapPtr(val
)
640 def wxResourceCreateIcon(arg0
):
641 val
= miscc
.wxResourceCreateIcon(arg0
)
646 def wxResourceCreateMenuBar(arg0
):
647 val
= miscc
.wxResourceCreateMenuBar(arg0
)
648 val
= wxMenuBarPtr(val
)
651 wxResourceGetIdentifier
= miscc
.wxResourceGetIdentifier
653 wxResourceParseData
= miscc
.wxResourceParseData
655 wxResourceParseFile
= miscc
.wxResourceParseFile
657 wxResourceParseString
= miscc
.wxResourceParseString
659 wxToolTip_Enable
= miscc
.wxToolTip_Enable
661 wxToolTip_SetDelay
= miscc
.wxToolTip_SetDelay
665 #-------------- VARIABLE WRAPPERS ------------------
667 wxLeft
= miscc
.wxLeft
669 wxRight
= miscc
.wxRight
670 wxBottom
= miscc
.wxBottom
671 wxWidth
= miscc
.wxWidth
672 wxHeight
= miscc
.wxHeight
673 wxCentre
= miscc
.wxCentre
674 wxCenter
= miscc
.wxCenter
675 wxCentreX
= miscc
.wxCentreX
676 wxCentreY
= miscc
.wxCentreY
677 wxUnconstrained
= miscc
.wxUnconstrained
678 wxAsIs
= miscc
.wxAsIs
679 wxPercentOf
= miscc
.wxPercentOf
680 wxAbove
= miscc
.wxAbove
681 wxBelow
= miscc
.wxBelow
682 wxLeftOf
= miscc
.wxLeftOf
683 wxRightOf
= miscc
.wxRightOf
684 wxSameAs
= miscc
.wxSameAs
685 wxAbsolute
= miscc
.wxAbsolute
686 wxOutRegion
= miscc
.wxOutRegion
687 wxPartRegion
= miscc
.wxPartRegion
688 wxInRegion
= miscc
.wxInRegion