1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
12 from controls
import *
17 class wxSizerItemPtr
:
18 def __init__(self
,this
):
21 def GetSize(self
, *_args
, **_kwargs
):
22 val
= apply(sizersc
.wxSizerItem_GetSize
,(self
,) + _args
, _kwargs
)
23 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
25 def CalcMin(self
, *_args
, **_kwargs
):
26 val
= apply(sizersc
.wxSizerItem_CalcMin
,(self
,) + _args
, _kwargs
)
27 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
29 def SetDimension(self
, *_args
, **_kwargs
):
30 val
= apply(sizersc
.wxSizerItem_SetDimension
,(self
,) + _args
, _kwargs
)
32 def SetRatioWH(self
, *_args
, **_kwargs
):
33 val
= apply(sizersc
.wxSizerItem_SetRatioWH
,(self
,) + _args
, _kwargs
)
35 def SetRatioSize(self
, *_args
, **_kwargs
):
36 val
= apply(sizersc
.wxSizerItem_SetRatioSize
,(self
,) + _args
, _kwargs
)
38 def SetRatio(self
, *_args
, **_kwargs
):
39 val
= apply(sizersc
.wxSizerItem_SetRatio
,(self
,) + _args
, _kwargs
)
41 def GetRatio(self
, *_args
, **_kwargs
):
42 val
= apply(sizersc
.wxSizerItem_GetRatio
,(self
,) + _args
, _kwargs
)
44 def IsWindow(self
, *_args
, **_kwargs
):
45 val
= apply(sizersc
.wxSizerItem_IsWindow
,(self
,) + _args
, _kwargs
)
47 def IsSizer(self
, *_args
, **_kwargs
):
48 val
= apply(sizersc
.wxSizerItem_IsSizer
,(self
,) + _args
, _kwargs
)
50 def IsSpacer(self
, *_args
, **_kwargs
):
51 val
= apply(sizersc
.wxSizerItem_IsSpacer
,(self
,) + _args
, _kwargs
)
53 def GetWindow(self
, *_args
, **_kwargs
):
54 val
= apply(sizersc
.wxSizerItem_GetWindow
,(self
,) + _args
, _kwargs
)
55 if val
: val
= wxWindowPtr(val
)
57 def SetWindow(self
, *_args
, **_kwargs
):
58 val
= apply(sizersc
.wxSizerItem_SetWindow
,(self
,) + _args
, _kwargs
)
60 def GetSizer(self
, *_args
, **_kwargs
):
61 val
= apply(sizersc
.wxSizerItem_GetSizer
,(self
,) + _args
, _kwargs
)
62 if val
: val
= wxSizerPtr(val
)
64 def SetSizer(self
, *_args
, **_kwargs
):
65 val
= apply(sizersc
.wxSizerItem_SetSizer
,(self
,) + _args
, _kwargs
)
67 def GetOption(self
, *_args
, **_kwargs
):
68 val
= apply(sizersc
.wxSizerItem_GetOption
,(self
,) + _args
, _kwargs
)
70 def GetFlag(self
, *_args
, **_kwargs
):
71 val
= apply(sizersc
.wxSizerItem_GetFlag
,(self
,) + _args
, _kwargs
)
73 def GetBorder(self
, *_args
, **_kwargs
):
74 val
= apply(sizersc
.wxSizerItem_GetBorder
,(self
,) + _args
, _kwargs
)
76 def SetInitSize(self
, *_args
, **_kwargs
):
77 val
= apply(sizersc
.wxSizerItem_SetInitSize
,(self
,) + _args
, _kwargs
)
79 def SetOption(self
, *_args
, **_kwargs
):
80 val
= apply(sizersc
.wxSizerItem_SetOption
,(self
,) + _args
, _kwargs
)
82 def SetFlag(self
, *_args
, **_kwargs
):
83 val
= apply(sizersc
.wxSizerItem_SetFlag
,(self
,) + _args
, _kwargs
)
85 def SetBorder(self
, *_args
, **_kwargs
):
86 val
= apply(sizersc
.wxSizerItem_SetBorder
,(self
,) + _args
, _kwargs
)
88 def GetUserData(self
, *_args
, **_kwargs
):
89 val
= apply(sizersc
.wxSizerItem_GetUserData
,(self
,) + _args
, _kwargs
)
92 return "<C wxSizerItem instance at %s>" % (self
.this
,)
93 class wxSizerItem(wxSizerItemPtr
):
94 def __init__(self
,this
):
101 def __init__(self
,this
):
104 def Destroy(self
, *_args
, **_kwargs
):
105 val
= apply(sizersc
.wxSizer_Destroy
,(self
,) + _args
, _kwargs
)
107 def AddWindow(self
, *_args
, **_kwargs
):
108 val
= apply(sizersc
.wxSizer_AddWindow
,(self
,) + _args
, _kwargs
)
110 def AddSizer(self
, *_args
, **_kwargs
):
111 val
= apply(sizersc
.wxSizer_AddSizer
,(self
,) + _args
, _kwargs
)
113 def AddSpacer(self
, *_args
, **_kwargs
):
114 val
= apply(sizersc
.wxSizer_AddSpacer
,(self
,) + _args
, _kwargs
)
116 def InsertWindow(self
, *_args
, **_kwargs
):
117 val
= apply(sizersc
.wxSizer_InsertWindow
,(self
,) + _args
, _kwargs
)
119 def InsertSizer(self
, *_args
, **_kwargs
):
120 val
= apply(sizersc
.wxSizer_InsertSizer
,(self
,) + _args
, _kwargs
)
122 def InsertSpacer(self
, *_args
, **_kwargs
):
123 val
= apply(sizersc
.wxSizer_InsertSpacer
,(self
,) + _args
, _kwargs
)
125 def PrependWindow(self
, *_args
, **_kwargs
):
126 val
= apply(sizersc
.wxSizer_PrependWindow
,(self
,) + _args
, _kwargs
)
128 def PrependSizer(self
, *_args
, **_kwargs
):
129 val
= apply(sizersc
.wxSizer_PrependSizer
,(self
,) + _args
, _kwargs
)
131 def PrependSpacer(self
, *_args
, **_kwargs
):
132 val
= apply(sizersc
.wxSizer_PrependSpacer
,(self
,) + _args
, _kwargs
)
134 def RemoveWindow(self
, *_args
, **_kwargs
):
135 val
= apply(sizersc
.wxSizer_RemoveWindow
,(self
,) + _args
, _kwargs
)
137 def RemoveSizer(self
, *_args
, **_kwargs
):
138 val
= apply(sizersc
.wxSizer_RemoveSizer
,(self
,) + _args
, _kwargs
)
140 def RemovePos(self
, *_args
, **_kwargs
):
141 val
= apply(sizersc
.wxSizer_RemovePos
,(self
,) + _args
, _kwargs
)
143 def SetDimension(self
, *_args
, **_kwargs
):
144 val
= apply(sizersc
.wxSizer_SetDimension
,(self
,) + _args
, _kwargs
)
146 def SetMinSize(self
, *_args
, **_kwargs
):
147 val
= apply(sizersc
.wxSizer_SetMinSize
,(self
,) + _args
, _kwargs
)
149 def SetItemMinSizeWindow(self
, *_args
, **_kwargs
):
150 val
= apply(sizersc
.wxSizer_SetItemMinSizeWindow
,(self
,) + _args
, _kwargs
)
152 def SetItemMinSizeSizer(self
, *_args
, **_kwargs
):
153 val
= apply(sizersc
.wxSizer_SetItemMinSizeSizer
,(self
,) + _args
, _kwargs
)
155 def SetItemMinSizePos(self
, *_args
, **_kwargs
):
156 val
= apply(sizersc
.wxSizer_SetItemMinSizePos
,(self
,) + _args
, _kwargs
)
158 def GetSize(self
, *_args
, **_kwargs
):
159 val
= apply(sizersc
.wxSizer_GetSize
,(self
,) + _args
, _kwargs
)
160 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
162 def GetPosition(self
, *_args
, **_kwargs
):
163 val
= apply(sizersc
.wxSizer_GetPosition
,(self
,) + _args
, _kwargs
)
164 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
166 def GetMinSize(self
, *_args
, **_kwargs
):
167 val
= apply(sizersc
.wxSizer_GetMinSize
,(self
,) + _args
, _kwargs
)
168 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
170 def Layout(self
, *_args
, **_kwargs
):
171 val
= apply(sizersc
.wxSizer_Layout
,(self
,) + _args
, _kwargs
)
173 def Fit(self
, *_args
, **_kwargs
):
174 val
= apply(sizersc
.wxSizer_Fit
,(self
,) + _args
, _kwargs
)
176 def SetSizeHints(self
, *_args
, **_kwargs
):
177 val
= apply(sizersc
.wxSizer_SetSizeHints
,(self
,) + _args
, _kwargs
)
179 def GetChildren(self
, *_args
, **_kwargs
):
180 val
= apply(sizersc
.wxSizer_GetChildren
,(self
,) + _args
, _kwargs
)
183 return "<C wxSizer instance at %s>" % (self
.this
,)
185 def Add(self
, *args
, **kw
):
186 if type(args
[0]) == type(1):
187 apply(self
.AddSpacer
, args
, kw
)
188 elif string
.find(args
[0].this
, 'Sizer') != -1:
189 apply(self
.AddSizer
, args
, kw
)
191 apply(self
.AddWindow
, args
, kw
)
193 def Insert(self
, *args
, **kw
):
194 if type(args
[1]) == type(1):
195 apply(self
.InsertSpacer
, args
, kw
)
196 elif string
.find(args
[1].this
, 'Sizer') != -1:
197 apply(self
.InsertSizer
, args
, kw
)
199 apply(self
.InsertWindow
, args
, kw
)
201 def Prepend(self
, *args
, **kw
):
202 if type(args
[0]) == type(1):
203 apply(self
.PrependSpacer
, args
, kw
)
204 elif string
.find(args
[0].this
, 'Sizer') != -1:
205 apply(self
.PrependSizer
, args
, kw
)
207 apply(self
.PrependWindow
, args
, kw
)
209 def Remove(self
, *args
, **kw
):
210 if type(args
[0]) == type(1):
211 apply(self
.RemovePos
, args
, kw
)
212 elif string
.find(args
[0].this
, 'Sizer') != -1:
213 apply(self
.RemoveSizer
, args
, kw
)
215 apply(self
.RemoveWindow
, args
, kw
)
217 def AddMany(self
, widgets
):
218 for childinfo
in widgets
:
219 if type(childinfo
) != type(()):
220 childinfo
= (childinfo
, )
221 apply(self
.Add
, childinfo
)
224 def SetItemMinSize(self
, *args
):
225 if type(args
[0]) == type(1):
226 apply(self
.SetItemMinSizePos
, args
)
227 elif string
.find(args
[0].this
, 'Sizer') != -1:
228 apply(self
.SetItemMinSizeSizer
, args
)
230 apply(self
.SetItemMinSizeWindow
, args
)
232 class wxSizer(wxSizerPtr
):
233 def __init__(self
,this
):
239 class wxPySizerPtr(wxSizerPtr
):
240 def __init__(self
,this
):
243 def _setSelf(self
, *_args
, **_kwargs
):
244 val
= apply(sizersc
.wxPySizer__setSelf
,(self
,) + _args
, _kwargs
)
247 return "<C wxPySizer instance at %s>" % (self
.this
,)
248 class wxPySizer(wxPySizerPtr
):
249 def __init__(self
,*_args
,**_kwargs
):
250 self
.this
= apply(sizersc
.new_wxPySizer
,_args
,_kwargs
)
252 self
._setSelf
(self
, wxPySizer
)
257 class wxBoxSizerPtr(wxSizerPtr
):
258 def __init__(self
,this
):
261 def GetOrientation(self
, *_args
, **_kwargs
):
262 val
= apply(sizersc
.wxBoxSizer_GetOrientation
,(self
,) + _args
, _kwargs
)
264 def RecalcSizes(self
, *_args
, **_kwargs
):
265 val
= apply(sizersc
.wxBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
267 def CalcMin(self
, *_args
, **_kwargs
):
268 val
= apply(sizersc
.wxBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
269 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
272 return "<C wxBoxSizer instance at %s>" % (self
.this
,)
273 class wxBoxSizer(wxBoxSizerPtr
):
274 def __init__(self
,*_args
,**_kwargs
):
275 self
.this
= apply(sizersc
.new_wxBoxSizer
,_args
,_kwargs
)
281 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
282 def __init__(self
,this
):
285 def GetStaticBox(self
, *_args
, **_kwargs
):
286 val
= apply(sizersc
.wxStaticBoxSizer_GetStaticBox
,(self
,) + _args
, _kwargs
)
287 if val
: val
= wxStaticBoxPtr(val
)
289 def RecalcSizes(self
, *_args
, **_kwargs
):
290 val
= apply(sizersc
.wxStaticBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
292 def CalcMin(self
, *_args
, **_kwargs
):
293 val
= apply(sizersc
.wxStaticBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
294 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
297 return "<C wxStaticBoxSizer instance at %s>" % (self
.this
,)
298 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
299 def __init__(self
,*_args
,**_kwargs
):
300 self
.this
= apply(sizersc
.new_wxStaticBoxSizer
,_args
,_kwargs
)
306 class wxNotebookSizerPtr(wxSizerPtr
):
307 def __init__(self
,this
):
310 def RecalcSizes(self
, *_args
, **_kwargs
):
311 val
= apply(sizersc
.wxNotebookSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
313 def CalcMin(self
, *_args
, **_kwargs
):
314 val
= apply(sizersc
.wxNotebookSizer_CalcMin
,(self
,) + _args
, _kwargs
)
315 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
317 def GetNotebook(self
, *_args
, **_kwargs
):
318 val
= apply(sizersc
.wxNotebookSizer_GetNotebook
,(self
,) + _args
, _kwargs
)
319 if val
: val
= wxNotebookPtr(val
)
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 ------------------