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 DeleteWindows(self
, *_args
, **_kwargs
):
22 val
= apply(sizersc
.wxSizerItem_DeleteWindows
,(self
,) + _args
, _kwargs
)
24 def GetPosition(self
, *_args
, **_kwargs
):
25 val
= apply(sizersc
.wxSizerItem_GetPosition
,(self
,) + _args
, _kwargs
)
26 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
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 SetRatioWH(self
, *_args
, **_kwargs
):
40 val
= apply(sizersc
.wxSizerItem_SetRatioWH
,(self
,) + _args
, _kwargs
)
42 def SetRatioSize(self
, *_args
, **_kwargs
):
43 val
= apply(sizersc
.wxSizerItem_SetRatioSize
,(self
,) + _args
, _kwargs
)
45 def SetRatio(self
, *_args
, **_kwargs
):
46 val
= apply(sizersc
.wxSizerItem_SetRatio
,(self
,) + _args
, _kwargs
)
48 def GetRatio(self
, *_args
, **_kwargs
):
49 val
= apply(sizersc
.wxSizerItem_GetRatio
,(self
,) + _args
, _kwargs
)
51 def IsWindow(self
, *_args
, **_kwargs
):
52 val
= apply(sizersc
.wxSizerItem_IsWindow
,(self
,) + _args
, _kwargs
)
54 def IsSizer(self
, *_args
, **_kwargs
):
55 val
= apply(sizersc
.wxSizerItem_IsSizer
,(self
,) + _args
, _kwargs
)
57 def IsSpacer(self
, *_args
, **_kwargs
):
58 val
= apply(sizersc
.wxSizerItem_IsSpacer
,(self
,) + _args
, _kwargs
)
60 def GetWindow(self
, *_args
, **_kwargs
):
61 val
= apply(sizersc
.wxSizerItem_GetWindow
,(self
,) + _args
, _kwargs
)
63 def SetWindow(self
, *_args
, **_kwargs
):
64 val
= apply(sizersc
.wxSizerItem_SetWindow
,(self
,) + _args
, _kwargs
)
66 def GetSizer(self
, *_args
, **_kwargs
):
67 val
= apply(sizersc
.wxSizerItem_GetSizer
,(self
,) + _args
, _kwargs
)
69 def SetSizer(self
, *_args
, **_kwargs
):
70 val
= apply(sizersc
.wxSizerItem_SetSizer
,(self
,) + _args
, _kwargs
)
72 def GetOption(self
, *_args
, **_kwargs
):
73 val
= apply(sizersc
.wxSizerItem_GetOption
,(self
,) + _args
, _kwargs
)
75 def GetFlag(self
, *_args
, **_kwargs
):
76 val
= apply(sizersc
.wxSizerItem_GetFlag
,(self
,) + _args
, _kwargs
)
78 def GetBorder(self
, *_args
, **_kwargs
):
79 val
= apply(sizersc
.wxSizerItem_GetBorder
,(self
,) + _args
, _kwargs
)
81 def SetInitSize(self
, *_args
, **_kwargs
):
82 val
= apply(sizersc
.wxSizerItem_SetInitSize
,(self
,) + _args
, _kwargs
)
84 def SetOption(self
, *_args
, **_kwargs
):
85 val
= apply(sizersc
.wxSizerItem_SetOption
,(self
,) + _args
, _kwargs
)
87 def SetFlag(self
, *_args
, **_kwargs
):
88 val
= apply(sizersc
.wxSizerItem_SetFlag
,(self
,) + _args
, _kwargs
)
90 def SetBorder(self
, *_args
, **_kwargs
):
91 val
= apply(sizersc
.wxSizerItem_SetBorder
,(self
,) + _args
, _kwargs
)
93 def GetUserData(self
, *_args
, **_kwargs
):
94 val
= apply(sizersc
.wxSizerItem_GetUserData
,(self
,) + _args
, _kwargs
)
97 return "<C wxSizerItem instance at %s>" % (self
.this
,)
98 class wxSizerItem(wxSizerItemPtr
):
99 def __init__(self
,this
):
105 class wxSizerPtr(wxObjectPtr
):
106 def __init__(self
,this
):
109 def _setOORInfo(self
, *_args
, **_kwargs
):
110 val
= apply(sizersc
.wxSizer__setOORInfo
,(self
,) + _args
, _kwargs
)
112 def Destroy(self
, *_args
, **_kwargs
):
113 val
= apply(sizersc
.wxSizer_Destroy
,(self
,) + _args
, _kwargs
)
115 def AddWindow(self
, *_args
, **_kwargs
):
116 val
= apply(sizersc
.wxSizer_AddWindow
,(self
,) + _args
, _kwargs
)
118 def AddSizer(self
, *_args
, **_kwargs
):
119 val
= apply(sizersc
.wxSizer_AddSizer
,(self
,) + _args
, _kwargs
)
121 def AddSpacer(self
, *_args
, **_kwargs
):
122 val
= apply(sizersc
.wxSizer_AddSpacer
,(self
,) + _args
, _kwargs
)
124 def InsertWindow(self
, *_args
, **_kwargs
):
125 val
= apply(sizersc
.wxSizer_InsertWindow
,(self
,) + _args
, _kwargs
)
127 def InsertSizer(self
, *_args
, **_kwargs
):
128 val
= apply(sizersc
.wxSizer_InsertSizer
,(self
,) + _args
, _kwargs
)
130 def InsertSpacer(self
, *_args
, **_kwargs
):
131 val
= apply(sizersc
.wxSizer_InsertSpacer
,(self
,) + _args
, _kwargs
)
133 def PrependWindow(self
, *_args
, **_kwargs
):
134 val
= apply(sizersc
.wxSizer_PrependWindow
,(self
,) + _args
, _kwargs
)
136 def PrependSizer(self
, *_args
, **_kwargs
):
137 val
= apply(sizersc
.wxSizer_PrependSizer
,(self
,) + _args
, _kwargs
)
139 def PrependSpacer(self
, *_args
, **_kwargs
):
140 val
= apply(sizersc
.wxSizer_PrependSpacer
,(self
,) + _args
, _kwargs
)
142 def RemoveWindow(self
, *_args
, **_kwargs
):
143 val
= apply(sizersc
.wxSizer_RemoveWindow
,(self
,) + _args
, _kwargs
)
145 def RemoveSizer(self
, *_args
, **_kwargs
):
146 val
= apply(sizersc
.wxSizer_RemoveSizer
,(self
,) + _args
, _kwargs
)
148 def RemovePos(self
, *_args
, **_kwargs
):
149 val
= apply(sizersc
.wxSizer_RemovePos
,(self
,) + _args
, _kwargs
)
151 def SetDimension(self
, *_args
, **_kwargs
):
152 val
= apply(sizersc
.wxSizer_SetDimension
,(self
,) + _args
, _kwargs
)
154 def SetMinSize(self
, *_args
, **_kwargs
):
155 val
= apply(sizersc
.wxSizer_SetMinSize
,(self
,) + _args
, _kwargs
)
157 def SetItemMinSizeWindow(self
, *_args
, **_kwargs
):
158 val
= apply(sizersc
.wxSizer_SetItemMinSizeWindow
,(self
,) + _args
, _kwargs
)
160 def SetItemMinSizeSizer(self
, *_args
, **_kwargs
):
161 val
= apply(sizersc
.wxSizer_SetItemMinSizeSizer
,(self
,) + _args
, _kwargs
)
163 def SetItemMinSizePos(self
, *_args
, **_kwargs
):
164 val
= apply(sizersc
.wxSizer_SetItemMinSizePos
,(self
,) + _args
, _kwargs
)
166 def GetSize(self
, *_args
, **_kwargs
):
167 val
= apply(sizersc
.wxSizer_GetSize
,(self
,) + _args
, _kwargs
)
168 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
170 def GetPosition(self
, *_args
, **_kwargs
):
171 val
= apply(sizersc
.wxSizer_GetPosition
,(self
,) + _args
, _kwargs
)
172 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
174 def GetMinSize(self
, *_args
, **_kwargs
):
175 val
= apply(sizersc
.wxSizer_GetMinSize
,(self
,) + _args
, _kwargs
)
176 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
178 def Layout(self
, *_args
, **_kwargs
):
179 val
= apply(sizersc
.wxSizer_Layout
,(self
,) + _args
, _kwargs
)
181 def Fit(self
, *_args
, **_kwargs
):
182 val
= apply(sizersc
.wxSizer_Fit
,(self
,) + _args
, _kwargs
)
184 def SetSizeHints(self
, *_args
, **_kwargs
):
185 val
= apply(sizersc
.wxSizer_SetSizeHints
,(self
,) + _args
, _kwargs
)
187 def Clear(self
, *_args
, **_kwargs
):
188 val
= apply(sizersc
.wxSizer_Clear
,(self
,) + _args
, _kwargs
)
190 def DeleteWindows(self
, *_args
, **_kwargs
):
191 val
= apply(sizersc
.wxSizer_DeleteWindows
,(self
,) + _args
, _kwargs
)
193 def GetChildren(self
, *_args
, **_kwargs
):
194 val
= apply(sizersc
.wxSizer_GetChildren
,(self
,) + _args
, _kwargs
)
197 return "<C wxSizer instance at %s>" % (self
.this
,)
199 def Add(self
, *args
, **kw
):
200 if type(args
[0]) == type(1):
201 apply(self
.AddSpacer
, args
, kw
)
202 elif string
.find(args
[0].this
, 'Sizer') != -1:
203 apply(self
.AddSizer
, args
, kw
)
205 apply(self
.AddWindow
, args
, kw
)
207 def Insert(self
, *args
, **kw
):
208 if type(args
[1]) == type(1):
209 apply(self
.InsertSpacer
, args
, kw
)
210 elif string
.find(args
[1].this
, 'Sizer') != -1:
211 apply(self
.InsertSizer
, args
, kw
)
213 apply(self
.InsertWindow
, args
, kw
)
215 def Prepend(self
, *args
, **kw
):
216 if type(args
[0]) == type(1):
217 apply(self
.PrependSpacer
, args
, kw
)
218 elif string
.find(args
[0].this
, 'Sizer') != -1:
219 apply(self
.PrependSizer
, args
, kw
)
221 apply(self
.PrependWindow
, args
, kw
)
223 def Remove(self
, *args
, **kw
):
224 if type(args
[0]) == type(1):
225 apply(self
.RemovePos
, args
, kw
)
226 elif string
.find(args
[0].this
, 'Sizer') != -1:
227 apply(self
.RemoveSizer
, args
, kw
)
229 apply(self
.RemoveWindow
, args
, kw
)
231 def AddMany(self
, widgets
):
232 for childinfo
in widgets
:
233 if type(childinfo
) != type(()):
234 childinfo
= (childinfo
, )
235 apply(self
.Add
, childinfo
)
238 def SetItemMinSize(self
, *args
):
239 if type(args
[0]) == type(1):
240 apply(self
.SetItemMinSizePos
, args
)
241 elif string
.find(args
[0].this
, 'Sizer') != -1:
242 apply(self
.SetItemMinSizeSizer
, args
)
244 apply(self
.SetItemMinSizeWindow
, args
)
246 class wxSizer(wxSizerPtr
):
247 def __init__(self
,this
):
253 class wxPySizerPtr(wxSizerPtr
):
254 def __init__(self
,this
):
257 def _setCallbackInfo(self
, *_args
, **_kwargs
):
258 val
= apply(sizersc
.wxPySizer__setCallbackInfo
,(self
,) + _args
, _kwargs
)
261 return "<C wxPySizer instance at %s>" % (self
.this
,)
262 class wxPySizer(wxPySizerPtr
):
263 def __init__(self
,*_args
,**_kwargs
):
264 self
.this
= apply(sizersc
.new_wxPySizer
,_args
,_kwargs
)
266 self
._setCallbackInfo
(self
, wxPySizer
)
267 self
._setOORInfo
(self
)
272 class wxBoxSizerPtr(wxSizerPtr
):
273 def __init__(self
,this
):
276 def GetOrientation(self
, *_args
, **_kwargs
):
277 val
= apply(sizersc
.wxBoxSizer_GetOrientation
,(self
,) + _args
, _kwargs
)
279 def RecalcSizes(self
, *_args
, **_kwargs
):
280 val
= apply(sizersc
.wxBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
282 def CalcMin(self
, *_args
, **_kwargs
):
283 val
= apply(sizersc
.wxBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
284 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
287 return "<C wxBoxSizer instance at %s>" % (self
.this
,)
288 class wxBoxSizer(wxBoxSizerPtr
):
289 def __init__(self
,*_args
,**_kwargs
):
290 self
.this
= apply(sizersc
.new_wxBoxSizer
,_args
,_kwargs
)
292 self
._setOORInfo
(self
)
297 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
298 def __init__(self
,this
):
301 def GetStaticBox(self
, *_args
, **_kwargs
):
302 val
= apply(sizersc
.wxStaticBoxSizer_GetStaticBox
,(self
,) + _args
, _kwargs
)
304 def RecalcSizes(self
, *_args
, **_kwargs
):
305 val
= apply(sizersc
.wxStaticBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
307 def CalcMin(self
, *_args
, **_kwargs
):
308 val
= apply(sizersc
.wxStaticBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
309 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
312 return "<C wxStaticBoxSizer instance at %s>" % (self
.this
,)
313 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
314 def __init__(self
,*_args
,**_kwargs
):
315 self
.this
= apply(sizersc
.new_wxStaticBoxSizer
,_args
,_kwargs
)
317 self
._setOORInfo
(self
)
322 class wxNotebookSizerPtr(wxSizerPtr
):
323 def __init__(self
,this
):
326 def RecalcSizes(self
, *_args
, **_kwargs
):
327 val
= apply(sizersc
.wxNotebookSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
329 def CalcMin(self
, *_args
, **_kwargs
):
330 val
= apply(sizersc
.wxNotebookSizer_CalcMin
,(self
,) + _args
, _kwargs
)
331 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
333 def GetNotebook(self
, *_args
, **_kwargs
):
334 val
= apply(sizersc
.wxNotebookSizer_GetNotebook
,(self
,) + _args
, _kwargs
)
337 return "<C wxNotebookSizer instance at %s>" % (self
.this
,)
338 class wxNotebookSizer(wxNotebookSizerPtr
):
339 def __init__(self
,*_args
,**_kwargs
):
340 self
.this
= apply(sizersc
.new_wxNotebookSizer
,_args
,_kwargs
)
342 self
._setOORInfo
(self
)
347 class wxGridSizerPtr(wxSizerPtr
):
348 def __init__(self
,this
):
351 def RecalcSizes(self
, *_args
, **_kwargs
):
352 val
= apply(sizersc
.wxGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
354 def CalcMin(self
, *_args
, **_kwargs
):
355 val
= apply(sizersc
.wxGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
356 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
358 def SetCols(self
, *_args
, **_kwargs
):
359 val
= apply(sizersc
.wxGridSizer_SetCols
,(self
,) + _args
, _kwargs
)
361 def SetRows(self
, *_args
, **_kwargs
):
362 val
= apply(sizersc
.wxGridSizer_SetRows
,(self
,) + _args
, _kwargs
)
364 def SetVGap(self
, *_args
, **_kwargs
):
365 val
= apply(sizersc
.wxGridSizer_SetVGap
,(self
,) + _args
, _kwargs
)
367 def SetHGap(self
, *_args
, **_kwargs
):
368 val
= apply(sizersc
.wxGridSizer_SetHGap
,(self
,) + _args
, _kwargs
)
370 def GetCols(self
, *_args
, **_kwargs
):
371 val
= apply(sizersc
.wxGridSizer_GetCols
,(self
,) + _args
, _kwargs
)
373 def GetRows(self
, *_args
, **_kwargs
):
374 val
= apply(sizersc
.wxGridSizer_GetRows
,(self
,) + _args
, _kwargs
)
376 def GetVGap(self
, *_args
, **_kwargs
):
377 val
= apply(sizersc
.wxGridSizer_GetVGap
,(self
,) + _args
, _kwargs
)
379 def GetHGap(self
, *_args
, **_kwargs
):
380 val
= apply(sizersc
.wxGridSizer_GetHGap
,(self
,) + _args
, _kwargs
)
383 return "<C wxGridSizer instance at %s>" % (self
.this
,)
384 class wxGridSizer(wxGridSizerPtr
):
385 def __init__(self
,*_args
,**_kwargs
):
386 self
.this
= apply(sizersc
.new_wxGridSizer
,_args
,_kwargs
)
388 self
._setOORInfo
(self
)
393 class wxFlexGridSizerPtr(wxGridSizerPtr
):
394 def __init__(self
,this
):
397 def RecalcSizes(self
, *_args
, **_kwargs
):
398 val
= apply(sizersc
.wxFlexGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
400 def CalcMin(self
, *_args
, **_kwargs
):
401 val
= apply(sizersc
.wxFlexGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
402 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
404 def AddGrowableRow(self
, *_args
, **_kwargs
):
405 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableRow
,(self
,) + _args
, _kwargs
)
407 def RemoveGrowableRow(self
, *_args
, **_kwargs
):
408 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableRow
,(self
,) + _args
, _kwargs
)
410 def AddGrowableCol(self
, *_args
, **_kwargs
):
411 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableCol
,(self
,) + _args
, _kwargs
)
413 def RemoveGrowableCol(self
, *_args
, **_kwargs
):
414 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableCol
,(self
,) + _args
, _kwargs
)
417 return "<C wxFlexGridSizer instance at %s>" % (self
.this
,)
418 class wxFlexGridSizer(wxFlexGridSizerPtr
):
419 def __init__(self
,*_args
,**_kwargs
):
420 self
.this
= apply(sizersc
.new_wxFlexGridSizer
,_args
,_kwargs
)
422 self
._setOORInfo
(self
)
429 #-------------- FUNCTION WRAPPERS ------------------
433 #-------------- VARIABLE WRAPPERS ------------------