1 # This file was created automatically by SWIG.
12 from clip_dnd
import *
14 from controls
import *
19 class wxSizerItemPtr(wxObjectPtr
):
20 def __init__(self
,this
):
23 def DeleteWindows(self
, *_args
, **_kwargs
):
24 val
= apply(sizersc
.wxSizerItem_DeleteWindows
,(self
,) + _args
, _kwargs
)
26 def GetPosition(self
, *_args
, **_kwargs
):
27 val
= apply(sizersc
.wxSizerItem_GetPosition
,(self
,) + _args
, _kwargs
)
28 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
30 def GetSize(self
, *_args
, **_kwargs
):
31 val
= apply(sizersc
.wxSizerItem_GetSize
,(self
,) + _args
, _kwargs
)
32 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
34 def CalcMin(self
, *_args
, **_kwargs
):
35 val
= apply(sizersc
.wxSizerItem_CalcMin
,(self
,) + _args
, _kwargs
)
36 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
38 def SetDimension(self
, *_args
, **_kwargs
):
39 val
= apply(sizersc
.wxSizerItem_SetDimension
,(self
,) + _args
, _kwargs
)
41 def SetRatioWH(self
, *_args
, **_kwargs
):
42 val
= apply(sizersc
.wxSizerItem_SetRatioWH
,(self
,) + _args
, _kwargs
)
44 def SetRatioSize(self
, *_args
, **_kwargs
):
45 val
= apply(sizersc
.wxSizerItem_SetRatioSize
,(self
,) + _args
, _kwargs
)
47 def SetRatio(self
, *_args
, **_kwargs
):
48 val
= apply(sizersc
.wxSizerItem_SetRatio
,(self
,) + _args
, _kwargs
)
50 def GetRatio(self
, *_args
, **_kwargs
):
51 val
= apply(sizersc
.wxSizerItem_GetRatio
,(self
,) + _args
, _kwargs
)
53 def IsWindow(self
, *_args
, **_kwargs
):
54 val
= apply(sizersc
.wxSizerItem_IsWindow
,(self
,) + _args
, _kwargs
)
56 def IsSizer(self
, *_args
, **_kwargs
):
57 val
= apply(sizersc
.wxSizerItem_IsSizer
,(self
,) + _args
, _kwargs
)
59 def IsSpacer(self
, *_args
, **_kwargs
):
60 val
= apply(sizersc
.wxSizerItem_IsSpacer
,(self
,) + _args
, _kwargs
)
62 def GetWindow(self
, *_args
, **_kwargs
):
63 val
= apply(sizersc
.wxSizerItem_GetWindow
,(self
,) + _args
, _kwargs
)
65 def SetWindow(self
, *_args
, **_kwargs
):
66 val
= apply(sizersc
.wxSizerItem_SetWindow
,(self
,) + _args
, _kwargs
)
68 def GetSizer(self
, *_args
, **_kwargs
):
69 val
= apply(sizersc
.wxSizerItem_GetSizer
,(self
,) + _args
, _kwargs
)
71 def SetSizer(self
, *_args
, **_kwargs
):
72 val
= apply(sizersc
.wxSizerItem_SetSizer
,(self
,) + _args
, _kwargs
)
74 def GetOption(self
, *_args
, **_kwargs
):
75 val
= apply(sizersc
.wxSizerItem_GetOption
,(self
,) + _args
, _kwargs
)
77 def GetFlag(self
, *_args
, **_kwargs
):
78 val
= apply(sizersc
.wxSizerItem_GetFlag
,(self
,) + _args
, _kwargs
)
80 def GetBorder(self
, *_args
, **_kwargs
):
81 val
= apply(sizersc
.wxSizerItem_GetBorder
,(self
,) + _args
, _kwargs
)
83 def SetInitSize(self
, *_args
, **_kwargs
):
84 val
= apply(sizersc
.wxSizerItem_SetInitSize
,(self
,) + _args
, _kwargs
)
86 def SetOption(self
, *_args
, **_kwargs
):
87 val
= apply(sizersc
.wxSizerItem_SetOption
,(self
,) + _args
, _kwargs
)
89 def SetFlag(self
, *_args
, **_kwargs
):
90 val
= apply(sizersc
.wxSizerItem_SetFlag
,(self
,) + _args
, _kwargs
)
92 def SetBorder(self
, *_args
, **_kwargs
):
93 val
= apply(sizersc
.wxSizerItem_SetBorder
,(self
,) + _args
, _kwargs
)
95 def GetUserData(self
, *_args
, **_kwargs
):
96 val
= apply(sizersc
.wxSizerItem_GetUserData
,(self
,) + _args
, _kwargs
)
99 return "<C wxSizerItem instance at %s>" % (self
.this
,)
100 class wxSizerItem(wxSizerItemPtr
):
101 def __init__(self
,this
):
107 class wxSizerPtr(wxObjectPtr
):
108 def __init__(self
,this
):
111 def _setOORInfo(self
, *_args
, **_kwargs
):
112 val
= apply(sizersc
.wxSizer__setOORInfo
,(self
,) + _args
, _kwargs
)
114 def Destroy(self
, *_args
, **_kwargs
):
115 val
= apply(sizersc
.wxSizer_Destroy
,(self
,) + _args
, _kwargs
)
117 def AddWindow(self
, *_args
, **_kwargs
):
118 val
= apply(sizersc
.wxSizer_AddWindow
,(self
,) + _args
, _kwargs
)
120 def AddSizer(self
, *_args
, **_kwargs
):
121 val
= apply(sizersc
.wxSizer_AddSizer
,(self
,) + _args
, _kwargs
)
123 def AddSpacer(self
, *_args
, **_kwargs
):
124 val
= apply(sizersc
.wxSizer_AddSpacer
,(self
,) + _args
, _kwargs
)
126 def InsertWindow(self
, *_args
, **_kwargs
):
127 val
= apply(sizersc
.wxSizer_InsertWindow
,(self
,) + _args
, _kwargs
)
129 def InsertSizer(self
, *_args
, **_kwargs
):
130 val
= apply(sizersc
.wxSizer_InsertSizer
,(self
,) + _args
, _kwargs
)
132 def InsertSpacer(self
, *_args
, **_kwargs
):
133 val
= apply(sizersc
.wxSizer_InsertSpacer
,(self
,) + _args
, _kwargs
)
135 def PrependWindow(self
, *_args
, **_kwargs
):
136 val
= apply(sizersc
.wxSizer_PrependWindow
,(self
,) + _args
, _kwargs
)
138 def PrependSizer(self
, *_args
, **_kwargs
):
139 val
= apply(sizersc
.wxSizer_PrependSizer
,(self
,) + _args
, _kwargs
)
141 def PrependSpacer(self
, *_args
, **_kwargs
):
142 val
= apply(sizersc
.wxSizer_PrependSpacer
,(self
,) + _args
, _kwargs
)
144 def RemoveWindow(self
, *_args
, **_kwargs
):
145 val
= apply(sizersc
.wxSizer_RemoveWindow
,(self
,) + _args
, _kwargs
)
147 def RemoveSizer(self
, *_args
, **_kwargs
):
148 val
= apply(sizersc
.wxSizer_RemoveSizer
,(self
,) + _args
, _kwargs
)
150 def RemovePos(self
, *_args
, **_kwargs
):
151 val
= apply(sizersc
.wxSizer_RemovePos
,(self
,) + _args
, _kwargs
)
153 def SetDimension(self
, *_args
, **_kwargs
):
154 val
= apply(sizersc
.wxSizer_SetDimension
,(self
,) + _args
, _kwargs
)
156 def SetMinSize(self
, *_args
, **_kwargs
):
157 val
= apply(sizersc
.wxSizer_SetMinSize
,(self
,) + _args
, _kwargs
)
159 def SetItemMinSizeWindow(self
, *_args
, **_kwargs
):
160 val
= apply(sizersc
.wxSizer_SetItemMinSizeWindow
,(self
,) + _args
, _kwargs
)
162 def SetItemMinSizeSizer(self
, *_args
, **_kwargs
):
163 val
= apply(sizersc
.wxSizer_SetItemMinSizeSizer
,(self
,) + _args
, _kwargs
)
165 def SetItemMinSizePos(self
, *_args
, **_kwargs
):
166 val
= apply(sizersc
.wxSizer_SetItemMinSizePos
,(self
,) + _args
, _kwargs
)
168 def GetSize(self
, *_args
, **_kwargs
):
169 val
= apply(sizersc
.wxSizer_GetSize
,(self
,) + _args
, _kwargs
)
170 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
172 def GetPosition(self
, *_args
, **_kwargs
):
173 val
= apply(sizersc
.wxSizer_GetPosition
,(self
,) + _args
, _kwargs
)
174 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
176 def GetMinSize(self
, *_args
, **_kwargs
):
177 val
= apply(sizersc
.wxSizer_GetMinSize
,(self
,) + _args
, _kwargs
)
178 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
180 def Layout(self
, *_args
, **_kwargs
):
181 val
= apply(sizersc
.wxSizer_Layout
,(self
,) + _args
, _kwargs
)
183 def Fit(self
, *_args
, **_kwargs
):
184 val
= apply(sizersc
.wxSizer_Fit
,(self
,) + _args
, _kwargs
)
186 def FitInside(self
, *_args
, **_kwargs
):
187 val
= apply(sizersc
.wxSizer_FitInside
,(self
,) + _args
, _kwargs
)
189 def SetSizeHints(self
, *_args
, **_kwargs
):
190 val
= apply(sizersc
.wxSizer_SetSizeHints
,(self
,) + _args
, _kwargs
)
192 def SetVirtualSizeHints(self
, *_args
, **_kwargs
):
193 val
= apply(sizersc
.wxSizer_SetVirtualSizeHints
,(self
,) + _args
, _kwargs
)
195 def Clear(self
, *_args
, **_kwargs
):
196 val
= apply(sizersc
.wxSizer_Clear
,(self
,) + _args
, _kwargs
)
198 def DeleteWindows(self
, *_args
, **_kwargs
):
199 val
= apply(sizersc
.wxSizer_DeleteWindows
,(self
,) + _args
, _kwargs
)
201 def GetChildren(self
, *_args
, **_kwargs
):
202 val
= apply(sizersc
.wxSizer_GetChildren
,(self
,) + _args
, _kwargs
)
205 return "<C wxSizer instance at %s>" % (self
.this
,)
207 def Add(self
, *args
, **kw
):
208 if type(args
[0]) == type(1):
209 apply(self
.AddSpacer
, args
, kw
)
210 elif string
.find(args
[0].this
, 'Sizer') != -1:
211 apply(self
.AddSizer
, args
, kw
)
213 apply(self
.AddWindow
, args
, kw
)
215 def Insert(self
, *args
, **kw
):
216 if type(args
[1]) == type(1):
217 apply(self
.InsertSpacer
, args
, kw
)
218 elif string
.find(args
[1].this
, 'Sizer') != -1:
219 apply(self
.InsertSizer
, args
, kw
)
221 apply(self
.InsertWindow
, args
, kw
)
223 def Prepend(self
, *args
, **kw
):
224 if type(args
[0]) == type(1):
225 apply(self
.PrependSpacer
, args
, kw
)
226 elif string
.find(args
[0].this
, 'Sizer') != -1:
227 apply(self
.PrependSizer
, args
, kw
)
229 apply(self
.PrependWindow
, args
, kw
)
231 def Remove(self
, *args
, **kw
):
232 if type(args
[0]) == type(1):
233 apply(self
.RemovePos
, args
, kw
)
234 elif string
.find(args
[0].this
, 'Sizer') != -1:
235 apply(self
.RemoveSizer
, args
, kw
)
237 apply(self
.RemoveWindow
, args
, kw
)
239 def AddMany(self
, widgets
):
240 for childinfo
in widgets
:
241 if type(childinfo
) != type(()):
242 childinfo
= (childinfo
, )
243 apply(self
.Add
, childinfo
)
246 def SetItemMinSize(self
, *args
):
247 if type(args
[0]) == type(1):
248 apply(self
.SetItemMinSizePos
, args
)
249 elif string
.find(args
[0].this
, 'Sizer') != -1:
250 apply(self
.SetItemMinSizeSizer
, args
)
252 apply(self
.SetItemMinSizeWindow
, args
)
255 def GetSizeTuple(self
):
256 return self
.GetSize().asTuple()
257 def GetPositionTuple(self
):
258 return self
.GetPosition().asTuple()
259 def GetMinSizeTuple(self
):
260 return self
.GetMinSize().asTuple()
262 class wxSizer(wxSizerPtr
):
263 def __init__(self
,this
):
269 class wxPySizerPtr(wxSizerPtr
):
270 def __init__(self
,this
):
273 def _setCallbackInfo(self
, *_args
, **_kwargs
):
274 val
= apply(sizersc
.wxPySizer__setCallbackInfo
,(self
,) + _args
, _kwargs
)
277 return "<C wxPySizer instance at %s>" % (self
.this
,)
278 class wxPySizer(wxPySizerPtr
):
279 def __init__(self
,*_args
,**_kwargs
):
280 self
.this
= apply(sizersc
.new_wxPySizer
,_args
,_kwargs
)
282 self
._setCallbackInfo
(self
, wxPySizer
)
283 self
._setOORInfo
(self
)
288 class wxBoxSizerPtr(wxSizerPtr
):
289 def __init__(self
,this
):
292 def GetOrientation(self
, *_args
, **_kwargs
):
293 val
= apply(sizersc
.wxBoxSizer_GetOrientation
,(self
,) + _args
, _kwargs
)
295 def RecalcSizes(self
, *_args
, **_kwargs
):
296 val
= apply(sizersc
.wxBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
298 def CalcMin(self
, *_args
, **_kwargs
):
299 val
= apply(sizersc
.wxBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
300 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
303 return "<C wxBoxSizer instance at %s>" % (self
.this
,)
304 class wxBoxSizer(wxBoxSizerPtr
):
305 def __init__(self
,*_args
,**_kwargs
):
306 self
.this
= apply(sizersc
.new_wxBoxSizer
,_args
,_kwargs
)
308 self
._setOORInfo
(self
)
313 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
314 def __init__(self
,this
):
317 def GetStaticBox(self
, *_args
, **_kwargs
):
318 val
= apply(sizersc
.wxStaticBoxSizer_GetStaticBox
,(self
,) + _args
, _kwargs
)
320 def RecalcSizes(self
, *_args
, **_kwargs
):
321 val
= apply(sizersc
.wxStaticBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
323 def CalcMin(self
, *_args
, **_kwargs
):
324 val
= apply(sizersc
.wxStaticBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
325 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
328 return "<C wxStaticBoxSizer instance at %s>" % (self
.this
,)
329 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
330 def __init__(self
,*_args
,**_kwargs
):
331 self
.this
= apply(sizersc
.new_wxStaticBoxSizer
,_args
,_kwargs
)
333 self
._setOORInfo
(self
)
338 class wxNotebookSizerPtr(wxSizerPtr
):
339 def __init__(self
,this
):
342 def RecalcSizes(self
, *_args
, **_kwargs
):
343 val
= apply(sizersc
.wxNotebookSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
345 def CalcMin(self
, *_args
, **_kwargs
):
346 val
= apply(sizersc
.wxNotebookSizer_CalcMin
,(self
,) + _args
, _kwargs
)
347 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
349 def GetNotebook(self
, *_args
, **_kwargs
):
350 val
= apply(sizersc
.wxNotebookSizer_GetNotebook
,(self
,) + _args
, _kwargs
)
353 return "<C wxNotebookSizer instance at %s>" % (self
.this
,)
354 class wxNotebookSizer(wxNotebookSizerPtr
):
355 def __init__(self
,*_args
,**_kwargs
):
356 self
.this
= apply(sizersc
.new_wxNotebookSizer
,_args
,_kwargs
)
358 self
._setOORInfo
(self
)
363 class wxGridSizerPtr(wxSizerPtr
):
364 def __init__(self
,this
):
367 def RecalcSizes(self
, *_args
, **_kwargs
):
368 val
= apply(sizersc
.wxGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
370 def CalcMin(self
, *_args
, **_kwargs
):
371 val
= apply(sizersc
.wxGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
372 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
374 def SetCols(self
, *_args
, **_kwargs
):
375 val
= apply(sizersc
.wxGridSizer_SetCols
,(self
,) + _args
, _kwargs
)
377 def SetRows(self
, *_args
, **_kwargs
):
378 val
= apply(sizersc
.wxGridSizer_SetRows
,(self
,) + _args
, _kwargs
)
380 def SetVGap(self
, *_args
, **_kwargs
):
381 val
= apply(sizersc
.wxGridSizer_SetVGap
,(self
,) + _args
, _kwargs
)
383 def SetHGap(self
, *_args
, **_kwargs
):
384 val
= apply(sizersc
.wxGridSizer_SetHGap
,(self
,) + _args
, _kwargs
)
386 def GetCols(self
, *_args
, **_kwargs
):
387 val
= apply(sizersc
.wxGridSizer_GetCols
,(self
,) + _args
, _kwargs
)
389 def GetRows(self
, *_args
, **_kwargs
):
390 val
= apply(sizersc
.wxGridSizer_GetRows
,(self
,) + _args
, _kwargs
)
392 def GetVGap(self
, *_args
, **_kwargs
):
393 val
= apply(sizersc
.wxGridSizer_GetVGap
,(self
,) + _args
, _kwargs
)
395 def GetHGap(self
, *_args
, **_kwargs
):
396 val
= apply(sizersc
.wxGridSizer_GetHGap
,(self
,) + _args
, _kwargs
)
399 return "<C wxGridSizer instance at %s>" % (self
.this
,)
400 class wxGridSizer(wxGridSizerPtr
):
401 def __init__(self
,*_args
,**_kwargs
):
402 self
.this
= apply(sizersc
.new_wxGridSizer
,_args
,_kwargs
)
404 self
._setOORInfo
(self
)
409 class wxFlexGridSizerPtr(wxGridSizerPtr
):
410 def __init__(self
,this
):
413 def RecalcSizes(self
, *_args
, **_kwargs
):
414 val
= apply(sizersc
.wxFlexGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
416 def CalcMin(self
, *_args
, **_kwargs
):
417 val
= apply(sizersc
.wxFlexGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
418 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
420 def AddGrowableRow(self
, *_args
, **_kwargs
):
421 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableRow
,(self
,) + _args
, _kwargs
)
423 def RemoveGrowableRow(self
, *_args
, **_kwargs
):
424 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableRow
,(self
,) + _args
, _kwargs
)
426 def AddGrowableCol(self
, *_args
, **_kwargs
):
427 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableCol
,(self
,) + _args
, _kwargs
)
429 def RemoveGrowableCol(self
, *_args
, **_kwargs
):
430 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableCol
,(self
,) + _args
, _kwargs
)
433 return "<C wxFlexGridSizer instance at %s>" % (self
.this
,)
434 class wxFlexGridSizer(wxFlexGridSizerPtr
):
435 def __init__(self
,*_args
,**_kwargs
):
436 self
.this
= apply(sizersc
.new_wxFlexGridSizer
,_args
,_kwargs
)
438 self
._setOORInfo
(self
)
445 #-------------- FUNCTION WRAPPERS ------------------
449 #-------------- VARIABLE WRAPPERS ------------------