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 Destroy(self
, *_args
, **_kwargs
):
107 val
= apply(sizersc
.wxSizer_Destroy
,(self
,) + _args
, _kwargs
)
109 def AddWindow(self
, *_args
, **_kwargs
):
110 val
= apply(sizersc
.wxSizer_AddWindow
,(self
,) + _args
, _kwargs
)
112 def AddSizer(self
, *_args
, **_kwargs
):
113 val
= apply(sizersc
.wxSizer_AddSizer
,(self
,) + _args
, _kwargs
)
115 def AddSpacer(self
, *_args
, **_kwargs
):
116 val
= apply(sizersc
.wxSizer_AddSpacer
,(self
,) + _args
, _kwargs
)
118 def InsertWindow(self
, *_args
, **_kwargs
):
119 val
= apply(sizersc
.wxSizer_InsertWindow
,(self
,) + _args
, _kwargs
)
121 def InsertSizer(self
, *_args
, **_kwargs
):
122 val
= apply(sizersc
.wxSizer_InsertSizer
,(self
,) + _args
, _kwargs
)
124 def InsertSpacer(self
, *_args
, **_kwargs
):
125 val
= apply(sizersc
.wxSizer_InsertSpacer
,(self
,) + _args
, _kwargs
)
127 def PrependWindow(self
, *_args
, **_kwargs
):
128 val
= apply(sizersc
.wxSizer_PrependWindow
,(self
,) + _args
, _kwargs
)
130 def PrependSizer(self
, *_args
, **_kwargs
):
131 val
= apply(sizersc
.wxSizer_PrependSizer
,(self
,) + _args
, _kwargs
)
133 def PrependSpacer(self
, *_args
, **_kwargs
):
134 val
= apply(sizersc
.wxSizer_PrependSpacer
,(self
,) + _args
, _kwargs
)
136 def RemoveWindow(self
, *_args
, **_kwargs
):
137 val
= apply(sizersc
.wxSizer_RemoveWindow
,(self
,) + _args
, _kwargs
)
139 def RemoveSizer(self
, *_args
, **_kwargs
):
140 val
= apply(sizersc
.wxSizer_RemoveSizer
,(self
,) + _args
, _kwargs
)
142 def RemovePos(self
, *_args
, **_kwargs
):
143 val
= apply(sizersc
.wxSizer_RemovePos
,(self
,) + _args
, _kwargs
)
145 def SetDimension(self
, *_args
, **_kwargs
):
146 val
= apply(sizersc
.wxSizer_SetDimension
,(self
,) + _args
, _kwargs
)
148 def SetMinSize(self
, *_args
, **_kwargs
):
149 val
= apply(sizersc
.wxSizer_SetMinSize
,(self
,) + _args
, _kwargs
)
151 def SetItemMinSizeWindow(self
, *_args
, **_kwargs
):
152 val
= apply(sizersc
.wxSizer_SetItemMinSizeWindow
,(self
,) + _args
, _kwargs
)
154 def SetItemMinSizeSizer(self
, *_args
, **_kwargs
):
155 val
= apply(sizersc
.wxSizer_SetItemMinSizeSizer
,(self
,) + _args
, _kwargs
)
157 def SetItemMinSizePos(self
, *_args
, **_kwargs
):
158 val
= apply(sizersc
.wxSizer_SetItemMinSizePos
,(self
,) + _args
, _kwargs
)
160 def GetSize(self
, *_args
, **_kwargs
):
161 val
= apply(sizersc
.wxSizer_GetSize
,(self
,) + _args
, _kwargs
)
162 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
164 def GetPosition(self
, *_args
, **_kwargs
):
165 val
= apply(sizersc
.wxSizer_GetPosition
,(self
,) + _args
, _kwargs
)
166 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
168 def GetMinSize(self
, *_args
, **_kwargs
):
169 val
= apply(sizersc
.wxSizer_GetMinSize
,(self
,) + _args
, _kwargs
)
170 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
172 def Layout(self
, *_args
, **_kwargs
):
173 val
= apply(sizersc
.wxSizer_Layout
,(self
,) + _args
, _kwargs
)
175 def Fit(self
, *_args
, **_kwargs
):
176 val
= apply(sizersc
.wxSizer_Fit
,(self
,) + _args
, _kwargs
)
178 def SetSizeHints(self
, *_args
, **_kwargs
):
179 val
= apply(sizersc
.wxSizer_SetSizeHints
,(self
,) + _args
, _kwargs
)
181 def GetChildren(self
, *_args
, **_kwargs
):
182 val
= apply(sizersc
.wxSizer_GetChildren
,(self
,) + _args
, _kwargs
)
185 return "<C wxSizer instance at %s>" % (self
.this
,)
187 def Add(self
, *args
, **kw
):
188 if type(args
[0]) == type(1):
189 apply(self
.AddSpacer
, args
, kw
)
190 elif string
.find(args
[0].this
, 'Sizer') != -1:
191 apply(self
.AddSizer
, args
, kw
)
193 apply(self
.AddWindow
, args
, kw
)
195 def Insert(self
, *args
, **kw
):
196 if type(args
[1]) == type(1):
197 apply(self
.InsertSpacer
, args
, kw
)
198 elif string
.find(args
[1].this
, 'Sizer') != -1:
199 apply(self
.InsertSizer
, args
, kw
)
201 apply(self
.InsertWindow
, args
, kw
)
203 def Prepend(self
, *args
, **kw
):
204 if type(args
[0]) == type(1):
205 apply(self
.PrependSpacer
, args
, kw
)
206 elif string
.find(args
[0].this
, 'Sizer') != -1:
207 apply(self
.PrependSizer
, args
, kw
)
209 apply(self
.PrependWindow
, args
, kw
)
211 def Remove(self
, *args
, **kw
):
212 if type(args
[0]) == type(1):
213 apply(self
.RemovePos
, args
, kw
)
214 elif string
.find(args
[0].this
, 'Sizer') != -1:
215 apply(self
.RemoveSizer
, args
, kw
)
217 apply(self
.RemoveWindow
, args
, kw
)
219 def AddMany(self
, widgets
):
220 for childinfo
in widgets
:
221 if type(childinfo
) != type(()):
222 childinfo
= (childinfo
, )
223 apply(self
.Add
, childinfo
)
226 def SetItemMinSize(self
, *args
):
227 if type(args
[0]) == type(1):
228 apply(self
.SetItemMinSizePos
, args
)
229 elif string
.find(args
[0].this
, 'Sizer') != -1:
230 apply(self
.SetItemMinSizeSizer
, args
)
232 apply(self
.SetItemMinSizeWindow
, args
)
234 class wxSizer(wxSizerPtr
):
235 def __init__(self
,this
):
241 class wxPySizerPtr(wxSizerPtr
):
242 def __init__(self
,this
):
245 def _setCallbackInfo(self
, *_args
, **_kwargs
):
246 val
= apply(sizersc
.wxPySizer__setCallbackInfo
,(self
,) + _args
, _kwargs
)
249 return "<C wxPySizer instance at %s>" % (self
.this
,)
250 class wxPySizer(wxPySizerPtr
):
251 def __init__(self
,*_args
,**_kwargs
):
252 self
.this
= apply(sizersc
.new_wxPySizer
,_args
,_kwargs
)
254 self
._setCallbackInfo
(self
, wxPySizer
)
259 class wxBoxSizerPtr(wxSizerPtr
):
260 def __init__(self
,this
):
263 def GetOrientation(self
, *_args
, **_kwargs
):
264 val
= apply(sizersc
.wxBoxSizer_GetOrientation
,(self
,) + _args
, _kwargs
)
266 def RecalcSizes(self
, *_args
, **_kwargs
):
267 val
= apply(sizersc
.wxBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
269 def CalcMin(self
, *_args
, **_kwargs
):
270 val
= apply(sizersc
.wxBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
271 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
274 return "<C wxBoxSizer instance at %s>" % (self
.this
,)
275 class wxBoxSizer(wxBoxSizerPtr
):
276 def __init__(self
,*_args
,**_kwargs
):
277 self
.this
= apply(sizersc
.new_wxBoxSizer
,_args
,_kwargs
)
283 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
284 def __init__(self
,this
):
287 def GetStaticBox(self
, *_args
, **_kwargs
):
288 val
= apply(sizersc
.wxStaticBoxSizer_GetStaticBox
,(self
,) + _args
, _kwargs
)
290 def RecalcSizes(self
, *_args
, **_kwargs
):
291 val
= apply(sizersc
.wxStaticBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
293 def CalcMin(self
, *_args
, **_kwargs
):
294 val
= apply(sizersc
.wxStaticBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
295 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
298 return "<C wxStaticBoxSizer instance at %s>" % (self
.this
,)
299 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
300 def __init__(self
,*_args
,**_kwargs
):
301 self
.this
= apply(sizersc
.new_wxStaticBoxSizer
,_args
,_kwargs
)
307 class wxNotebookSizerPtr(wxSizerPtr
):
308 def __init__(self
,this
):
311 def RecalcSizes(self
, *_args
, **_kwargs
):
312 val
= apply(sizersc
.wxNotebookSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
314 def CalcMin(self
, *_args
, **_kwargs
):
315 val
= apply(sizersc
.wxNotebookSizer_CalcMin
,(self
,) + _args
, _kwargs
)
316 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
318 def GetNotebook(self
, *_args
, **_kwargs
):
319 val
= apply(sizersc
.wxNotebookSizer_GetNotebook
,(self
,) + _args
, _kwargs
)
322 return "<C wxNotebookSizer instance at %s>" % (self
.this
,)
323 class wxNotebookSizer(wxNotebookSizerPtr
):
324 def __init__(self
,*_args
,**_kwargs
):
325 self
.this
= apply(sizersc
.new_wxNotebookSizer
,_args
,_kwargs
)
331 class wxGridSizerPtr(wxSizerPtr
):
332 def __init__(self
,this
):
335 def RecalcSizes(self
, *_args
, **_kwargs
):
336 val
= apply(sizersc
.wxGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
338 def CalcMin(self
, *_args
, **_kwargs
):
339 val
= apply(sizersc
.wxGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
340 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
342 def SetCols(self
, *_args
, **_kwargs
):
343 val
= apply(sizersc
.wxGridSizer_SetCols
,(self
,) + _args
, _kwargs
)
345 def SetRows(self
, *_args
, **_kwargs
):
346 val
= apply(sizersc
.wxGridSizer_SetRows
,(self
,) + _args
, _kwargs
)
348 def SetVGap(self
, *_args
, **_kwargs
):
349 val
= apply(sizersc
.wxGridSizer_SetVGap
,(self
,) + _args
, _kwargs
)
351 def SetHGap(self
, *_args
, **_kwargs
):
352 val
= apply(sizersc
.wxGridSizer_SetHGap
,(self
,) + _args
, _kwargs
)
354 def GetCols(self
, *_args
, **_kwargs
):
355 val
= apply(sizersc
.wxGridSizer_GetCols
,(self
,) + _args
, _kwargs
)
357 def GetRows(self
, *_args
, **_kwargs
):
358 val
= apply(sizersc
.wxGridSizer_GetRows
,(self
,) + _args
, _kwargs
)
360 def GetVGap(self
, *_args
, **_kwargs
):
361 val
= apply(sizersc
.wxGridSizer_GetVGap
,(self
,) + _args
, _kwargs
)
363 def GetHGap(self
, *_args
, **_kwargs
):
364 val
= apply(sizersc
.wxGridSizer_GetHGap
,(self
,) + _args
, _kwargs
)
367 return "<C wxGridSizer instance at %s>" % (self
.this
,)
368 class wxGridSizer(wxGridSizerPtr
):
369 def __init__(self
,*_args
,**_kwargs
):
370 self
.this
= apply(sizersc
.new_wxGridSizer
,_args
,_kwargs
)
376 class wxFlexGridSizerPtr(wxGridSizerPtr
):
377 def __init__(self
,this
):
380 def RecalcSizes(self
, *_args
, **_kwargs
):
381 val
= apply(sizersc
.wxFlexGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
383 def CalcMin(self
, *_args
, **_kwargs
):
384 val
= apply(sizersc
.wxFlexGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
385 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
387 def AddGrowableRow(self
, *_args
, **_kwargs
):
388 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableRow
,(self
,) + _args
, _kwargs
)
390 def RemoveGrowableRow(self
, *_args
, **_kwargs
):
391 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableRow
,(self
,) + _args
, _kwargs
)
393 def AddGrowableCol(self
, *_args
, **_kwargs
):
394 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableCol
,(self
,) + _args
, _kwargs
)
396 def RemoveGrowableCol(self
, *_args
, **_kwargs
):
397 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableCol
,(self
,) + _args
, _kwargs
)
400 return "<C wxFlexGridSizer instance at %s>" % (self
.this
,)
401 class wxFlexGridSizer(wxFlexGridSizerPtr
):
402 def __init__(self
,*_args
,**_kwargs
):
403 self
.this
= apply(sizersc
.new_wxFlexGridSizer
,_args
,_kwargs
)
411 #-------------- FUNCTION WRAPPERS ------------------
415 #-------------- VARIABLE WRAPPERS ------------------