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
)
25 def SetWidth(self
,arg0
):
26 val
= miscc
.wxSize_SetWidth(self
.this
,arg0
)
28 def SetHeight(self
,arg0
):
29 val
= miscc
.wxSize_SetHeight(self
.this
,arg0
)
32 val
= miscc
.wxSize_asTuple(self
.this
)
34 def __setattr__(self
,name
,value
):
36 miscc
.wxSize_x_set(self
.this
,value
)
39 miscc
.wxSize_y_set(self
.this
,value
)
42 miscc
.wxSize_width_set(self
.this
,value
)
45 miscc
.wxSize_height_set(self
.this
,value
)
47 self
.__dict
__[name
] = value
48 def __getattr__(self
,name
):
50 return miscc
.wxSize_x_get(self
.this
)
52 return miscc
.wxSize_y_get(self
.this
)
54 return miscc
.wxSize_width_get(self
.this
)
56 return miscc
.wxSize_height_get(self
.this
)
57 raise AttributeError,name
59 return "<C wxSize instance>"
60 def __str__(self
): return str(self
.asTuple())
61 def __repr__(self
): return str(self
.asTuple())
62 class wxSize(wxSizePtr
):
63 def __init__(self
,*args
) :
64 self
.this
= apply(miscc
.new_wxSize
,()+args
)
70 class wxRealPointPtr
:
71 def __init__(self
,this
):
75 if self
.thisown
== 1 :
76 miscc
.delete_wxRealPoint(self
.this
)
77 def __setattr__(self
,name
,value
):
79 miscc
.wxRealPoint_x_set(self
.this
,value
)
82 miscc
.wxRealPoint_y_set(self
.this
,value
)
84 self
.__dict
__[name
] = value
85 def __getattr__(self
,name
):
87 return miscc
.wxRealPoint_x_get(self
.this
)
89 return miscc
.wxRealPoint_y_get(self
.this
)
90 raise AttributeError,name
92 return "<C wxRealPoint instance>"
93 class wxRealPoint(wxRealPointPtr
):
94 def __init__(self
,*args
) :
95 self
.this
= apply(miscc
.new_wxRealPoint
,()+args
)
102 def __init__(self
,this
):
106 if self
.thisown
== 1 :
107 miscc
.delete_wxPoint(self
.this
)
108 def Set(self
,arg0
,arg1
):
109 val
= miscc
.wxPoint_Set(self
.this
,arg0
,arg1
)
112 val
= miscc
.wxPoint_asTuple(self
.this
)
114 def __setattr__(self
,name
,value
):
116 miscc
.wxPoint_x_set(self
.this
,value
)
119 miscc
.wxPoint_y_set(self
.this
,value
)
121 self
.__dict
__[name
] = value
122 def __getattr__(self
,name
):
124 return miscc
.wxPoint_x_get(self
.this
)
126 return miscc
.wxPoint_y_get(self
.this
)
127 raise AttributeError,name
129 return "<C wxPoint instance>"
130 def __str__(self
): return str(self
.asTuple())
131 def __repr__(self
): return str(self
.asTuple())
132 class wxPoint(wxPointPtr
):
133 def __init__(self
,*args
) :
134 self
.this
= apply(miscc
.new_wxPoint
,()+args
)
141 def __init__(self
,this
):
145 if self
.thisown
== 1 :
146 miscc
.delete_wxRect(self
.this
)
148 val
= miscc
.wxRect_GetX(self
.this
)
151 val
= miscc
.wxRect_SetX(self
.this
,arg0
)
154 val
= miscc
.wxRect_GetY(self
.this
)
157 val
= miscc
.wxRect_SetY(self
.this
,arg0
)
160 val
= miscc
.wxRect_GetWidth(self
.this
)
162 def SetWidth(self
,arg0
):
163 val
= miscc
.wxRect_SetWidth(self
.this
,arg0
)
166 val
= miscc
.wxRect_GetHeight(self
.this
)
168 def SetHeight(self
,arg0
):
169 val
= miscc
.wxRect_SetHeight(self
.this
,arg0
)
171 def GetPosition(self
):
172 val
= miscc
.wxRect_GetPosition(self
.this
)
173 val
= wxPointPtr(val
)
177 val
= miscc
.wxRect_GetSize(self
.this
)
182 val
= miscc
.wxRect_GetLeft(self
.this
)
185 val
= miscc
.wxRect_GetTop(self
.this
)
188 val
= miscc
.wxRect_GetBottom(self
.this
)
191 val
= miscc
.wxRect_GetRight(self
.this
)
194 val
= miscc
.wxRect_asTuple(self
.this
)
196 def __setattr__(self
,name
,value
):
198 miscc
.wxRect_x_set(self
.this
,value
)
201 miscc
.wxRect_y_set(self
.this
,value
)
204 miscc
.wxRect_width_set(self
.this
,value
)
206 if name
== "height" :
207 miscc
.wxRect_height_set(self
.this
,value
)
209 self
.__dict
__[name
] = value
210 def __getattr__(self
,name
):
212 return miscc
.wxRect_x_get(self
.this
)
214 return miscc
.wxRect_y_get(self
.this
)
216 return miscc
.wxRect_width_get(self
.this
)
217 if name
== "height" :
218 return miscc
.wxRect_height_get(self
.this
)
219 raise AttributeError,name
221 return "<C wxRect instance>"
222 def __str__(self
): return str(self
.asTuple())
223 def __repr__(self
): return str(self
.asTuple())
224 class wxRect(wxRectPtr
):
225 def __init__(self
,*args
) :
226 self
.this
= apply(miscc
.new_wxRect
,()+args
)
233 def __init__(self
,this
):
237 if self
.thisown
== 1 :
238 miscc
.delete_wxPyTimer(self
.this
)
240 val
= miscc
.wxPyTimer_Interval(self
.this
)
242 def Start(self
,*args
):
243 val
= apply(miscc
.wxPyTimer_Start
,(self
.this
,)+args
)
246 val
= miscc
.wxPyTimer_Stop(self
.this
)
249 return "<C wxPyTimer instance>"
250 class wxPyTimer(wxPyTimerPtr
):
251 def __init__(self
,arg0
) :
252 self
.this
= miscc
.new_wxPyTimer(arg0
)
258 class wxIndividualLayoutConstraintPtr
:
259 def __init__(self
,this
):
262 def Above(self
,arg0
,*args
):
263 val
= apply(miscc
.wxIndividualLayoutConstraint_Above
,(self
.this
,arg0
.this
,)+args
)
265 def Absolute(self
,arg0
):
266 val
= miscc
.wxIndividualLayoutConstraint_Absolute(self
.this
,arg0
)
269 val
= miscc
.wxIndividualLayoutConstraint_AsIs(self
.this
)
271 def Below(self
,arg0
,*args
):
272 val
= apply(miscc
.wxIndividualLayoutConstraint_Below
,(self
.this
,arg0
.this
,)+args
)
274 def Unconstrained(self
):
275 val
= miscc
.wxIndividualLayoutConstraint_Unconstrained(self
.this
)
277 def LeftOf(self
,arg0
,*args
):
278 val
= apply(miscc
.wxIndividualLayoutConstraint_LeftOf
,(self
.this
,arg0
.this
,)+args
)
280 def PercentOf(self
,arg0
,arg1
,arg2
):
281 val
= miscc
.wxIndividualLayoutConstraint_PercentOf(self
.this
,arg0
.this
,arg1
,arg2
)
283 def RightOf(self
,arg0
,*args
):
284 val
= apply(miscc
.wxIndividualLayoutConstraint_RightOf
,(self
.this
,arg0
.this
,)+args
)
286 def SameAs(self
,arg0
,arg1
,*args
):
287 val
= apply(miscc
.wxIndividualLayoutConstraint_SameAs
,(self
.this
,arg0
.this
,arg1
,)+args
)
289 def Set(self
,arg0
,arg1
,arg2
,*args
):
290 val
= apply(miscc
.wxIndividualLayoutConstraint_Set
,(self
.this
,arg0
,arg1
.this
,arg2
,)+args
)
293 return "<C wxIndividualLayoutConstraint instance>"
294 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr
):
295 def __init__(self
,this
):
301 class wxLayoutConstraintsPtr
:
302 def __init__(self
,this
):
305 def __setattr__(self
,name
,value
):
306 if name
== "bottom" :
307 miscc
.wxLayoutConstraints_bottom_set(self
.this
,value
.this
)
309 if name
== "centreX" :
310 miscc
.wxLayoutConstraints_centreX_set(self
.this
,value
.this
)
312 if name
== "centreY" :
313 miscc
.wxLayoutConstraints_centreY_set(self
.this
,value
.this
)
315 if name
== "height" :
316 miscc
.wxLayoutConstraints_height_set(self
.this
,value
.this
)
319 miscc
.wxLayoutConstraints_left_set(self
.this
,value
.this
)
322 miscc
.wxLayoutConstraints_right_set(self
.this
,value
.this
)
325 miscc
.wxLayoutConstraints_top_set(self
.this
,value
.this
)
328 miscc
.wxLayoutConstraints_width_set(self
.this
,value
.this
)
330 self
.__dict
__[name
] = value
331 def __getattr__(self
,name
):
332 if name
== "bottom" :
333 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_bottom_get(self
.this
))
334 if name
== "centreX" :
335 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreX_get(self
.this
))
336 if name
== "centreY" :
337 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreY_get(self
.this
))
338 if name
== "height" :
339 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_height_get(self
.this
))
341 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_left_get(self
.this
))
343 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_right_get(self
.this
))
345 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_top_get(self
.this
))
347 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_width_get(self
.this
))
348 raise AttributeError,name
350 return "<C wxLayoutConstraints instance>"
351 class wxLayoutConstraints(wxLayoutConstraintsPtr
):
353 self
.this
= miscc
.new_wxLayoutConstraints()
360 def __init__(self
,this
):
364 if self
.thisown
== 1 :
365 miscc
.delete_wxRegion(self
.this
)
367 val
= miscc
.wxRegion_Clear(self
.this
)
369 def Contains(self
,arg0
,arg1
):
370 val
= miscc
.wxRegion_Contains(self
.this
,arg0
,arg1
)
372 def ContainsPoint(self
,arg0
):
373 val
= miscc
.wxRegion_ContainsPoint(self
.this
,arg0
.this
)
375 def ContainsRect(self
,arg0
):
376 val
= miscc
.wxRegion_ContainsRect(self
.this
,arg0
.this
)
379 val
= miscc
.wxRegion_GetBox(self
.this
)
383 def Intersect(self
,arg0
):
384 val
= miscc
.wxRegion_Intersect(self
.this
,arg0
.this
)
386 def Subtract(self
,arg0
):
387 val
= miscc
.wxRegion_Subtract(self
.this
,arg0
.this
)
389 def Union(self
,arg0
):
390 val
= miscc
.wxRegion_Union(self
.this
,arg0
.this
)
393 val
= miscc
.wxRegion_Xor(self
.this
,arg0
.this
)
396 return "<C wxRegion instance>"
397 class wxRegion(wxRegionPtr
):
399 self
.this
= miscc
.new_wxRegion()
405 class wxRegionIteratorPtr
:
406 def __init__(self
,this
):
410 if self
.thisown
== 1 :
411 miscc
.delete_wxRegionIterator(self
.this
)
413 val
= miscc
.wxRegionIterator_GetX(self
.this
)
416 val
= miscc
.wxRegionIterator_GetY(self
.this
)
419 val
= miscc
.wxRegionIterator_GetW(self
.this
)
422 val
= miscc
.wxRegionIterator_GetWidth(self
.this
)
425 val
= miscc
.wxRegionIterator_GetH(self
.this
)
428 val
= miscc
.wxRegionIterator_GetHeight(self
.this
)
431 val
= miscc
.wxRegionIterator_GetRect(self
.this
)
436 val
= miscc
.wxRegionIterator_HaveRects(self
.this
)
439 val
= miscc
.wxRegionIterator_Reset(self
.this
)
442 val
= miscc
.wxRegionIterator_Next(self
.this
)
445 return "<C wxRegionIterator instance>"
446 class wxRegionIterator(wxRegionIteratorPtr
):
447 def __init__(self
,arg0
) :
448 self
.this
= miscc
.new_wxRegionIterator(arg0
.this
)
454 class wxAcceleratorEntryPtr
:
455 def __init__(self
,this
):
458 def Set(self
,arg0
,arg1
,arg2
):
459 val
= miscc
.wxAcceleratorEntry_Set(self
.this
,arg0
,arg1
,arg2
)
462 val
= miscc
.wxAcceleratorEntry_GetFlags(self
.this
)
464 def GetKeyCode(self
):
465 val
= miscc
.wxAcceleratorEntry_GetKeyCode(self
.this
)
467 def GetCommand(self
):
468 val
= miscc
.wxAcceleratorEntry_GetCommand(self
.this
)
471 return "<C wxAcceleratorEntry instance>"
472 class wxAcceleratorEntry(wxAcceleratorEntryPtr
):
473 def __init__(self
,*args
) :
474 self
.this
= apply(miscc
.new_wxAcceleratorEntry
,()+args
)
480 class wxAcceleratorTablePtr
:
481 def __init__(self
,this
):
485 return "<C wxAcceleratorTable instance>"
486 class wxAcceleratorTable(wxAcceleratorTablePtr
):
487 def __init__(self
,arg0
) :
488 self
.this
= miscc
.new_wxAcceleratorTable(arg0
.this
)
496 #-------------- FUNCTION WRAPPERS ------------------
498 def wxFileSelector(arg0
,*args
):
499 argl
= map(None,args
)
500 try: argl
[5] = argl
[5].this
503 val
= apply(miscc
.wxFileSelector
,(arg0
,)+args
)
506 def wxGetTextFromUser(arg0
,*args
):
507 argl
= map(None,args
)
508 try: argl
[2] = argl
[2].this
511 val
= apply(miscc
.wxGetTextFromUser
,(arg0
,)+args
)
514 def wxGetSingleChoice(arg0
,arg1
,arg2
,*args
):
515 argl
= map(None,args
)
516 try: argl
[0] = argl
[0].this
519 val
= apply(miscc
.wxGetSingleChoice
,(arg0
,arg1
,arg2
,)+args
)
522 def wxGetSingleChoiceIndex(arg0
,arg1
,arg2
,*args
):
523 argl
= map(None,args
)
524 try: argl
[0] = argl
[0].this
527 val
= apply(miscc
.wxGetSingleChoiceIndex
,(arg0
,arg1
,arg2
,)+args
)
530 def wxMessageBox(arg0
,*args
):
531 argl
= map(None,args
)
532 try: argl
[2] = argl
[2].this
535 val
= apply(miscc
.wxMessageBox
,(arg0
,)+args
)
538 wxColourDisplay
= miscc
.wxColourDisplay
540 wxDisplayDepth
= miscc
.wxDisplayDepth
542 def wxSetCursor(arg0
):
543 val
= miscc
.wxSetCursor(arg0
.this
)
546 wxNewId
= miscc
.wxNewId
548 wxRegisterId
= miscc
.wxRegisterId
552 RegisterId
= miscc
.RegisterId
554 def wxBeginBusyCursor(*args
):
555 argl
= map(None,args
)
556 try: argl
[0] = argl
[0].this
559 val
= apply(miscc
.wxBeginBusyCursor
,()+args
)
562 wxBell
= miscc
.wxBell
564 wxDisplaySize
= miscc
.wxDisplaySize
566 wxEndBusyCursor
= miscc
.wxEndBusyCursor
568 wxExecute
= miscc
.wxExecute
570 wxGetMousePosition
= miscc
.wxGetMousePosition
572 wxIsBusy
= miscc
.wxIsBusy
576 wxSleep
= miscc
.wxSleep
578 wxYield
= miscc
.wxYield
580 wxSafeYield
= miscc
.wxSafeYield
582 wxEnableTopLevelWindows
= miscc
.wxEnableTopLevelWindows
584 wxGetResource
= miscc
.wxGetResource
586 wxResourceAddIdentifier
= miscc
.wxResourceAddIdentifier
588 wxResourceClear
= miscc
.wxResourceClear
590 def wxResourceCreateBitmap(arg0
):
591 val
= miscc
.wxResourceCreateBitmap(arg0
)
592 val
= wxBitmapPtr(val
)
596 def wxResourceCreateIcon(arg0
):
597 val
= miscc
.wxResourceCreateIcon(arg0
)
602 def wxResourceCreateMenuBar(arg0
):
603 val
= miscc
.wxResourceCreateMenuBar(arg0
)
604 val
= wxMenuBarPtr(val
)
607 wxResourceGetIdentifier
= miscc
.wxResourceGetIdentifier
609 wxResourceParseData
= miscc
.wxResourceParseData
611 wxResourceParseFile
= miscc
.wxResourceParseFile
613 wxResourceParseString
= miscc
.wxResourceParseString
617 #-------------- VARIABLE WRAPPERS ------------------
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
638 wxOutRegion
= miscc
.wxOutRegion
639 wxPartRegion
= miscc
.wxPartRegion
640 wxInRegion
= miscc
.wxInRegion