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 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
)
56 def SetWindow(self
, *_args
, **_kwargs
):
57 val
= apply(sizersc
.wxSizerItem_SetWindow
,(self
,) + _args
, _kwargs
)
59 def GetSizer(self
, *_args
, **_kwargs
):
60 val
= apply(sizersc
.wxSizerItem_GetSizer
,(self
,) + _args
, _kwargs
)
62 def SetSizer(self
, *_args
, **_kwargs
):
63 val
= apply(sizersc
.wxSizerItem_SetSizer
,(self
,) + _args
, _kwargs
)
65 def GetOption(self
, *_args
, **_kwargs
):
66 val
= apply(sizersc
.wxSizerItem_GetOption
,(self
,) + _args
, _kwargs
)
68 def GetFlag(self
, *_args
, **_kwargs
):
69 val
= apply(sizersc
.wxSizerItem_GetFlag
,(self
,) + _args
, _kwargs
)
71 def GetBorder(self
, *_args
, **_kwargs
):
72 val
= apply(sizersc
.wxSizerItem_GetBorder
,(self
,) + _args
, _kwargs
)
74 def SetInitSize(self
, *_args
, **_kwargs
):
75 val
= apply(sizersc
.wxSizerItem_SetInitSize
,(self
,) + _args
, _kwargs
)
77 def SetOption(self
, *_args
, **_kwargs
):
78 val
= apply(sizersc
.wxSizerItem_SetOption
,(self
,) + _args
, _kwargs
)
80 def SetFlag(self
, *_args
, **_kwargs
):
81 val
= apply(sizersc
.wxSizerItem_SetFlag
,(self
,) + _args
, _kwargs
)
83 def SetBorder(self
, *_args
, **_kwargs
):
84 val
= apply(sizersc
.wxSizerItem_SetBorder
,(self
,) + _args
, _kwargs
)
86 def GetUserData(self
, *_args
, **_kwargs
):
87 val
= apply(sizersc
.wxSizerItem_GetUserData
,(self
,) + _args
, _kwargs
)
90 return "<C wxSizerItem instance at %s>" % (self
.this
,)
91 class wxSizerItem(wxSizerItemPtr
):
92 def __init__(self
,this
):
98 class wxSizerPtr(wxObjectPtr
):
99 def __init__(self
,this
):
102 def Destroy(self
, *_args
, **_kwargs
):
103 val
= apply(sizersc
.wxSizer_Destroy
,(self
,) + _args
, _kwargs
)
105 def AddWindow(self
, *_args
, **_kwargs
):
106 val
= apply(sizersc
.wxSizer_AddWindow
,(self
,) + _args
, _kwargs
)
108 def AddSizer(self
, *_args
, **_kwargs
):
109 val
= apply(sizersc
.wxSizer_AddSizer
,(self
,) + _args
, _kwargs
)
111 def AddSpacer(self
, *_args
, **_kwargs
):
112 val
= apply(sizersc
.wxSizer_AddSpacer
,(self
,) + _args
, _kwargs
)
114 def InsertWindow(self
, *_args
, **_kwargs
):
115 val
= apply(sizersc
.wxSizer_InsertWindow
,(self
,) + _args
, _kwargs
)
117 def InsertSizer(self
, *_args
, **_kwargs
):
118 val
= apply(sizersc
.wxSizer_InsertSizer
,(self
,) + _args
, _kwargs
)
120 def InsertSpacer(self
, *_args
, **_kwargs
):
121 val
= apply(sizersc
.wxSizer_InsertSpacer
,(self
,) + _args
, _kwargs
)
123 def PrependWindow(self
, *_args
, **_kwargs
):
124 val
= apply(sizersc
.wxSizer_PrependWindow
,(self
,) + _args
, _kwargs
)
126 def PrependSizer(self
, *_args
, **_kwargs
):
127 val
= apply(sizersc
.wxSizer_PrependSizer
,(self
,) + _args
, _kwargs
)
129 def PrependSpacer(self
, *_args
, **_kwargs
):
130 val
= apply(sizersc
.wxSizer_PrependSpacer
,(self
,) + _args
, _kwargs
)
132 def RemoveWindow(self
, *_args
, **_kwargs
):
133 val
= apply(sizersc
.wxSizer_RemoveWindow
,(self
,) + _args
, _kwargs
)
135 def RemoveSizer(self
, *_args
, **_kwargs
):
136 val
= apply(sizersc
.wxSizer_RemoveSizer
,(self
,) + _args
, _kwargs
)
138 def RemovePos(self
, *_args
, **_kwargs
):
139 val
= apply(sizersc
.wxSizer_RemovePos
,(self
,) + _args
, _kwargs
)
141 def SetDimension(self
, *_args
, **_kwargs
):
142 val
= apply(sizersc
.wxSizer_SetDimension
,(self
,) + _args
, _kwargs
)
144 def SetMinSize(self
, *_args
, **_kwargs
):
145 val
= apply(sizersc
.wxSizer_SetMinSize
,(self
,) + _args
, _kwargs
)
147 def SetItemMinSizeWindow(self
, *_args
, **_kwargs
):
148 val
= apply(sizersc
.wxSizer_SetItemMinSizeWindow
,(self
,) + _args
, _kwargs
)
150 def SetItemMinSizeSizer(self
, *_args
, **_kwargs
):
151 val
= apply(sizersc
.wxSizer_SetItemMinSizeSizer
,(self
,) + _args
, _kwargs
)
153 def SetItemMinSizePos(self
, *_args
, **_kwargs
):
154 val
= apply(sizersc
.wxSizer_SetItemMinSizePos
,(self
,) + _args
, _kwargs
)
156 def GetSize(self
, *_args
, **_kwargs
):
157 val
= apply(sizersc
.wxSizer_GetSize
,(self
,) + _args
, _kwargs
)
158 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
160 def GetPosition(self
, *_args
, **_kwargs
):
161 val
= apply(sizersc
.wxSizer_GetPosition
,(self
,) + _args
, _kwargs
)
162 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
164 def GetMinSize(self
, *_args
, **_kwargs
):
165 val
= apply(sizersc
.wxSizer_GetMinSize
,(self
,) + _args
, _kwargs
)
166 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
168 def Layout(self
, *_args
, **_kwargs
):
169 val
= apply(sizersc
.wxSizer_Layout
,(self
,) + _args
, _kwargs
)
171 def Fit(self
, *_args
, **_kwargs
):
172 val
= apply(sizersc
.wxSizer_Fit
,(self
,) + _args
, _kwargs
)
174 def SetSizeHints(self
, *_args
, **_kwargs
):
175 val
= apply(sizersc
.wxSizer_SetSizeHints
,(self
,) + _args
, _kwargs
)
177 def GetChildren(self
, *_args
, **_kwargs
):
178 val
= apply(sizersc
.wxSizer_GetChildren
,(self
,) + _args
, _kwargs
)
181 return "<C wxSizer instance at %s>" % (self
.this
,)
183 def Add(self
, *args
, **kw
):
184 if type(args
[0]) == type(1):
185 apply(self
.AddSpacer
, args
, kw
)
186 elif string
.find(args
[0].this
, 'Sizer') != -1:
187 apply(self
.AddSizer
, args
, kw
)
189 apply(self
.AddWindow
, args
, kw
)
191 def Insert(self
, *args
, **kw
):
192 if type(args
[1]) == type(1):
193 apply(self
.InsertSpacer
, args
, kw
)
194 elif string
.find(args
[1].this
, 'Sizer') != -1:
195 apply(self
.InsertSizer
, args
, kw
)
197 apply(self
.InsertWindow
, args
, kw
)
199 def Prepend(self
, *args
, **kw
):
200 if type(args
[0]) == type(1):
201 apply(self
.PrependSpacer
, args
, kw
)
202 elif string
.find(args
[0].this
, 'Sizer') != -1:
203 apply(self
.PrependSizer
, args
, kw
)
205 apply(self
.PrependWindow
, args
, kw
)
207 def Remove(self
, *args
, **kw
):
208 if type(args
[0]) == type(1):
209 apply(self
.RemovePos
, args
, kw
)
210 elif string
.find(args
[0].this
, 'Sizer') != -1:
211 apply(self
.RemoveSizer
, args
, kw
)
213 apply(self
.RemoveWindow
, args
, kw
)
215 def AddMany(self
, widgets
):
216 for childinfo
in widgets
:
217 if type(childinfo
) != type(()):
218 childinfo
= (childinfo
, )
219 apply(self
.Add
, childinfo
)
222 def SetItemMinSize(self
, *args
):
223 if type(args
[0]) == type(1):
224 apply(self
.SetItemMinSizePos
, args
)
225 elif string
.find(args
[0].this
, 'Sizer') != -1:
226 apply(self
.SetItemMinSizeSizer
, args
)
228 apply(self
.SetItemMinSizeWindow
, args
)
230 class wxSizer(wxSizerPtr
):
231 def __init__(self
,this
):
237 class wxPySizerPtr(wxSizerPtr
):
238 def __init__(self
,this
):
241 def _setSelf(self
, *_args
, **_kwargs
):
242 val
= apply(sizersc
.wxPySizer__setSelf
,(self
,) + _args
, _kwargs
)
245 return "<C wxPySizer instance at %s>" % (self
.this
,)
246 class wxPySizer(wxPySizerPtr
):
247 def __init__(self
,*_args
,**_kwargs
):
248 self
.this
= apply(sizersc
.new_wxPySizer
,_args
,_kwargs
)
250 self
._setSelf
(self
, wxPySizer
)
255 class wxBoxSizerPtr(wxSizerPtr
):
256 def __init__(self
,this
):
259 def GetOrientation(self
, *_args
, **_kwargs
):
260 val
= apply(sizersc
.wxBoxSizer_GetOrientation
,(self
,) + _args
, _kwargs
)
262 def RecalcSizes(self
, *_args
, **_kwargs
):
263 val
= apply(sizersc
.wxBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
265 def CalcMin(self
, *_args
, **_kwargs
):
266 val
= apply(sizersc
.wxBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
267 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
270 return "<C wxBoxSizer instance at %s>" % (self
.this
,)
271 class wxBoxSizer(wxBoxSizerPtr
):
272 def __init__(self
,*_args
,**_kwargs
):
273 self
.this
= apply(sizersc
.new_wxBoxSizer
,_args
,_kwargs
)
279 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
280 def __init__(self
,this
):
283 def GetStaticBox(self
, *_args
, **_kwargs
):
284 val
= apply(sizersc
.wxStaticBoxSizer_GetStaticBox
,(self
,) + _args
, _kwargs
)
286 def RecalcSizes(self
, *_args
, **_kwargs
):
287 val
= apply(sizersc
.wxStaticBoxSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
289 def CalcMin(self
, *_args
, **_kwargs
):
290 val
= apply(sizersc
.wxStaticBoxSizer_CalcMin
,(self
,) + _args
, _kwargs
)
291 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
294 return "<C wxStaticBoxSizer instance at %s>" % (self
.this
,)
295 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
296 def __init__(self
,*_args
,**_kwargs
):
297 self
.this
= apply(sizersc
.new_wxStaticBoxSizer
,_args
,_kwargs
)
303 class wxNotebookSizerPtr(wxSizerPtr
):
304 def __init__(self
,this
):
307 def RecalcSizes(self
, *_args
, **_kwargs
):
308 val
= apply(sizersc
.wxNotebookSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
310 def CalcMin(self
, *_args
, **_kwargs
):
311 val
= apply(sizersc
.wxNotebookSizer_CalcMin
,(self
,) + _args
, _kwargs
)
312 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
314 def GetNotebook(self
, *_args
, **_kwargs
):
315 val
= apply(sizersc
.wxNotebookSizer_GetNotebook
,(self
,) + _args
, _kwargs
)
318 return "<C wxNotebookSizer instance at %s>" % (self
.this
,)
319 class wxNotebookSizer(wxNotebookSizerPtr
):
320 def __init__(self
,*_args
,**_kwargs
):
321 self
.this
= apply(sizersc
.new_wxNotebookSizer
,_args
,_kwargs
)
327 class wxGridSizerPtr(wxSizerPtr
):
328 def __init__(self
,this
):
331 def RecalcSizes(self
, *_args
, **_kwargs
):
332 val
= apply(sizersc
.wxGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
334 def CalcMin(self
, *_args
, **_kwargs
):
335 val
= apply(sizersc
.wxGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
336 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
338 def SetCols(self
, *_args
, **_kwargs
):
339 val
= apply(sizersc
.wxGridSizer_SetCols
,(self
,) + _args
, _kwargs
)
341 def SetRows(self
, *_args
, **_kwargs
):
342 val
= apply(sizersc
.wxGridSizer_SetRows
,(self
,) + _args
, _kwargs
)
344 def SetVGap(self
, *_args
, **_kwargs
):
345 val
= apply(sizersc
.wxGridSizer_SetVGap
,(self
,) + _args
, _kwargs
)
347 def SetHGap(self
, *_args
, **_kwargs
):
348 val
= apply(sizersc
.wxGridSizer_SetHGap
,(self
,) + _args
, _kwargs
)
350 def GetCols(self
, *_args
, **_kwargs
):
351 val
= apply(sizersc
.wxGridSizer_GetCols
,(self
,) + _args
, _kwargs
)
353 def GetRows(self
, *_args
, **_kwargs
):
354 val
= apply(sizersc
.wxGridSizer_GetRows
,(self
,) + _args
, _kwargs
)
356 def GetVGap(self
, *_args
, **_kwargs
):
357 val
= apply(sizersc
.wxGridSizer_GetVGap
,(self
,) + _args
, _kwargs
)
359 def GetHGap(self
, *_args
, **_kwargs
):
360 val
= apply(sizersc
.wxGridSizer_GetHGap
,(self
,) + _args
, _kwargs
)
363 return "<C wxGridSizer instance at %s>" % (self
.this
,)
364 class wxGridSizer(wxGridSizerPtr
):
365 def __init__(self
,*_args
,**_kwargs
):
366 self
.this
= apply(sizersc
.new_wxGridSizer
,_args
,_kwargs
)
372 class wxFlexGridSizerPtr(wxGridSizerPtr
):
373 def __init__(self
,this
):
376 def RecalcSizes(self
, *_args
, **_kwargs
):
377 val
= apply(sizersc
.wxFlexGridSizer_RecalcSizes
,(self
,) + _args
, _kwargs
)
379 def CalcMin(self
, *_args
, **_kwargs
):
380 val
= apply(sizersc
.wxFlexGridSizer_CalcMin
,(self
,) + _args
, _kwargs
)
381 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
383 def AddGrowableRow(self
, *_args
, **_kwargs
):
384 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableRow
,(self
,) + _args
, _kwargs
)
386 def RemoveGrowableRow(self
, *_args
, **_kwargs
):
387 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableRow
,(self
,) + _args
, _kwargs
)
389 def AddGrowableCol(self
, *_args
, **_kwargs
):
390 val
= apply(sizersc
.wxFlexGridSizer_AddGrowableCol
,(self
,) + _args
, _kwargs
)
392 def RemoveGrowableCol(self
, *_args
, **_kwargs
):
393 val
= apply(sizersc
.wxFlexGridSizer_RemoveGrowableCol
,(self
,) + _args
, _kwargs
)
396 return "<C wxFlexGridSizer instance at %s>" % (self
.this
,)
397 class wxFlexGridSizer(wxFlexGridSizerPtr
):
398 def __init__(self
,*_args
,**_kwargs
):
399 self
.this
= apply(sizersc
.new_wxFlexGridSizer
,_args
,_kwargs
)
407 #-------------- FUNCTION WRAPPERS ------------------
411 #-------------- VARIABLE WRAPPERS ------------------