1 # This file was created automatically by SWIG.
12 from clip_dnd
import *
14 from controls
import *
18 class wxSizerItemPtr(wxObjectPtr
):
19 def __init__(self
,this
):
22 def DeleteWindows(self
, *_args
, **_kwargs
):
23 val
= sizersc
.wxSizerItem_DeleteWindows(self
, *_args
, **_kwargs
)
25 def DetachSizer(self
, *_args
, **_kwargs
):
26 val
= sizersc
.wxSizerItem_DetachSizer(self
, *_args
, **_kwargs
)
28 def GetSize(self
, *_args
, **_kwargs
):
29 val
= sizersc
.wxSizerItem_GetSize(self
, *_args
, **_kwargs
)
30 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
32 def CalcMin(self
, *_args
, **_kwargs
):
33 val
= sizersc
.wxSizerItem_CalcMin(self
, *_args
, **_kwargs
)
34 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
36 def SetDimension(self
, *_args
, **_kwargs
):
37 val
= sizersc
.wxSizerItem_SetDimension(self
, *_args
, **_kwargs
)
39 def GetMinSize(self
, *_args
, **_kwargs
):
40 val
= sizersc
.wxSizerItem_GetMinSize(self
, *_args
, **_kwargs
)
41 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
43 def SetInitSize(self
, *_args
, **_kwargs
):
44 val
= sizersc
.wxSizerItem_SetInitSize(self
, *_args
, **_kwargs
)
46 def SetRatioWH(self
, *_args
, **_kwargs
):
47 val
= sizersc
.wxSizerItem_SetRatioWH(self
, *_args
, **_kwargs
)
49 def SetRatioSize(self
, *_args
, **_kwargs
):
50 val
= sizersc
.wxSizerItem_SetRatioSize(self
, *_args
, **_kwargs
)
52 def SetRatio(self
, *_args
, **_kwargs
):
53 val
= sizersc
.wxSizerItem_SetRatio(self
, *_args
, **_kwargs
)
55 def GetRatio(self
, *_args
, **_kwargs
):
56 val
= sizersc
.wxSizerItem_GetRatio(self
, *_args
, **_kwargs
)
58 def IsWindow(self
, *_args
, **_kwargs
):
59 val
= sizersc
.wxSizerItem_IsWindow(self
, *_args
, **_kwargs
)
61 def IsSizer(self
, *_args
, **_kwargs
):
62 val
= sizersc
.wxSizerItem_IsSizer(self
, *_args
, **_kwargs
)
64 def IsSpacer(self
, *_args
, **_kwargs
):
65 val
= sizersc
.wxSizerItem_IsSpacer(self
, *_args
, **_kwargs
)
67 def SetProportion(self
, *_args
, **_kwargs
):
68 val
= sizersc
.wxSizerItem_SetProportion(self
, *_args
, **_kwargs
)
70 def GetProportion(self
, *_args
, **_kwargs
):
71 val
= sizersc
.wxSizerItem_GetProportion(self
, *_args
, **_kwargs
)
73 def SetFlag(self
, *_args
, **_kwargs
):
74 val
= sizersc
.wxSizerItem_SetFlag(self
, *_args
, **_kwargs
)
76 def GetFlag(self
, *_args
, **_kwargs
):
77 val
= sizersc
.wxSizerItem_GetFlag(self
, *_args
, **_kwargs
)
79 def SetBorder(self
, *_args
, **_kwargs
):
80 val
= sizersc
.wxSizerItem_SetBorder(self
, *_args
, **_kwargs
)
82 def GetBorder(self
, *_args
, **_kwargs
):
83 val
= sizersc
.wxSizerItem_GetBorder(self
, *_args
, **_kwargs
)
85 def GetWindow(self
, *_args
, **_kwargs
):
86 val
= sizersc
.wxSizerItem_GetWindow(self
, *_args
, **_kwargs
)
88 def SetWindow(self
, *_args
, **_kwargs
):
89 val
= sizersc
.wxSizerItem_SetWindow(self
, *_args
, **_kwargs
)
91 def GetSizer(self
, *_args
, **_kwargs
):
92 val
= sizersc
.wxSizerItem_GetSizer(self
, *_args
, **_kwargs
)
94 def SetSizer(self
, *_args
, **_kwargs
):
95 val
= sizersc
.wxSizerItem_SetSizer(self
, *_args
, **_kwargs
)
97 def GetSpacer(self
, *_args
, **_kwargs
):
98 val
= sizersc
.wxSizerItem_GetSpacer(self
, *_args
, **_kwargs
)
99 if val
: val
= wxSizePtr(val
)
101 def SetSpacer(self
, *_args
, **_kwargs
):
102 val
= sizersc
.wxSizerItem_SetSpacer(self
, *_args
, **_kwargs
)
104 def Show(self
, *_args
, **_kwargs
):
105 val
= sizersc
.wxSizerItem_Show(self
, *_args
, **_kwargs
)
107 def IsShown(self
, *_args
, **_kwargs
):
108 val
= sizersc
.wxSizerItem_IsShown(self
, *_args
, **_kwargs
)
110 def GetPosition(self
, *_args
, **_kwargs
):
111 val
= sizersc
.wxSizerItem_GetPosition(self
, *_args
, **_kwargs
)
112 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
114 def GetUserData(self
, *_args
, **_kwargs
):
115 val
= sizersc
.wxSizerItem_GetUserData(self
, *_args
, **_kwargs
)
118 return "<%s.%s instance; proxy of C++ wxSizerItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
119 SetOption
= SetProportion
120 GetOption
= GetProportion
121 class wxSizerItem(wxSizerItemPtr
):
122 def __init__(self
,this
):
128 class wxSizerPtr(wxObjectPtr
):
129 def __init__(self
,this
):
132 def _setOORInfo(self
, *_args
, **_kwargs
):
133 val
= sizersc
.wxSizer__setOORInfo(self
, *_args
, **_kwargs
)
135 def Destroy(self
, *_args
, **_kwargs
):
136 val
= sizersc
.wxSizer_Destroy(self
, *_args
, **_kwargs
)
138 def _Add(self
, *_args
, **_kwargs
):
139 val
= sizersc
.wxSizer__Add(self
, *_args
, **_kwargs
)
141 def _Insert(self
, *_args
, **_kwargs
):
142 val
= sizersc
.wxSizer__Insert(self
, *_args
, **_kwargs
)
144 def _Prepend(self
, *_args
, **_kwargs
):
145 val
= sizersc
.wxSizer__Prepend(self
, *_args
, **_kwargs
)
147 def Remove(self
, *_args
, **_kwargs
):
148 val
= sizersc
.wxSizer_Remove(self
, *_args
, **_kwargs
)
150 def _SetItemMinSize(self
, *_args
, **_kwargs
):
151 val
= sizersc
.wxSizer__SetItemMinSize(self
, *_args
, **_kwargs
)
153 def SetDimension(self
, *_args
, **_kwargs
):
154 val
= sizersc
.wxSizer_SetDimension(self
, *_args
, **_kwargs
)
156 def SetMinSize(self
, *_args
, **_kwargs
):
157 val
= sizersc
.wxSizer_SetMinSize(self
, *_args
, **_kwargs
)
159 def GetSize(self
, *_args
, **_kwargs
):
160 val
= sizersc
.wxSizer_GetSize(self
, *_args
, **_kwargs
)
161 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
163 def GetPosition(self
, *_args
, **_kwargs
):
164 val
= sizersc
.wxSizer_GetPosition(self
, *_args
, **_kwargs
)
165 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
167 def GetMinSize(self
, *_args
, **_kwargs
):
168 val
= sizersc
.wxSizer_GetMinSize(self
, *_args
, **_kwargs
)
169 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
171 def Layout(self
, *_args
, **_kwargs
):
172 val
= sizersc
.wxSizer_Layout(self
, *_args
, **_kwargs
)
174 def Fit(self
, *_args
, **_kwargs
):
175 val
= sizersc
.wxSizer_Fit(self
, *_args
, **_kwargs
)
176 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
178 def FitInside(self
, *_args
, **_kwargs
):
179 val
= sizersc
.wxSizer_FitInside(self
, *_args
, **_kwargs
)
181 def SetSizeHints(self
, *_args
, **_kwargs
):
182 val
= sizersc
.wxSizer_SetSizeHints(self
, *_args
, **_kwargs
)
184 def SetVirtualSizeHints(self
, *_args
, **_kwargs
):
185 val
= sizersc
.wxSizer_SetVirtualSizeHints(self
, *_args
, **_kwargs
)
187 def Clear(self
, *_args
, **_kwargs
):
188 val
= sizersc
.wxSizer_Clear(self
, *_args
, **_kwargs
)
190 def DeleteWindows(self
, *_args
, **_kwargs
):
191 val
= sizersc
.wxSizer_DeleteWindows(self
, *_args
, **_kwargs
)
193 def GetChildren(self
, *_args
, **_kwargs
):
194 val
= sizersc
.wxSizer_GetChildren(self
, *_args
, **_kwargs
)
196 def Show(self
, *_args
, **_kwargs
):
197 val
= sizersc
.wxSizer_Show(self
, *_args
, **_kwargs
)
199 def Hide(self
, *_args
, **_kwargs
):
200 val
= sizersc
.wxSizer_Hide(self
, *_args
, **_kwargs
)
202 def IsShown(self
, *_args
, **_kwargs
):
203 val
= sizersc
.wxSizer_IsShown(self
, *_args
, **_kwargs
)
205 def ShowItems(self
, *_args
, **_kwargs
):
206 val
= sizersc
.wxSizer_ShowItems(self
, *_args
, **_kwargs
)
209 return "<%s.%s instance; proxy of C++ wxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
211 def Add(self
, item
, *args
, **kw
):
212 if type(item
) == type(1):
213 item
= (item
, args
[0]) # backwards compatibility, args are width, height
215 self
._Add
(item
, *args
, **kw
)
217 def AddMany(self
, widgets
):
218 for childinfo
in widgets
:
219 if type(childinfo
) != type(()):
220 childinfo
= (childinfo
, )
223 def Prepend(self
, item
, *args
, **kw
):
224 if type(item
) == type(1):
225 item
= (item
, args
[0]) # backwards compatibility, args are width, height
227 self
._Prepend
(item
, *args
, **kw
)
229 def Insert(self
, before
, item
, *args
, **kw
):
230 if type(item
) == type(1):
231 item
= (item
, args
[0]) # backwards compatibility, args are width, height
233 self
._Insert
(before
, item
, *args
, **kw
)
236 # for backwards compatibility only
237 AddWindow
= AddSizer
= AddSpacer
= Add
238 PrependWindow
= PrependSizer
= PrependSpacer
= Prepend
239 InsertWindow
= InsertSizer
= InsertSpacer
= Insert
240 RemoveWindow
= RemoveSizer
= RemovePos
= Remove
243 def SetItemMinSize(self
, item
, *args
):
245 return self
._SetItemMinSize
(item
, args
)
247 return self
._SetItemMinSize
(item
, args
[0])
251 def GetSizeTuple(self
):
252 return self
.GetSize().asTuple()
253 def GetPositionTuple(self
):
254 return self
.GetPosition().asTuple()
255 def GetMinSizeTuple(self
):
256 return self
.GetMinSize().asTuple()
258 class wxSizer(wxSizerPtr
):
259 def __init__(self
,this
):
265 class wxPySizerPtr(wxSizerPtr
):
266 def __init__(self
,this
):
269 def _setCallbackInfo(self
, *_args
, **_kwargs
):
270 val
= sizersc
.wxPySizer__setCallbackInfo(self
, *_args
, **_kwargs
)
273 return "<%s.%s instance; proxy of C++ wxPySizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
274 class wxPySizer(wxPySizerPtr
):
275 def __init__(self
,*_args
,**_kwargs
):
276 self
.this
= sizersc
.new_wxPySizer(*_args
,**_kwargs
)
278 self
._setCallbackInfo
(self
, wxPySizer
)
279 self
._setOORInfo
(self
)
284 class wxBoxSizerPtr(wxSizerPtr
):
285 def __init__(self
,this
):
288 def GetOrientation(self
, *_args
, **_kwargs
):
289 val
= sizersc
.wxBoxSizer_GetOrientation(self
, *_args
, **_kwargs
)
291 def SetOrientation(self
, *_args
, **_kwargs
):
292 val
= sizersc
.wxBoxSizer_SetOrientation(self
, *_args
, **_kwargs
)
294 def RecalcSizes(self
, *_args
, **_kwargs
):
295 val
= sizersc
.wxBoxSizer_RecalcSizes(self
, *_args
, **_kwargs
)
297 def CalcMin(self
, *_args
, **_kwargs
):
298 val
= sizersc
.wxBoxSizer_CalcMin(self
, *_args
, **_kwargs
)
299 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
302 return "<%s.%s instance; proxy of C++ wxBoxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
303 class wxBoxSizer(wxBoxSizerPtr
):
304 def __init__(self
,*_args
,**_kwargs
):
305 self
.this
= sizersc
.new_wxBoxSizer(*_args
,**_kwargs
)
307 self
._setOORInfo
(self
)
312 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
313 def __init__(self
,this
):
316 def GetStaticBox(self
, *_args
, **_kwargs
):
317 val
= sizersc
.wxStaticBoxSizer_GetStaticBox(self
, *_args
, **_kwargs
)
319 def RecalcSizes(self
, *_args
, **_kwargs
):
320 val
= sizersc
.wxStaticBoxSizer_RecalcSizes(self
, *_args
, **_kwargs
)
322 def CalcMin(self
, *_args
, **_kwargs
):
323 val
= sizersc
.wxStaticBoxSizer_CalcMin(self
, *_args
, **_kwargs
)
324 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
327 return "<%s.%s instance; proxy of C++ wxStaticBoxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
328 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
329 def __init__(self
,*_args
,**_kwargs
):
330 self
.this
= sizersc
.new_wxStaticBoxSizer(*_args
,**_kwargs
)
332 self
._setOORInfo
(self
)
337 class wxNotebookSizerPtr(wxSizerPtr
):
338 def __init__(self
,this
):
341 def RecalcSizes(self
, *_args
, **_kwargs
):
342 val
= sizersc
.wxNotebookSizer_RecalcSizes(self
, *_args
, **_kwargs
)
344 def CalcMin(self
, *_args
, **_kwargs
):
345 val
= sizersc
.wxNotebookSizer_CalcMin(self
, *_args
, **_kwargs
)
346 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
348 def GetNotebook(self
, *_args
, **_kwargs
):
349 val
= sizersc
.wxNotebookSizer_GetNotebook(self
, *_args
, **_kwargs
)
352 return "<%s.%s instance; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
353 class wxNotebookSizer(wxNotebookSizerPtr
):
354 def __init__(self
,*_args
,**_kwargs
):
355 self
.this
= sizersc
.new_wxNotebookSizer(*_args
,**_kwargs
)
357 self
._setOORInfo
(self
)
362 class wxGridSizerPtr(wxSizerPtr
):
363 def __init__(self
,this
):
366 def RecalcSizes(self
, *_args
, **_kwargs
):
367 val
= sizersc
.wxGridSizer_RecalcSizes(self
, *_args
, **_kwargs
)
369 def CalcMin(self
, *_args
, **_kwargs
):
370 val
= sizersc
.wxGridSizer_CalcMin(self
, *_args
, **_kwargs
)
371 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
373 def SetCols(self
, *_args
, **_kwargs
):
374 val
= sizersc
.wxGridSizer_SetCols(self
, *_args
, **_kwargs
)
376 def SetRows(self
, *_args
, **_kwargs
):
377 val
= sizersc
.wxGridSizer_SetRows(self
, *_args
, **_kwargs
)
379 def SetVGap(self
, *_args
, **_kwargs
):
380 val
= sizersc
.wxGridSizer_SetVGap(self
, *_args
, **_kwargs
)
382 def SetHGap(self
, *_args
, **_kwargs
):
383 val
= sizersc
.wxGridSizer_SetHGap(self
, *_args
, **_kwargs
)
385 def GetCols(self
, *_args
, **_kwargs
):
386 val
= sizersc
.wxGridSizer_GetCols(self
, *_args
, **_kwargs
)
388 def GetRows(self
, *_args
, **_kwargs
):
389 val
= sizersc
.wxGridSizer_GetRows(self
, *_args
, **_kwargs
)
391 def GetVGap(self
, *_args
, **_kwargs
):
392 val
= sizersc
.wxGridSizer_GetVGap(self
, *_args
, **_kwargs
)
394 def GetHGap(self
, *_args
, **_kwargs
):
395 val
= sizersc
.wxGridSizer_GetHGap(self
, *_args
, **_kwargs
)
398 return "<%s.%s instance; proxy of C++ wxGridSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
399 class wxGridSizer(wxGridSizerPtr
):
400 def __init__(self
,*_args
,**_kwargs
):
401 self
.this
= sizersc
.new_wxGridSizer(*_args
,**_kwargs
)
403 self
._setOORInfo
(self
)
408 class wxFlexGridSizerPtr(wxGridSizerPtr
):
409 def __init__(self
,this
):
412 def RecalcSizes(self
, *_args
, **_kwargs
):
413 val
= sizersc
.wxFlexGridSizer_RecalcSizes(self
, *_args
, **_kwargs
)
415 def CalcMin(self
, *_args
, **_kwargs
):
416 val
= sizersc
.wxFlexGridSizer_CalcMin(self
, *_args
, **_kwargs
)
417 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
419 def AddGrowableRow(self
, *_args
, **_kwargs
):
420 val
= sizersc
.wxFlexGridSizer_AddGrowableRow(self
, *_args
, **_kwargs
)
422 def RemoveGrowableRow(self
, *_args
, **_kwargs
):
423 val
= sizersc
.wxFlexGridSizer_RemoveGrowableRow(self
, *_args
, **_kwargs
)
425 def AddGrowableCol(self
, *_args
, **_kwargs
):
426 val
= sizersc
.wxFlexGridSizer_AddGrowableCol(self
, *_args
, **_kwargs
)
428 def RemoveGrowableCol(self
, *_args
, **_kwargs
):
429 val
= sizersc
.wxFlexGridSizer_RemoveGrowableCol(self
, *_args
, **_kwargs
)
431 def SetFlexibleDirection(self
, *_args
, **_kwargs
):
432 val
= sizersc
.wxFlexGridSizer_SetFlexibleDirection(self
, *_args
, **_kwargs
)
434 def GetFlexibleDirection(self
, *_args
, **_kwargs
):
435 val
= sizersc
.wxFlexGridSizer_GetFlexibleDirection(self
, *_args
, **_kwargs
)
437 def SetNonFlexibleGrowMode(self
, *_args
, **_kwargs
):
438 val
= sizersc
.wxFlexGridSizer_SetNonFlexibleGrowMode(self
, *_args
, **_kwargs
)
440 def GetNonFlexibleGrowMode(self
, *_args
, **_kwargs
):
441 val
= sizersc
.wxFlexGridSizer_GetNonFlexibleGrowMode(self
, *_args
, **_kwargs
)
444 return "<%s.%s instance; proxy of C++ wxFlexGridSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
445 class wxFlexGridSizer(wxFlexGridSizerPtr
):
446 def __init__(self
,*_args
,**_kwargs
):
447 self
.this
= sizersc
.new_wxFlexGridSizer(*_args
,**_kwargs
)
449 self
._setOORInfo
(self
)
456 #-------------- FUNCTION WRAPPERS ------------------
460 #-------------- VARIABLE WRAPPERS ------------------
462 wxFLEX_GROWMODE_NONE
= sizersc
.wxFLEX_GROWMODE_NONE
463 wxFLEX_GROWMODE_SPECIFIED
= sizersc
.wxFLEX_GROWMODE_SPECIFIED
464 wxFLEX_GROWMODE_ALL
= sizersc
.wxFLEX_GROWMODE_ALL