1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
12 from controls
import *
17 class wxSizerItemPtr(wxObjectPtr
):
18 def __init__(self
,this
):
21 def GetPosition(self
, *_args
, **_kwargs
):
22 val
= apply(sizersc
.wxSizerItem_GetPosition
,(self
,) + _args
, _kwargs
)
23 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
25 def GetSize(self
, *_args
, **_kwargs
):
26 val
= apply(sizersc
.wxSizerItem_GetSize
,(self
,) + _args
, _kwargs
)
27 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
29 def CalcMin(self
, *_args
, **_kwargs
):
30 val
= apply(sizersc
.wxSizerItem_CalcMin
,(self
,) + _args
, _kwargs
)
31 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
33 def SetDimension(self
, *_args
, **_kwargs
):
34 val
= apply(sizersc
.wxSizerItem_SetDimension
,(self
,) + _args
, _kwargs
)
36 def SetRatioWH(self
, *_args
, **_kwargs
):
37 val
= apply(sizersc
.wxSizerItem_SetRatioWH
,(self
,) + _args
, _kwargs
)
39 def SetRatioSize(self
, *_args
, **_kwargs
):
40 val
= apply(sizersc
.wxSizerItem_SetRatioSize
,(self
,) + _args
, _kwargs
)
42 def SetRatio(self
, *_args
, **_kwargs
):
43 val
= apply(sizersc
.wxSizerItem_SetRatio
,(self
,) + _args
, _kwargs
)
45 def GetRatio(self
, *_args
, **_kwargs
):
46 val
= apply(sizersc
.wxSizerItem_GetRatio
,(self
,) + _args
, _kwargs
)
48 def IsWindow(self
, *_args
, **_kwargs
):
49 val
= apply(sizersc
.wxSizerItem_IsWindow
,(self
,) + _args
, _kwargs
)
51 def IsSizer(self
, *_args
, **_kwargs
):
52 val
= apply(sizersc
.wxSizerItem_IsSizer
,(self
,) + _args
, _kwargs
)
54 def IsSpacer(self
, *_args
, **_kwargs
):
55 val
= apply(sizersc
.wxSizerItem_IsSpacer
,(self
,) + _args
, _kwargs
)
57 def GetWindow(self
, *_args
, **_kwargs
):
58 val
= apply(sizersc
.wxSizerItem_GetWindow
,(self
,) + _args
, _kwargs
)
60 def SetWindow(self
, *_args
, **_kwargs
):
61 val
= apply(sizersc
.wxSizerItem_SetWindow
,(self
,) + _args
, _kwargs
)
63 def GetSizer(self
, *_args
, **_kwargs
):
64 val
= apply(sizersc
.wxSizerItem_GetSizer
,(self
,) + _args
, _kwargs
)
66 def SetSizer(self
, *_args
, **_kwargs
):
67 val
= apply(sizersc
.wxSizerItem_SetSizer
,(self
,) + _args
, _kwargs
)
69 def GetOption(self
, *_args
, **_kwargs
):
70 val
= apply(sizersc
.wxSizerItem_GetOption
,(self
,) + _args
, _kwargs
)
72 def GetFlag(self
, *_args
, **_kwargs
):
73 val
= apply(sizersc
.wxSizerItem_GetFlag
,(self
,) + _args
, _kwargs
)
75 def GetBorder(self
, *_args
, **_kwargs
):
76 val
= apply(sizersc
.wxSizerItem_GetBorder
,(self
,) + _args
, _kwargs
)
78 def SetInitSize(self
, *_args
, **_kwargs
):
79 val
= apply(sizersc
.wxSizerItem_SetInitSize
,(self
,) + _args
, _kwargs
)
81 def SetOption(self
, *_args
, **_kwargs
):
82 val
= apply(sizersc
.wxSizerItem_SetOption
,(self
,) + _args
, _kwargs
)
84 def SetFlag(self
, *_args
, **_kwargs
):
85 val
= apply(sizersc
.wxSizerItem_SetFlag
,(self
,) + _args
, _kwargs
)
87 def SetBorder(self
, *_args
, **_kwargs
):
88 val
= apply(sizersc
.wxSizerItem_SetBorder
,(self
,) + _args
, _kwargs
)
90 def GetUserData(self
, *_args
, **_kwargs
):
91 val
= apply(sizersc
.wxSizerItem_GetUserData
,(self
,) + _args
, _kwargs
)
94 return "<C wxSizerItem instance at %s>" % (self
.this
,)
95 class wxSizerItem(wxSizerItemPtr
):
96 def __init__(self
,this
):
102 class wxSizerPtr(wxObjectPtr
):
103 def __init__(self
,this
):
106 def _setOORInfo(self
, *_args
, **_kwargs
):
107 val
= apply(sizersc
.wxSizer__setOORInfo
,(self
,) + _args
, _kwargs
)
109 def Destroy(self
, *_args
, **_kwargs
):
110 val
= apply(sizersc
.wxSizer_Destroy
,(self
,) + _args
, _kwargs
)
112 def AddWindow(self
, *_args
, **_kwargs
):
113 val
= apply(sizersc
.wxSizer_AddWindow
,(self
,) + _args
, _kwargs
)
115 def AddSizer(self
, *_args
, **_kwargs
):
116 val
= apply(sizersc
.wxSizer_AddSizer
,(self
,) + _args
, _kwargs
)
118 def AddSpacer(self
, *_args
, **_kwargs
):
119 val
= apply(sizersc
.wxSizer_AddSpacer
,(self
,) + _args
, _kwargs
)
121 def InsertWindow(self
, *_args
, **_kwargs
):
122 val
= apply(sizersc
.wxSizer_InsertWindow
,(self
,) + _args
, _kwargs
)
124 def InsertSizer(self
, *_args
, **_kwargs
):
125 val
= apply(sizersc
.wxSizer_InsertSizer
,(self
,) + _args
, _kwargs
)
127 def InsertSpacer(self
, *_args
, **_kwargs
):
128 val
= apply(sizersc
.wxSizer_InsertSpacer
,(self
,) + _args
, _kwargs
)
130 def PrependWindow(self
, *_args
, **_kwargs
):
131 val
= apply(sizersc
.wxSizer_PrependWindow
,(self
,) + _args
, _kwargs
)
133 def PrependSizer(self
, *_args
, **_kwargs
):
134 val
= apply(sizersc
.wxSizer_PrependSizer
,(self
,) + _args
, _kwargs
)
136 def PrependSpacer(self
, *_args
, **_kwargs
):
137 val
= apply(sizersc
.wxSizer_PrependSpacer
,(self
,) + _args
, _kwargs
)
139 def RemoveWindow(self
, *_args
, **_kwargs
):
140 val
= apply(sizersc
.wxSizer_RemoveWindow
,(self
,) + _args
, _kwargs
)
142 def RemoveSizer(self
, *_args
, **_kwargs
):
143 val
= apply(sizersc
.wxSizer_RemoveSizer
,(self
,) + _args
, _kwargs
)
145 def RemovePos(self
, *_args
, **_kwargs
):
146 val
= apply(sizersc
.wxSizer_RemovePos
,(self
,) + _args
, _kwargs
)
148 def SetDimension(self
, *_args
, **_kwargs
):
149 val
= apply(sizersc
.wxSizer_SetDimension
,(self
,) + _args
, _kwargs
)
151 def SetMinSize(self
, *_args
, **_kwargs
):
152 val
= apply(sizersc
.wxSizer_SetMinSize
,(self
,) + _args
, _kwargs
)
154 def SetItemMinSizeWindow(self
, *_args
, **_kwargs
):
155 val
= apply(sizersc
.wxSizer_SetItemMinSizeWindow
,(self
,) + _args
, _kwargs
)
157 def SetItemMinSizeSizer(self
, *_args
, **_kwargs
):
158 val
= apply(sizersc
.wxSizer_SetItemMinSizeSizer
,(self
,) + _args
, _kwargs
)
160 def SetItemMinSizePos(self
, *_args
, **_kwargs
):
161 val
= apply(sizersc
.wxSizer_SetItemMinSizePos
,(self
,) + _args
, _kwargs
)
163 def GetSize(self
, *_args
, **_kwargs
):
164 val
= apply(sizersc
.wxSizer_GetSize
,(self
,) + _args
, _kwargs
)
165 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
167 def GetPosition(self
, *_args
, **_kwargs
):
168 val
= apply(sizersc
.wxSizer_GetPosition
,(self
,) + _args
, _kwargs
)
169 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
171 def GetMinSize(self
, *_args
, **_kwargs
):
172 val
= apply(sizersc
.wxSizer_GetMinSize
,(self
,) + _args
, _kwargs
)
173 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
175 def Layout(self
, *_args
, **_kwargs
):
176 val
= apply(sizersc
.wxSizer_Layout
,(self
,) + _args
, _kwargs
)
178 def Fit(self
, *_args
, **_kwargs
):
179 val
= apply(sizersc
.wxSizer_Fit
,(self
,) + _args
, _kwargs
)
181 def SetSizeHints(self
, *_args
, **_kwargs
):
182 val
= apply(sizersc
.wxSizer_SetSizeHints
,(self
,) + _args
, _kwargs
)
184 def GetChildren(self
, *_args
, **_kwargs
):
185 val
= apply(sizersc
.wxSizer_GetChildren
,(self
,) + _args
, _kwargs
)
188 return "<C wxSizer instance at %s>" % (self
.this
,)
190 def Add(self
, *args
, **kw
):
191 if type(args
[0]) == type(1):
192 apply(self
.AddSpacer
, args
, kw
)
193 elif string
.find(args
[0].this
, 'Sizer') != -1:
194 apply(self
.AddSizer
, args
, kw
)
196 apply(self
.AddWindow
, args
, kw
)
198 def Insert(self
, *args
, **kw
):
199 if type(args
[1]) == type(1):
200 apply(self
.InsertSpacer
, args
, kw
)
201 elif string
.find(args
[1].this
, 'Sizer') != -1:
202 apply(self
.InsertSizer
, args
, kw
)
204 apply(self
.InsertWindow
, args
, kw
)
206 def Prepend(self
, *args
, **kw
):
207 if type(args
[0]) == type(1):
208 apply(self
.PrependSpacer
, args
, kw
)
209 elif string
.find(args
[0].this
, 'Sizer') != -1:
210 apply(self
.PrependSizer
, args
, kw
)
212 apply(self
.PrependWindow
, args
, kw
)
214 def Remove(self
, *args
, **kw
):
215 if type(args
[0]) == type(1):
216 apply(self
.RemovePos
, args
, kw
)
217 elif string
.find(args
[0].this
, 'Sizer') != -1:
218 apply(self
.RemoveSizer
, args
, kw
)
220 apply(self
.RemoveWindow
, args
, kw
)
222 def AddMany(self
, widgets
):
223 for childinfo
in widgets
:
224 if type(childinfo
) != type(()):
225 childinfo
= (childinfo
, )
226 apply(self
.Add
, childinfo
)
229 def SetItemMinSize(self
, *args
):
230 if type(args
[0]) == type(1):
231 apply(self
.SetItemMinSizePos
, args
)
232 elif string
.find(args
[0].this
, 'Sizer') != -1:
233 apply(self
.SetItemMinSizeSizer
, args
)
235 apply(self
.SetItemMinSizeWindow
, args
)
237 class wxSizer(wxSizerPtr
):
238 def __init__(self
,this
):
244 class wxPySizerPtr(wxSizerPtr
):
245 def __init__(self
,this
):
248 def _setCallbackInfo(self
, *_args
, **_kwargs
):
249 val
= apply(sizersc
.wxPySizer__setCallbackInfo
,(self
,) + _args
, _kwargs
)
252 return "<C wxPySizer instance at %s>" % (self
.this
,)
253 class wxPySizer(wxPySizerPtr
):
254 def __init__(self
,*_args
,**_kwargs
):
255 self
.this
= apply(sizersc
.new_wxPySizer
,_args
,_kwargs
)
257 self
._setCallbackInfo
(self
, wxPySizer
)
258 self
._setOORInfo
(self
)
263 class wxBoxSizerPtr(wxSizerPtr
):
264 def __init__(self
,this
):
267 def GetOrientation(self
, *_args
, **_kwargs
):
268 val
= apply(sizersc
.wxBoxSizer_GetOrientation
,(self
,) + _args
, _kwargs
)
270 def RecalcSizes(self
, *_args
, **_kwargs
):
271 val
= apply(sizersc
.wxBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
273 def CalcMin(self
, *_args
, **_kwargs
):
274 val
= apply(sizersc
.wxBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
275 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
278 return "<C wxBoxSizer instance at %s>" % (self
.this
,)
279 class wxBoxSizer(wxBoxSizerPtr
):
280 def __init__(self
,*_args
,**_kwargs
):
281 self
.this
= apply(sizersc
.new_wxBoxSizer
,_args
,_kwargs
)
283 self
._setOORInfo
(self
)
288 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
289 def __init__(self
,this
):
292 def GetStaticBox(self
, *_args
, **_kwargs
):
293 val
= apply(sizersc
.wxStaticBoxSizer_GetStaticBox
,(self
,) + _args
, _kwargs
)
295 def RecalcSizes(self
, *_args
, **_kwargs
):
296 val
= apply(sizersc
.wxStaticBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
298 def CalcMin(self
, *_args
, **_kwargs
):
299 val
= apply(sizersc
.wxStaticBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
300 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
303 return "<C wxStaticBoxSizer instance at %s>" % (self
.this
,)
304 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
305 def __init__(self
,*_args
,**_kwargs
):
306 self
.this
= apply(sizersc
.new_wxStaticBoxSizer
,_args
,_kwargs
)
308 self
._setOORInfo
(self
)
313 class wxNotebookSizerPtr(wxSizerPtr
):
314 def __init__(self
,this
):
317 def RecalcSizes(self
, *_args
, **_kwargs
):
318 val
= apply(sizersc
.wxNotebookSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
320 def CalcMin(self
, *_args
, **_kwargs
):
321 val
= apply(sizersc
.wxNotebookSizer_CalcMin
,(self
,) + _args
, _kwargs
)
322 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
324 def GetNotebook(self
, *_args
, **_kwargs
):
325 val
= apply(sizersc
.wxNotebookSizer_GetNotebook
,(self
,) + _args
, _kwargs
)
328 return "<C wxNotebookSizer instance at %s>" % (self
.this
,)
329 class wxNotebookSizer(wxNotebookSizerPtr
):
330 def __init__(self
,*_args
,**_kwargs
):
331 self
.this
= apply(sizersc
.new_wxNotebookSizer
,_args
,_kwargs
)
333 self
._setOORInfo
(self
)
338 class wxGridSizerPtr(wxSizerPtr
):
339 def __init__(self
,this
):
342 def RecalcSizes(self
, *_args
, **_kwargs
):
343 val
= apply(sizersc
.wxGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
345 def CalcMin(self
, *_args
, **_kwargs
):
346 val
= apply(sizersc
.wxGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
347 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
349 def SetCols(self
, *_args
, **_kwargs
):
350 val
= apply(sizersc
.wxGridSizer_SetCols
,(self
,) + _args
, _kwargs
)
352 def SetRows(self
, *_args
, **_kwargs
):
353 val
= apply(sizersc
.wxGridSizer_SetRows
,(self
,) + _args
, _kwargs
)
355 def SetVGap(self
, *_args
, **_kwargs
):
356 val
= apply(sizersc
.wxGridSizer_SetVGap
,(self
,) + _args
, _kwargs
)
358 def SetHGap(self
, *_args
, **_kwargs
):
359 val
= apply(sizersc
.wxGridSizer_SetHGap
,(self
,) + _args
, _kwargs
)
361 def GetCols(self
, *_args
, **_kwargs
):
362 val
= apply(sizersc
.wxGridSizer_GetCols
,(self
,) + _args
, _kwargs
)
364 def GetRows(self
, *_args
, **_kwargs
):
365 val
= apply(sizersc
.wxGridSizer_GetRows
,(self
,) + _args
, _kwargs
)
367 def GetVGap(self
, *_args
, **_kwargs
):
368 val
= apply(sizersc
.wxGridSizer_GetVGap
,(self
,) + _args
, _kwargs
)
370 def GetHGap(self
, *_args
, **_kwargs
):
371 val
= apply(sizersc
.wxGridSizer_GetHGap
,(self
,) + _args
, _kwargs
)
374 return "<C wxGridSizer instance at %s>" % (self
.this
,)
375 class wxGridSizer(wxGridSizerPtr
):
376 def __init__(self
,*_args
,**_kwargs
):
377 self
.this
= apply(sizersc
.new_wxGridSizer
,_args
,_kwargs
)
379 self
._setOORInfo
(self
)
384 class wxFlexGridSizerPtr(wxGridSizerPtr
):
385 def __init__(self
,this
):
388 def RecalcSizes(self
, *_args
, **_kwargs
):
389 val
= apply(sizersc
.wxFlexGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
391 def CalcMin(self
, *_args
, **_kwargs
):
392 val
= apply(sizersc
.wxFlexGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
393 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
395 def AddGrowableRow(self
, *_args
, **_kwargs
):
396 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableRow
,(self
,) + _args
, _kwargs
)
398 def RemoveGrowableRow(self
, *_args
, **_kwargs
):
399 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableRow
,(self
,) + _args
, _kwargs
)
401 def AddGrowableCol(self
, *_args
, **_kwargs
):
402 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableCol
,(self
,) + _args
, _kwargs
)
404 def RemoveGrowableCol(self
, *_args
, **_kwargs
):
405 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableCol
,(self
,) + _args
, _kwargs
)
408 return "<C wxFlexGridSizer instance at %s>" % (self
.this
,)
409 class wxFlexGridSizer(wxFlexGridSizerPtr
):
410 def __init__(self
,*_args
,**_kwargs
):
411 self
.this
= apply(sizersc
.new_wxFlexGridSizer
,_args
,_kwargs
)
413 self
._setOORInfo
(self
)
420 #-------------- FUNCTION WRAPPERS ------------------
424 #-------------- VARIABLE WRAPPERS ------------------