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
= apply(sizersc
.wxSizerItem_DeleteWindows
,(self
,) + _args
, _kwargs
)
25 def DetachSizer(self
, *_args
, **_kwargs
):
26 val
= apply(sizersc
.wxSizerItem_DetachSizer
,(self
,) + _args
, _kwargs
)
28 def GetSize(self
, *_args
, **_kwargs
):
29 val
= apply(sizersc
.wxSizerItem_GetSize
,(self
,) + _args
, _kwargs
)
30 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
32 def CalcMin(self
, *_args
, **_kwargs
):
33 val
= apply(sizersc
.wxSizerItem_CalcMin
,(self
,) + _args
, _kwargs
)
34 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
36 def SetDimension(self
, *_args
, **_kwargs
):
37 val
= apply(sizersc
.wxSizerItem_SetDimension
,(self
,) + _args
, _kwargs
)
39 def GetMinSize(self
, *_args
, **_kwargs
):
40 val
= apply(sizersc
.wxSizerItem_GetMinSize
,(self
,) + _args
, _kwargs
)
41 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
43 def SetInitSize(self
, *_args
, **_kwargs
):
44 val
= apply(sizersc
.wxSizerItem_SetInitSize
,(self
,) + _args
, _kwargs
)
46 def SetRatioWH(self
, *_args
, **_kwargs
):
47 val
= apply(sizersc
.wxSizerItem_SetRatioWH
,(self
,) + _args
, _kwargs
)
49 def SetRatioSize(self
, *_args
, **_kwargs
):
50 val
= apply(sizersc
.wxSizerItem_SetRatioSize
,(self
,) + _args
, _kwargs
)
52 def SetRatio(self
, *_args
, **_kwargs
):
53 val
= apply(sizersc
.wxSizerItem_SetRatio
,(self
,) + _args
, _kwargs
)
55 def GetRatio(self
, *_args
, **_kwargs
):
56 val
= apply(sizersc
.wxSizerItem_GetRatio
,(self
,) + _args
, _kwargs
)
58 def IsWindow(self
, *_args
, **_kwargs
):
59 val
= apply(sizersc
.wxSizerItem_IsWindow
,(self
,) + _args
, _kwargs
)
61 def IsSizer(self
, *_args
, **_kwargs
):
62 val
= apply(sizersc
.wxSizerItem_IsSizer
,(self
,) + _args
, _kwargs
)
64 def IsSpacer(self
, *_args
, **_kwargs
):
65 val
= apply(sizersc
.wxSizerItem_IsSpacer
,(self
,) + _args
, _kwargs
)
67 def SetProportion(self
, *_args
, **_kwargs
):
68 val
= apply(sizersc
.wxSizerItem_SetProportion
,(self
,) + _args
, _kwargs
)
70 def GetProportion(self
, *_args
, **_kwargs
):
71 val
= apply(sizersc
.wxSizerItem_GetProportion
,(self
,) + _args
, _kwargs
)
73 def SetFlag(self
, *_args
, **_kwargs
):
74 val
= apply(sizersc
.wxSizerItem_SetFlag
,(self
,) + _args
, _kwargs
)
76 def GetFlag(self
, *_args
, **_kwargs
):
77 val
= apply(sizersc
.wxSizerItem_GetFlag
,(self
,) + _args
, _kwargs
)
79 def SetBorder(self
, *_args
, **_kwargs
):
80 val
= apply(sizersc
.wxSizerItem_SetBorder
,(self
,) + _args
, _kwargs
)
82 def GetBorder(self
, *_args
, **_kwargs
):
83 val
= apply(sizersc
.wxSizerItem_GetBorder
,(self
,) + _args
, _kwargs
)
85 def GetWindow(self
, *_args
, **_kwargs
):
86 val
= apply(sizersc
.wxSizerItem_GetWindow
,(self
,) + _args
, _kwargs
)
88 def SetWindow(self
, *_args
, **_kwargs
):
89 val
= apply(sizersc
.wxSizerItem_SetWindow
,(self
,) + _args
, _kwargs
)
91 def GetSizer(self
, *_args
, **_kwargs
):
92 val
= apply(sizersc
.wxSizerItem_GetSizer
,(self
,) + _args
, _kwargs
)
94 def SetSizer(self
, *_args
, **_kwargs
):
95 val
= apply(sizersc
.wxSizerItem_SetSizer
,(self
,) + _args
, _kwargs
)
97 def GetSpacer(self
, *_args
, **_kwargs
):
98 val
= apply(sizersc
.wxSizerItem_GetSpacer
,(self
,) + _args
, _kwargs
)
99 if val
: val
= wxSizePtr(val
)
101 def SetSpacer(self
, *_args
, **_kwargs
):
102 val
= apply(sizersc
.wxSizerItem_SetSpacer
,(self
,) + _args
, _kwargs
)
104 def Show(self
, *_args
, **_kwargs
):
105 val
= apply(sizersc
.wxSizerItem_Show
,(self
,) + _args
, _kwargs
)
107 def IsShown(self
, *_args
, **_kwargs
):
108 val
= apply(sizersc
.wxSizerItem_IsShown
,(self
,) + _args
, _kwargs
)
110 def GetPosition(self
, *_args
, **_kwargs
):
111 val
= apply(sizersc
.wxSizerItem_GetPosition
,(self
,) + _args
, _kwargs
)
112 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
114 def GetUserData(self
, *_args
, **_kwargs
):
115 val
= apply(sizersc
.wxSizerItem_GetUserData
,(self
,) + _args
, _kwargs
)
118 return "<C wxSizerItem instance at %s>" % (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
= apply(sizersc
.wxSizer__setOORInfo
,(self
,) + _args
, _kwargs
)
135 def Destroy(self
, *_args
, **_kwargs
):
136 val
= apply(sizersc
.wxSizer_Destroy
,(self
,) + _args
, _kwargs
)
138 def AddWindow(self
, *_args
, **_kwargs
):
139 val
= apply(sizersc
.wxSizer_AddWindow
,(self
,) + _args
, _kwargs
)
141 def AddSizer(self
, *_args
, **_kwargs
):
142 val
= apply(sizersc
.wxSizer_AddSizer
,(self
,) + _args
, _kwargs
)
144 def AddSpacer(self
, *_args
, **_kwargs
):
145 val
= apply(sizersc
.wxSizer_AddSpacer
,(self
,) + _args
, _kwargs
)
147 def InsertWindow(self
, *_args
, **_kwargs
):
148 val
= apply(sizersc
.wxSizer_InsertWindow
,(self
,) + _args
, _kwargs
)
150 def InsertSizer(self
, *_args
, **_kwargs
):
151 val
= apply(sizersc
.wxSizer_InsertSizer
,(self
,) + _args
, _kwargs
)
153 def InsertSpacer(self
, *_args
, **_kwargs
):
154 val
= apply(sizersc
.wxSizer_InsertSpacer
,(self
,) + _args
, _kwargs
)
156 def PrependWindow(self
, *_args
, **_kwargs
):
157 val
= apply(sizersc
.wxSizer_PrependWindow
,(self
,) + _args
, _kwargs
)
159 def PrependSizer(self
, *_args
, **_kwargs
):
160 val
= apply(sizersc
.wxSizer_PrependSizer
,(self
,) + _args
, _kwargs
)
162 def PrependSpacer(self
, *_args
, **_kwargs
):
163 val
= apply(sizersc
.wxSizer_PrependSpacer
,(self
,) + _args
, _kwargs
)
165 def RemoveWindow(self
, *_args
, **_kwargs
):
166 val
= apply(sizersc
.wxSizer_RemoveWindow
,(self
,) + _args
, _kwargs
)
168 def RemoveSizer(self
, *_args
, **_kwargs
):
169 val
= apply(sizersc
.wxSizer_RemoveSizer
,(self
,) + _args
, _kwargs
)
171 def RemovePos(self
, *_args
, **_kwargs
):
172 val
= apply(sizersc
.wxSizer_RemovePos
,(self
,) + _args
, _kwargs
)
174 def DetachWindow(self
, *_args
, **_kwargs
):
175 val
= apply(sizersc
.wxSizer_DetachWindow
,(self
,) + _args
, _kwargs
)
177 def DetachSizer(self
, *_args
, **_kwargs
):
178 val
= apply(sizersc
.wxSizer_DetachSizer
,(self
,) + _args
, _kwargs
)
180 def DetachPos(self
, *_args
, **_kwargs
):
181 val
= apply(sizersc
.wxSizer_DetachPos
,(self
,) + _args
, _kwargs
)
183 def Clear(self
, *_args
, **_kwargs
):
184 val
= apply(sizersc
.wxSizer_Clear
,(self
,) + _args
, _kwargs
)
186 def DeleteWindows(self
, *_args
, **_kwargs
):
187 val
= apply(sizersc
.wxSizer_DeleteWindows
,(self
,) + _args
, _kwargs
)
189 def SetMinSize(self
, *_args
, **_kwargs
):
190 val
= apply(sizersc
.wxSizer_SetMinSize
,(self
,) + _args
, _kwargs
)
192 def SetItemMinSizeWindow(self
, *_args
, **_kwargs
):
193 val
= apply(sizersc
.wxSizer_SetItemMinSizeWindow
,(self
,) + _args
, _kwargs
)
195 def SetItemMinSizeSizer(self
, *_args
, **_kwargs
):
196 val
= apply(sizersc
.wxSizer_SetItemMinSizeSizer
,(self
,) + _args
, _kwargs
)
198 def SetItemMinSizePos(self
, *_args
, **_kwargs
):
199 val
= apply(sizersc
.wxSizer_SetItemMinSizePos
,(self
,) + _args
, _kwargs
)
201 def SetItemMinSizeWindowWH(self
, *_args
, **_kwargs
):
202 val
= apply(sizersc
.wxSizer_SetItemMinSizeWindowWH
,(self
,) + _args
, _kwargs
)
204 def SetItemMinSizeSizerWH(self
, *_args
, **_kwargs
):
205 val
= apply(sizersc
.wxSizer_SetItemMinSizeSizerWH
,(self
,) + _args
, _kwargs
)
207 def SetItemMinSizePosWH(self
, *_args
, **_kwargs
):
208 val
= apply(sizersc
.wxSizer_SetItemMinSizePosWH
,(self
,) + _args
, _kwargs
)
210 def GetSize(self
, *_args
, **_kwargs
):
211 val
= apply(sizersc
.wxSizer_GetSize
,(self
,) + _args
, _kwargs
)
212 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
214 def GetPosition(self
, *_args
, **_kwargs
):
215 val
= apply(sizersc
.wxSizer_GetPosition
,(self
,) + _args
, _kwargs
)
216 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
218 def GetMinSize(self
, *_args
, **_kwargs
):
219 val
= apply(sizersc
.wxSizer_GetMinSize
,(self
,) + _args
, _kwargs
)
220 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
222 def Layout(self
, *_args
, **_kwargs
):
223 val
= apply(sizersc
.wxSizer_Layout
,(self
,) + _args
, _kwargs
)
225 def Fit(self
, *_args
, **_kwargs
):
226 val
= apply(sizersc
.wxSizer_Fit
,(self
,) + _args
, _kwargs
)
227 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
229 def FitInside(self
, *_args
, **_kwargs
):
230 val
= apply(sizersc
.wxSizer_FitInside
,(self
,) + _args
, _kwargs
)
232 def SetSizeHints(self
, *_args
, **_kwargs
):
233 val
= apply(sizersc
.wxSizer_SetSizeHints
,(self
,) + _args
, _kwargs
)
235 def SetVirtualSizeHints(self
, *_args
, **_kwargs
):
236 val
= apply(sizersc
.wxSizer_SetVirtualSizeHints
,(self
,) + _args
, _kwargs
)
238 def GetChildren(self
, *_args
, **_kwargs
):
239 val
= apply(sizersc
.wxSizer_GetChildren
,(self
,) + _args
, _kwargs
)
241 def SetDimension(self
, *_args
, **_kwargs
):
242 val
= apply(sizersc
.wxSizer_SetDimension
,(self
,) + _args
, _kwargs
)
244 def ShowWindow(self
, *_args
, **_kwargs
):
245 val
= apply(sizersc
.wxSizer_ShowWindow
,(self
,) + _args
, _kwargs
)
247 def ShowSizer(self
, *_args
, **_kwargs
):
248 val
= apply(sizersc
.wxSizer_ShowSizer
,(self
,) + _args
, _kwargs
)
250 def ShowPos(self
, *_args
, **_kwargs
):
251 val
= apply(sizersc
.wxSizer_ShowPos
,(self
,) + _args
, _kwargs
)
253 def HideWindow(self
, *_args
, **_kwargs
):
254 val
= apply(sizersc
.wxSizer_HideWindow
,(self
,) + _args
, _kwargs
)
256 def HideSizer(self
, *_args
, **_kwargs
):
257 val
= apply(sizersc
.wxSizer_HideSizer
,(self
,) + _args
, _kwargs
)
259 def HidePos(self
, *_args
, **_kwargs
):
260 val
= apply(sizersc
.wxSizer_HidePos
,(self
,) + _args
, _kwargs
)
262 def IsShownWindow(self
, *_args
, **_kwargs
):
263 val
= apply(sizersc
.wxSizer_IsShownWindow
,(self
,) + _args
, _kwargs
)
265 def IsShownSizer(self
, *_args
, **_kwargs
):
266 val
= apply(sizersc
.wxSizer_IsShownSizer
,(self
,) + _args
, _kwargs
)
268 def IsShownPos(self
, *_args
, **_kwargs
):
269 val
= apply(sizersc
.wxSizer_IsShownPos
,(self
,) + _args
, _kwargs
)
271 def ShowItems(self
, *_args
, **_kwargs
):
272 val
= apply(sizersc
.wxSizer_ShowItems
,(self
,) + _args
, _kwargs
)
275 return "<C wxSizer instance at %s>" % (self
.this
,)
277 def Add(self
, *args
, **kw
):
278 if type(args
[0]) == type(1):
279 apply(self
.AddSpacer
, args
, kw
)
280 elif isinstance(args
[0], wxSizerPtr
):
281 apply(self
.AddSizer
, args
, kw
)
282 elif isinstance(args
[0], wxWindowPtr
):
283 apply(self
.AddWindow
, args
, kw
)
285 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
287 def Insert(self
, *args
, **kw
):
288 if type(args
[1]) == type(1):
289 apply(self
.InsertSpacer
, args
, kw
)
290 elif isinstance(args
[1], wxSizerPtr
):
291 apply(self
.InsertSizer
, args
, kw
)
292 elif isinstance(args
[1], wxWindowPtr
):
293 apply(self
.InsertWindow
, args
, kw
)
295 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
297 def Prepend(self
, *args
, **kw
):
298 if type(args
[0]) == type(1):
299 apply(self
.PrependSpacer
, args
, kw
)
300 elif isinstance(args
[0], wxSizerPtr
):
301 apply(self
.PrependSizer
, args
, kw
)
302 elif isinstance(args
[0], wxWindowPtr
):
303 apply(self
.PrependWindow
, args
, kw
)
305 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
307 def Remove(self
, *args
, **kw
):
308 if type(args
[0]) == type(1):
309 return apply(self
.RemovePos
, args
, kw
)
310 elif isinstance(args
[0], wxSizerPtr
):
311 return apply(self
.RemoveSizer
, args
, kw
)
312 elif isinstance(args
[0], wxWindowPtr
):
313 return apply(self
.RemoveWindow
, args
, kw
)
315 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
317 def Detach(self
, *args
, **kw
):
318 if type(args
[0]) == type(1):
319 return apply(self
.DetachPos
, args
, kw
)
320 elif isinstance(args
[0], wxSizerPtr
):
321 return apply(self
.DetachSizer
, args
, kw
)
322 elif isinstance(args
[0], wxWindowPtr
):
323 return apply(self
.DetachWindow
, args
, kw
)
325 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
327 def AddMany(self
, widgets
):
328 for childinfo
in widgets
:
329 if type(childinfo
) != type(()):
330 childinfo
= (childinfo
, )
331 apply(self
.Add
, childinfo
)
334 def SetItemMinSize(self
, *args
):
335 if type(args
[0]) == type(1):
336 apply(self
.SetItemMinSizePos
, args
)
337 elif isinstance(args
[0], wxSizerPtr
):
338 apply(self
.SetItemMinSizeSizer
, args
)
339 elif isinstance(args
[0], wxWindowPtr
):
340 apply(self
.SetItemMinSizeWindow
, args
)
342 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
344 def SetItemMinSizeWH(self
, *args
):
345 if type(args
[0]) == type(1):
346 apply(self
.SetItemMinSizePosWH
, args
)
347 elif isinstance(args
[0], wxSizerPtr
):
348 apply(self
.SetItemMinSizeSizerWH
, args
)
349 elif isinstance(args
[0], wxWindowPtr
):
350 apply(self
.SetItemMinSizeWindowWH
, args
)
352 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
355 def GetSizeTuple(self
):
356 return self
.GetSize().asTuple()
357 def GetPositionTuple(self
):
358 return self
.GetPosition().asTuple()
359 def GetMinSizeTuple(self
):
360 return self
.GetMinSize().asTuple()
363 def Show(self
, *args
):
364 if type(args
[0]) == type(1):
365 apply(self
.ShowPos
, args
)
366 elif isinstance(args
[0], wxSizerPtr
):
367 apply(self
.ShowSizer
, args
)
368 elif isinstance(args
[0], wxWindowPtr
):
369 apply(self
.ShowWindow
, args
)
371 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
373 def Hide(self
, *args
):
374 if type(args
[0]) == type(1):
375 apply(self
.HidePos
, args
)
376 elif isinstance(args
[0], wxSizerPtr
):
377 apply(self
.HideSizer
, args
)
378 elif isinstance(args
[0], wxWindowPtr
):
379 apply(self
.HideWindow
, args
)
381 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
383 def IsShown(self
, *args
):
384 if type(args
[0]) == type(1):
385 return apply(self
.IsShownPos
, args
)
386 elif isinstance(args
[0], wxSizerPtr
):
387 return apply(self
.IsShownSizer
, args
)
388 elif isinstance(args
[0], wxWindowPtr
):
389 return apply(self
.IsShownWindow
, args
)
391 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
393 class wxSizer(wxSizerPtr
):
394 def __init__(self
,this
):
400 class wxPySizerPtr(wxSizerPtr
):
401 def __init__(self
,this
):
404 def _setCallbackInfo(self
, *_args
, **_kwargs
):
405 val
= apply(sizersc
.wxPySizer__setCallbackInfo
,(self
,) + _args
, _kwargs
)
408 return "<C wxPySizer instance at %s>" % (self
.this
,)
409 class wxPySizer(wxPySizerPtr
):
410 def __init__(self
,*_args
,**_kwargs
):
411 self
.this
= apply(sizersc
.new_wxPySizer
,_args
,_kwargs
)
413 self
._setCallbackInfo
(self
, wxPySizer
)
414 self
._setOORInfo
(self
)
419 class wxBoxSizerPtr(wxSizerPtr
):
420 def __init__(self
,this
):
423 def GetOrientation(self
, *_args
, **_kwargs
):
424 val
= apply(sizersc
.wxBoxSizer_GetOrientation
,(self
,) + _args
, _kwargs
)
426 def SetOrientation(self
, *_args
, **_kwargs
):
427 val
= apply(sizersc
.wxBoxSizer_SetOrientation
,(self
,) + _args
, _kwargs
)
429 def RecalcSizes(self
, *_args
, **_kwargs
):
430 val
= apply(sizersc
.wxBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
432 def CalcMin(self
, *_args
, **_kwargs
):
433 val
= apply(sizersc
.wxBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
434 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
437 return "<C wxBoxSizer instance at %s>" % (self
.this
,)
438 class wxBoxSizer(wxBoxSizerPtr
):
439 def __init__(self
,*_args
,**_kwargs
):
440 self
.this
= apply(sizersc
.new_wxBoxSizer
,_args
,_kwargs
)
442 self
._setOORInfo
(self
)
447 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
448 def __init__(self
,this
):
451 def GetStaticBox(self
, *_args
, **_kwargs
):
452 val
= apply(sizersc
.wxStaticBoxSizer_GetStaticBox
,(self
,) + _args
, _kwargs
)
454 def RecalcSizes(self
, *_args
, **_kwargs
):
455 val
= apply(sizersc
.wxStaticBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
457 def CalcMin(self
, *_args
, **_kwargs
):
458 val
= apply(sizersc
.wxStaticBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
459 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
462 return "<C wxStaticBoxSizer instance at %s>" % (self
.this
,)
463 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
464 def __init__(self
,*_args
,**_kwargs
):
465 self
.this
= apply(sizersc
.new_wxStaticBoxSizer
,_args
,_kwargs
)
467 self
._setOORInfo
(self
)
472 class wxNotebookSizerPtr(wxSizerPtr
):
473 def __init__(self
,this
):
476 def RecalcSizes(self
, *_args
, **_kwargs
):
477 val
= apply(sizersc
.wxNotebookSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
479 def CalcMin(self
, *_args
, **_kwargs
):
480 val
= apply(sizersc
.wxNotebookSizer_CalcMin
,(self
,) + _args
, _kwargs
)
481 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
483 def GetNotebook(self
, *_args
, **_kwargs
):
484 val
= apply(sizersc
.wxNotebookSizer_GetNotebook
,(self
,) + _args
, _kwargs
)
487 return "<C wxNotebookSizer instance at %s>" % (self
.this
,)
488 class wxNotebookSizer(wxNotebookSizerPtr
):
489 def __init__(self
,*_args
,**_kwargs
):
490 self
.this
= apply(sizersc
.new_wxNotebookSizer
,_args
,_kwargs
)
492 self
._setOORInfo
(self
)
497 class wxGridSizerPtr(wxSizerPtr
):
498 def __init__(self
,this
):
501 def RecalcSizes(self
, *_args
, **_kwargs
):
502 val
= apply(sizersc
.wxGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
504 def CalcMin(self
, *_args
, **_kwargs
):
505 val
= apply(sizersc
.wxGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
506 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
508 def SetCols(self
, *_args
, **_kwargs
):
509 val
= apply(sizersc
.wxGridSizer_SetCols
,(self
,) + _args
, _kwargs
)
511 def SetRows(self
, *_args
, **_kwargs
):
512 val
= apply(sizersc
.wxGridSizer_SetRows
,(self
,) + _args
, _kwargs
)
514 def SetVGap(self
, *_args
, **_kwargs
):
515 val
= apply(sizersc
.wxGridSizer_SetVGap
,(self
,) + _args
, _kwargs
)
517 def SetHGap(self
, *_args
, **_kwargs
):
518 val
= apply(sizersc
.wxGridSizer_SetHGap
,(self
,) + _args
, _kwargs
)
520 def GetCols(self
, *_args
, **_kwargs
):
521 val
= apply(sizersc
.wxGridSizer_GetCols
,(self
,) + _args
, _kwargs
)
523 def GetRows(self
, *_args
, **_kwargs
):
524 val
= apply(sizersc
.wxGridSizer_GetRows
,(self
,) + _args
, _kwargs
)
526 def GetVGap(self
, *_args
, **_kwargs
):
527 val
= apply(sizersc
.wxGridSizer_GetVGap
,(self
,) + _args
, _kwargs
)
529 def GetHGap(self
, *_args
, **_kwargs
):
530 val
= apply(sizersc
.wxGridSizer_GetHGap
,(self
,) + _args
, _kwargs
)
533 return "<C wxGridSizer instance at %s>" % (self
.this
,)
534 class wxGridSizer(wxGridSizerPtr
):
535 def __init__(self
,*_args
,**_kwargs
):
536 self
.this
= apply(sizersc
.new_wxGridSizer
,_args
,_kwargs
)
538 self
._setOORInfo
(self
)
543 class wxFlexGridSizerPtr(wxGridSizerPtr
):
544 def __init__(self
,this
):
547 def RecalcSizes(self
, *_args
, **_kwargs
):
548 val
= apply(sizersc
.wxFlexGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
550 def CalcMin(self
, *_args
, **_kwargs
):
551 val
= apply(sizersc
.wxFlexGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
552 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
554 def AddGrowableRow(self
, *_args
, **_kwargs
):
555 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableRow
,(self
,) + _args
, _kwargs
)
557 def RemoveGrowableRow(self
, *_args
, **_kwargs
):
558 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableRow
,(self
,) + _args
, _kwargs
)
560 def AddGrowableCol(self
, *_args
, **_kwargs
):
561 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableCol
,(self
,) + _args
, _kwargs
)
563 def RemoveGrowableCol(self
, *_args
, **_kwargs
):
564 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableCol
,(self
,) + _args
, _kwargs
)
566 def SetFlexibleDirection(self
, *_args
, **_kwargs
):
567 val
= apply(sizersc
.wxFlexGridSizer_SetFlexibleDirection
,(self
,) + _args
, _kwargs
)
569 def GetFlexibleDirection(self
, *_args
, **_kwargs
):
570 val
= apply(sizersc
.wxFlexGridSizer_GetFlexibleDirection
,(self
,) + _args
, _kwargs
)
572 def SetNonFlexibleGrowMode(self
, *_args
, **_kwargs
):
573 val
= apply(sizersc
.wxFlexGridSizer_SetNonFlexibleGrowMode
,(self
,) + _args
, _kwargs
)
575 def GetNonFlexibleGrowMode(self
, *_args
, **_kwargs
):
576 val
= apply(sizersc
.wxFlexGridSizer_GetNonFlexibleGrowMode
,(self
,) + _args
, _kwargs
)
579 return "<C wxFlexGridSizer instance at %s>" % (self
.this
,)
580 class wxFlexGridSizer(wxFlexGridSizerPtr
):
581 def __init__(self
,*_args
,**_kwargs
):
582 self
.this
= apply(sizersc
.new_wxFlexGridSizer
,_args
,_kwargs
)
584 self
._setOORInfo
(self
)
591 #-------------- FUNCTION WRAPPERS ------------------
595 #-------------- VARIABLE WRAPPERS ------------------
597 wxFLEX_GROWMODE_NONE
= sizersc
.wxFLEX_GROWMODE_NONE
598 wxFLEX_GROWMODE_SPECIFIED
= sizersc
.wxFLEX_GROWMODE_SPECIFIED
599 wxFLEX_GROWMODE_ALL
= sizersc
.wxFLEX_GROWMODE_ALL