]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/sizers.py
Added bakefile for the OGL contrib
[wxWidgets.git] / wxPython / src / msw / sizers.py
CommitLineData
2f90df85
RD
1# This file was created automatically by SWIG.
2import sizersc
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
68bc8549
RD
10from fonts import *
11
b1462dfa
RD
12from clip_dnd import *
13
2f90df85
RD
14from controls import *
15
16from events import *
17import wx
9416aa89 18class wxSizerItemPtr(wxObjectPtr):
2f90df85
RD
19 def __init__(self,this):
20 self.this = this
21 self.thisown = 0
101dd79a
RD
22 def DeleteWindows(self, *_args, **_kwargs):
23 val = apply(sizersc.wxSizerItem_DeleteWindows,(self,) + _args, _kwargs)
24 return val
7e50db3f
RD
25 def DetachSizer(self, *_args, **_kwargs):
26 val = apply(sizersc.wxSizerItem_DetachSizer,(self,) + _args, _kwargs)
09f3d4e6 27 return val
2f90df85
RD
28 def GetSize(self, *_args, **_kwargs):
29 val = apply(sizersc.wxSizerItem_GetSize,(self,) + _args, _kwargs)
30 if val: val = wxSizePtr(val) ; val.thisown = 1
31 return val
32 def CalcMin(self, *_args, **_kwargs):
33 val = apply(sizersc.wxSizerItem_CalcMin,(self,) + _args, _kwargs)
34 if val: val = wxSizePtr(val) ; val.thisown = 1
35 return val
36 def SetDimension(self, *_args, **_kwargs):
37 val = apply(sizersc.wxSizerItem_SetDimension,(self,) + _args, _kwargs)
38 return val
7e50db3f
RD
39 def GetMinSize(self, *_args, **_kwargs):
40 val = apply(sizersc.wxSizerItem_GetMinSize,(self,) + _args, _kwargs)
41 if val: val = wxSizePtr(val) ; val.thisown = 1
42 return val
43 def SetInitSize(self, *_args, **_kwargs):
44 val = apply(sizersc.wxSizerItem_SetInitSize,(self,) + _args, _kwargs)
45 return val
f6bcfd97
BP
46 def SetRatioWH(self, *_args, **_kwargs):
47 val = apply(sizersc.wxSizerItem_SetRatioWH,(self,) + _args, _kwargs)
48 return val
49 def SetRatioSize(self, *_args, **_kwargs):
50 val = apply(sizersc.wxSizerItem_SetRatioSize,(self,) + _args, _kwargs)
51 return val
52 def SetRatio(self, *_args, **_kwargs):
53 val = apply(sizersc.wxSizerItem_SetRatio,(self,) + _args, _kwargs)
54 return val
55 def GetRatio(self, *_args, **_kwargs):
56 val = apply(sizersc.wxSizerItem_GetRatio,(self,) + _args, _kwargs)
57 return val
2f90df85
RD
58 def IsWindow(self, *_args, **_kwargs):
59 val = apply(sizersc.wxSizerItem_IsWindow,(self,) + _args, _kwargs)
60 return val
61 def IsSizer(self, *_args, **_kwargs):
62 val = apply(sizersc.wxSizerItem_IsSizer,(self,) + _args, _kwargs)
63 return val
64 def IsSpacer(self, *_args, **_kwargs):
65 val = apply(sizersc.wxSizerItem_IsSpacer,(self,) + _args, _kwargs)
66 return val
7e50db3f
RD
67 def SetProportion(self, *_args, **_kwargs):
68 val = apply(sizersc.wxSizerItem_SetProportion,(self,) + _args, _kwargs)
69 return val
70 def GetProportion(self, *_args, **_kwargs):
71 val = apply(sizersc.wxSizerItem_GetProportion,(self,) + _args, _kwargs)
72 return val
73 def SetFlag(self, *_args, **_kwargs):
74 val = apply(sizersc.wxSizerItem_SetFlag,(self,) + _args, _kwargs)
75 return val
76 def GetFlag(self, *_args, **_kwargs):
77 val = apply(sizersc.wxSizerItem_GetFlag,(self,) + _args, _kwargs)
78 return val
79 def SetBorder(self, *_args, **_kwargs):
80 val = apply(sizersc.wxSizerItem_SetBorder,(self,) + _args, _kwargs)
81 return val
82 def GetBorder(self, *_args, **_kwargs):
83 val = apply(sizersc.wxSizerItem_GetBorder,(self,) + _args, _kwargs)
84 return val
2f90df85
RD
85 def GetWindow(self, *_args, **_kwargs):
86 val = apply(sizersc.wxSizerItem_GetWindow,(self,) + _args, _kwargs)
2f90df85 87 return val
f6bcfd97
BP
88 def SetWindow(self, *_args, **_kwargs):
89 val = apply(sizersc.wxSizerItem_SetWindow,(self,) + _args, _kwargs)
90 return val
2f90df85
RD
91 def GetSizer(self, *_args, **_kwargs):
92 val = apply(sizersc.wxSizerItem_GetSizer,(self,) + _args, _kwargs)
2f90df85 93 return val
f6bcfd97
BP
94 def SetSizer(self, *_args, **_kwargs):
95 val = apply(sizersc.wxSizerItem_SetSizer,(self,) + _args, _kwargs)
96 return val
7e50db3f
RD
97 def GetSpacer(self, *_args, **_kwargs):
98 val = apply(sizersc.wxSizerItem_GetSpacer,(self,) + _args, _kwargs)
99 if val: val = wxSizePtr(val)
2f90df85 100 return val
7e50db3f
RD
101 def SetSpacer(self, *_args, **_kwargs):
102 val = apply(sizersc.wxSizerItem_SetSpacer,(self,) + _args, _kwargs)
9b3d3bc4 103 return val
7e50db3f
RD
104 def Show(self, *_args, **_kwargs):
105 val = apply(sizersc.wxSizerItem_Show,(self,) + _args, _kwargs)
9b3d3bc4 106 return val
7e50db3f
RD
107 def IsShown(self, *_args, **_kwargs):
108 val = apply(sizersc.wxSizerItem_IsShown,(self,) + _args, _kwargs)
9b3d3bc4 109 return val
7e50db3f
RD
110 def GetPosition(self, *_args, **_kwargs):
111 val = apply(sizersc.wxSizerItem_GetPosition,(self,) + _args, _kwargs)
112 if val: val = wxPointPtr(val) ; val.thisown = 1
9b3d3bc4 113 return val
2f90df85
RD
114 def GetUserData(self, *_args, **_kwargs):
115 val = apply(sizersc.wxSizerItem_GetUserData,(self,) + _args, _kwargs)
116 return val
117 def __repr__(self):
118 return "<C wxSizerItem instance at %s>" % (self.this,)
7e50db3f
RD
119 SetOption = SetProportion
120 GetOption = GetProportion
2f90df85
RD
121class wxSizerItem(wxSizerItemPtr):
122 def __init__(self,this):
123 self.this = this
124
125
126
127
9416aa89 128class wxSizerPtr(wxObjectPtr):
2f90df85
RD
129 def __init__(self,this):
130 self.this = this
131 self.thisown = 0
2aab8f16
RD
132 def _setOORInfo(self, *_args, **_kwargs):
133 val = apply(sizersc.wxSizer__setOORInfo,(self,) + _args, _kwargs)
134 return val
2f90df85
RD
135 def Destroy(self, *_args, **_kwargs):
136 val = apply(sizersc.wxSizer_Destroy,(self,) + _args, _kwargs)
137 return val
138 def AddWindow(self, *_args, **_kwargs):
139 val = apply(sizersc.wxSizer_AddWindow,(self,) + _args, _kwargs)
140 return val
141 def AddSizer(self, *_args, **_kwargs):
142 val = apply(sizersc.wxSizer_AddSizer,(self,) + _args, _kwargs)
143 return val
144 def AddSpacer(self, *_args, **_kwargs):
145 val = apply(sizersc.wxSizer_AddSpacer,(self,) + _args, _kwargs)
146 return val
f6bcfd97
BP
147 def InsertWindow(self, *_args, **_kwargs):
148 val = apply(sizersc.wxSizer_InsertWindow,(self,) + _args, _kwargs)
149 return val
150 def InsertSizer(self, *_args, **_kwargs):
151 val = apply(sizersc.wxSizer_InsertSizer,(self,) + _args, _kwargs)
152 return val
153 def InsertSpacer(self, *_args, **_kwargs):
154 val = apply(sizersc.wxSizer_InsertSpacer,(self,) + _args, _kwargs)
155 return val
2f90df85
RD
156 def PrependWindow(self, *_args, **_kwargs):
157 val = apply(sizersc.wxSizer_PrependWindow,(self,) + _args, _kwargs)
158 return val
159 def PrependSizer(self, *_args, **_kwargs):
160 val = apply(sizersc.wxSizer_PrependSizer,(self,) + _args, _kwargs)
161 return val
162 def PrependSpacer(self, *_args, **_kwargs):
163 val = apply(sizersc.wxSizer_PrependSpacer,(self,) + _args, _kwargs)
164 return val
165 def RemoveWindow(self, *_args, **_kwargs):
166 val = apply(sizersc.wxSizer_RemoveWindow,(self,) + _args, _kwargs)
167 return val
168 def RemoveSizer(self, *_args, **_kwargs):
169 val = apply(sizersc.wxSizer_RemoveSizer,(self,) + _args, _kwargs)
170 return val
171 def RemovePos(self, *_args, **_kwargs):
172 val = apply(sizersc.wxSizer_RemovePos,(self,) + _args, _kwargs)
173 return val
7e50db3f
RD
174 def DetachWindow(self, *_args, **_kwargs):
175 val = apply(sizersc.wxSizer_DetachWindow,(self,) + _args, _kwargs)
176 return val
177 def DetachSizer(self, *_args, **_kwargs):
178 val = apply(sizersc.wxSizer_DetachSizer,(self,) + _args, _kwargs)
179 return val
180 def DetachPos(self, *_args, **_kwargs):
181 val = apply(sizersc.wxSizer_DetachPos,(self,) + _args, _kwargs)
182 return val
183 def Clear(self, *_args, **_kwargs):
184 val = apply(sizersc.wxSizer_Clear,(self,) + _args, _kwargs)
185 return val
186 def DeleteWindows(self, *_args, **_kwargs):
187 val = apply(sizersc.wxSizer_DeleteWindows,(self,) + _args, _kwargs)
2f90df85 188 return val
f6bcfd97
BP
189 def SetMinSize(self, *_args, **_kwargs):
190 val = apply(sizersc.wxSizer_SetMinSize,(self,) + _args, _kwargs)
191 return val
192 def SetItemMinSizeWindow(self, *_args, **_kwargs):
193 val = apply(sizersc.wxSizer_SetItemMinSizeWindow,(self,) + _args, _kwargs)
194 return val
195 def SetItemMinSizeSizer(self, *_args, **_kwargs):
196 val = apply(sizersc.wxSizer_SetItemMinSizeSizer,(self,) + _args, _kwargs)
197 return val
198 def SetItemMinSizePos(self, *_args, **_kwargs):
199 val = apply(sizersc.wxSizer_SetItemMinSizePos,(self,) + _args, _kwargs)
200 return val
7e50db3f
RD
201 def SetItemMinSizeWindowWH(self, *_args, **_kwargs):
202 val = apply(sizersc.wxSizer_SetItemMinSizeWindowWH,(self,) + _args, _kwargs)
203 return val
204 def SetItemMinSizeSizerWH(self, *_args, **_kwargs):
205 val = apply(sizersc.wxSizer_SetItemMinSizeSizerWH,(self,) + _args, _kwargs)
206 return val
207 def SetItemMinSizePosWH(self, *_args, **_kwargs):
208 val = apply(sizersc.wxSizer_SetItemMinSizePosWH,(self,) + _args, _kwargs)
209 return val
2f90df85
RD
210 def GetSize(self, *_args, **_kwargs):
211 val = apply(sizersc.wxSizer_GetSize,(self,) + _args, _kwargs)
212 if val: val = wxSizePtr(val) ; val.thisown = 1
213 return val
214 def GetPosition(self, *_args, **_kwargs):
215 val = apply(sizersc.wxSizer_GetPosition,(self,) + _args, _kwargs)
216 if val: val = wxPointPtr(val) ; val.thisown = 1
217 return val
218 def GetMinSize(self, *_args, **_kwargs):
219 val = apply(sizersc.wxSizer_GetMinSize,(self,) + _args, _kwargs)
220 if val: val = wxSizePtr(val) ; val.thisown = 1
221 return val
222 def Layout(self, *_args, **_kwargs):
223 val = apply(sizersc.wxSizer_Layout,(self,) + _args, _kwargs)
224 return val
225 def Fit(self, *_args, **_kwargs):
226 val = apply(sizersc.wxSizer_Fit,(self,) + _args, _kwargs)
72797a7d 227 if val: val = wxSizePtr(val) ; val.thisown = 1
2f90df85 228 return val
2a74d141
RD
229 def FitInside(self, *_args, **_kwargs):
230 val = apply(sizersc.wxSizer_FitInside,(self,) + _args, _kwargs)
231 return val
2f90df85
RD
232 def SetSizeHints(self, *_args, **_kwargs):
233 val = apply(sizersc.wxSizer_SetSizeHints,(self,) + _args, _kwargs)
234 return val
2a74d141
RD
235 def SetVirtualSizeHints(self, *_args, **_kwargs):
236 val = apply(sizersc.wxSizer_SetVirtualSizeHints,(self,) + _args, _kwargs)
237 return val
2f90df85
RD
238 def GetChildren(self, *_args, **_kwargs):
239 val = apply(sizersc.wxSizer_GetChildren,(self,) + _args, _kwargs)
240 return val
7e50db3f
RD
241 def SetDimension(self, *_args, **_kwargs):
242 val = apply(sizersc.wxSizer_SetDimension,(self,) + _args, _kwargs)
243 return val
244 def ShowWindow(self, *_args, **_kwargs):
245 val = apply(sizersc.wxSizer_ShowWindow,(self,) + _args, _kwargs)
246 return val
247 def ShowSizer(self, *_args, **_kwargs):
248 val = apply(sizersc.wxSizer_ShowSizer,(self,) + _args, _kwargs)
249 return val
250 def ShowPos(self, *_args, **_kwargs):
251 val = apply(sizersc.wxSizer_ShowPos,(self,) + _args, _kwargs)
252 return val
253 def HideWindow(self, *_args, **_kwargs):
254 val = apply(sizersc.wxSizer_HideWindow,(self,) + _args, _kwargs)
255 return val
256 def HideSizer(self, *_args, **_kwargs):
257 val = apply(sizersc.wxSizer_HideSizer,(self,) + _args, _kwargs)
258 return val
259 def HidePos(self, *_args, **_kwargs):
260 val = apply(sizersc.wxSizer_HidePos,(self,) + _args, _kwargs)
261 return val
262 def IsShownWindow(self, *_args, **_kwargs):
263 val = apply(sizersc.wxSizer_IsShownWindow,(self,) + _args, _kwargs)
264 return val
265 def IsShownSizer(self, *_args, **_kwargs):
266 val = apply(sizersc.wxSizer_IsShownSizer,(self,) + _args, _kwargs)
267 return val
268 def IsShownPos(self, *_args, **_kwargs):
269 val = apply(sizersc.wxSizer_IsShownPos,(self,) + _args, _kwargs)
270 return val
271 def ShowItems(self, *_args, **_kwargs):
272 val = apply(sizersc.wxSizer_ShowItems,(self,) + _args, _kwargs)
273 return val
2f90df85
RD
274 def __repr__(self):
275 return "<C wxSizer instance at %s>" % (self.this,)
276
d1679124 277 def Add(self, *args, **kw):
2f90df85 278 if type(args[0]) == type(1):
d1679124 279 apply(self.AddSpacer, args, kw)
7e50db3f 280 elif isinstance(args[0], wxSizerPtr):
d1679124 281 apply(self.AddSizer, args, kw)
7e50db3f 282 elif isinstance(args[0], wxWindowPtr):
d1679124 283 apply(self.AddWindow, args, kw)
7e50db3f
RD
284 else:
285 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
2f90df85 286
d1679124 287 def Insert(self, *args, **kw):
c368d904 288 if type(args[1]) == type(1):
d1679124 289 apply(self.InsertSpacer, args, kw)
7e50db3f 290 elif isinstance(args[1], wxSizerPtr):
d1679124 291 apply(self.InsertSizer, args, kw)
7e50db3f 292 elif isinstance(args[1], wxWindowPtr):
d1679124 293 apply(self.InsertWindow, args, kw)
7e50db3f
RD
294 else:
295 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
f6bcfd97 296
d1679124 297 def Prepend(self, *args, **kw):
2f90df85 298 if type(args[0]) == type(1):
d1679124 299 apply(self.PrependSpacer, args, kw)
7e50db3f 300 elif isinstance(args[0], wxSizerPtr):
d1679124 301 apply(self.PrependSizer, args, kw)
7e50db3f 302 elif isinstance(args[0], wxWindowPtr):
d1679124 303 apply(self.PrependWindow, args, kw)
7e50db3f
RD
304 else:
305 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
2f90df85 306
d1679124 307 def Remove(self, *args, **kw):
2f90df85 308 if type(args[0]) == type(1):
7e50db3f
RD
309 return apply(self.RemovePos, args, kw)
310 elif isinstance(args[0], wxSizerPtr):
311 return apply(self.RemoveSizer, args, kw)
312 elif isinstance(args[0], wxWindowPtr):
313 return apply(self.RemoveWindow, args, kw)
314 else:
315 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
316
317 def Detach(self, *args, **kw):
318 if type(args[0]) == type(1):
319 return apply(self.DetachPos, args, kw)
320 elif isinstance(args[0], wxSizerPtr):
321 return apply(self.DetachSizer, args, kw)
322 elif isinstance(args[0], wxWindowPtr):
323 return apply(self.DetachWindow, args, kw)
2f90df85 324 else:
7e50db3f 325 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
2f90df85
RD
326
327 def AddMany(self, widgets):
328 for childinfo in widgets:
329 if type(childinfo) != type(()):
330 childinfo = (childinfo, )
331 apply(self.Add, childinfo)
332
f6bcfd97
BP
333
334 def SetItemMinSize(self, *args):
335 if type(args[0]) == type(1):
336 apply(self.SetItemMinSizePos, args)
7e50db3f 337 elif isinstance(args[0], wxSizerPtr):
f6bcfd97 338 apply(self.SetItemMinSizeSizer, args)
7e50db3f 339 elif isinstance(args[0], wxWindowPtr):
f6bcfd97 340 apply(self.SetItemMinSizeWindow, args)
7e50db3f
RD
341 else:
342 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
343
344 def SetItemMinSizeWH(self, *args):
345 if type(args[0]) == type(1):
346 apply(self.SetItemMinSizePosWH, args)
347 elif isinstance(args[0], wxSizerPtr):
348 apply(self.SetItemMinSizeSizerWH, args)
349 elif isinstance(args[0], wxWindowPtr):
350 apply(self.SetItemMinSizeWindowWH, args)
351 else:
352 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
f6bcfd97 353
82550f23
RD
354
355 def GetSizeTuple(self):
356 return self.GetSize().asTuple()
357 def GetPositionTuple(self):
358 return self.GetPosition().asTuple()
359 def GetMinSizeTuple(self):
360 return self.GetMinSize().asTuple()
361
7e50db3f
RD
362
363 def Show(self, *args):
364 if type(args[0]) == type(1):
365 apply(self.ShowPos, args)
366 elif isinstance(args[0], wxSizerPtr):
367 apply(self.ShowSizer, args)
368 elif isinstance(args[0], wxWindowPtr):
369 apply(self.ShowWindow, args)
370 else:
371 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
372
373 def Hide(self, *args):
374 if type(args[0]) == type(1):
375 apply(self.HidePos, args)
376 elif isinstance(args[0], wxSizerPtr):
377 apply(self.HideSizer, args)
378 elif isinstance(args[0], wxWindowPtr):
379 apply(self.HideWindow, args)
380 else:
381 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
382
383 def IsShown(self, *args):
384 if type(args[0]) == type(1):
385 return apply(self.IsShownPos, args)
386 elif isinstance(args[0], wxSizerPtr):
387 return apply(self.IsShownSizer, args)
388 elif isinstance(args[0], wxWindowPtr):
389 return apply(self.IsShownWindow, args)
390 else:
391 raise TypeError, 'Expected int, wxSizer or wxWindow parameter'
392
2f90df85
RD
393class wxSizer(wxSizerPtr):
394 def __init__(self,this):
395 self.this = this
396
397
398
399
400class wxPySizerPtr(wxSizerPtr):
401 def __init__(self,this):
402 self.this = this
403 self.thisown = 0
0122b7e3
RD
404 def _setCallbackInfo(self, *_args, **_kwargs):
405 val = apply(sizersc.wxPySizer__setCallbackInfo,(self,) + _args, _kwargs)
2f90df85
RD
406 return val
407 def __repr__(self):
408 return "<C wxPySizer instance at %s>" % (self.this,)
409class wxPySizer(wxPySizerPtr):
410 def __init__(self,*_args,**_kwargs):
411 self.this = apply(sizersc.new_wxPySizer,_args,_kwargs)
412 self.thisown = 1
0122b7e3 413 self._setCallbackInfo(self, wxPySizer)
2aab8f16 414 self._setOORInfo(self)
2f90df85
RD
415
416
417
418
419class wxBoxSizerPtr(wxSizerPtr):
420 def __init__(self,this):
421 self.this = this
422 self.thisown = 0
423 def GetOrientation(self, *_args, **_kwargs):
424 val = apply(sizersc.wxBoxSizer_GetOrientation,(self,) + _args, _kwargs)
425 return val
7e50db3f
RD
426 def SetOrientation(self, *_args, **_kwargs):
427 val = apply(sizersc.wxBoxSizer_SetOrientation,(self,) + _args, _kwargs)
428 return val
f6bcfd97
BP
429 def RecalcSizes(self, *_args, **_kwargs):
430 val = apply(sizersc.wxBoxSizer_RecalcSizes,(self,) + _args, _kwargs)
431 return val
432 def CalcMin(self, *_args, **_kwargs):
433 val = apply(sizersc.wxBoxSizer_CalcMin,(self,) + _args, _kwargs)
434 if val: val = wxSizePtr(val) ; val.thisown = 1
435 return val
2f90df85
RD
436 def __repr__(self):
437 return "<C wxBoxSizer instance at %s>" % (self.this,)
438class wxBoxSizer(wxBoxSizerPtr):
439 def __init__(self,*_args,**_kwargs):
440 self.this = apply(sizersc.new_wxBoxSizer,_args,_kwargs)
441 self.thisown = 1
2aab8f16 442 self._setOORInfo(self)
2f90df85
RD
443
444
445
446
447class wxStaticBoxSizerPtr(wxBoxSizerPtr):
448 def __init__(self,this):
449 self.this = this
450 self.thisown = 0
451 def GetStaticBox(self, *_args, **_kwargs):
452 val = apply(sizersc.wxStaticBoxSizer_GetStaticBox,(self,) + _args, _kwargs)
2f90df85 453 return val
f6bcfd97
BP
454 def RecalcSizes(self, *_args, **_kwargs):
455 val = apply(sizersc.wxStaticBoxSizer_RecalcSizes,(self,) + _args, _kwargs)
456 return val
457 def CalcMin(self, *_args, **_kwargs):
458 val = apply(sizersc.wxStaticBoxSizer_CalcMin,(self,) + _args, _kwargs)
459 if val: val = wxSizePtr(val) ; val.thisown = 1
460 return val
2f90df85
RD
461 def __repr__(self):
462 return "<C wxStaticBoxSizer instance at %s>" % (self.this,)
463class wxStaticBoxSizer(wxStaticBoxSizerPtr):
464 def __init__(self,*_args,**_kwargs):
465 self.this = apply(sizersc.new_wxStaticBoxSizer,_args,_kwargs)
466 self.thisown = 1
2aab8f16 467 self._setOORInfo(self)
2f90df85
RD
468
469
470
471
f6bcfd97
BP
472class wxNotebookSizerPtr(wxSizerPtr):
473 def __init__(self,this):
474 self.this = this
475 self.thisown = 0
476 def RecalcSizes(self, *_args, **_kwargs):
477 val = apply(sizersc.wxNotebookSizer_RecalcSizes,(self,) + _args, _kwargs)
478 return val
479 def CalcMin(self, *_args, **_kwargs):
480 val = apply(sizersc.wxNotebookSizer_CalcMin,(self,) + _args, _kwargs)
481 if val: val = wxSizePtr(val) ; val.thisown = 1
482 return val
483 def GetNotebook(self, *_args, **_kwargs):
484 val = apply(sizersc.wxNotebookSizer_GetNotebook,(self,) + _args, _kwargs)
f6bcfd97
BP
485 return val
486 def __repr__(self):
487 return "<C wxNotebookSizer instance at %s>" % (self.this,)
488class wxNotebookSizer(wxNotebookSizerPtr):
489 def __init__(self,*_args,**_kwargs):
490 self.this = apply(sizersc.new_wxNotebookSizer,_args,_kwargs)
491 self.thisown = 1
2aab8f16 492 self._setOORInfo(self)
f6bcfd97
BP
493
494
495
496
497class wxGridSizerPtr(wxSizerPtr):
498 def __init__(self,this):
499 self.this = this
500 self.thisown = 0
501 def RecalcSizes(self, *_args, **_kwargs):
502 val = apply(sizersc.wxGridSizer_RecalcSizes,(self,) + _args, _kwargs)
503 return val
504 def CalcMin(self, *_args, **_kwargs):
505 val = apply(sizersc.wxGridSizer_CalcMin,(self,) + _args, _kwargs)
506 if val: val = wxSizePtr(val) ; val.thisown = 1
507 return val
508 def SetCols(self, *_args, **_kwargs):
509 val = apply(sizersc.wxGridSizer_SetCols,(self,) + _args, _kwargs)
510 return val
511 def SetRows(self, *_args, **_kwargs):
512 val = apply(sizersc.wxGridSizer_SetRows,(self,) + _args, _kwargs)
513 return val
514 def SetVGap(self, *_args, **_kwargs):
515 val = apply(sizersc.wxGridSizer_SetVGap,(self,) + _args, _kwargs)
516 return val
517 def SetHGap(self, *_args, **_kwargs):
518 val = apply(sizersc.wxGridSizer_SetHGap,(self,) + _args, _kwargs)
519 return val
520 def GetCols(self, *_args, **_kwargs):
521 val = apply(sizersc.wxGridSizer_GetCols,(self,) + _args, _kwargs)
522 return val
523 def GetRows(self, *_args, **_kwargs):
524 val = apply(sizersc.wxGridSizer_GetRows,(self,) + _args, _kwargs)
525 return val
526 def GetVGap(self, *_args, **_kwargs):
527 val = apply(sizersc.wxGridSizer_GetVGap,(self,) + _args, _kwargs)
528 return val
529 def GetHGap(self, *_args, **_kwargs):
530 val = apply(sizersc.wxGridSizer_GetHGap,(self,) + _args, _kwargs)
531 return val
532 def __repr__(self):
533 return "<C wxGridSizer instance at %s>" % (self.this,)
534class wxGridSizer(wxGridSizerPtr):
535 def __init__(self,*_args,**_kwargs):
536 self.this = apply(sizersc.new_wxGridSizer,_args,_kwargs)
537 self.thisown = 1
2aab8f16 538 self._setOORInfo(self)
f6bcfd97
BP
539
540
541
542
543class wxFlexGridSizerPtr(wxGridSizerPtr):
544 def __init__(self,this):
545 self.this = this
546 self.thisown = 0
547 def RecalcSizes(self, *_args, **_kwargs):
548 val = apply(sizersc.wxFlexGridSizer_RecalcSizes,(self,) + _args, _kwargs)
549 return val
550 def CalcMin(self, *_args, **_kwargs):
551 val = apply(sizersc.wxFlexGridSizer_CalcMin,(self,) + _args, _kwargs)
552 if val: val = wxSizePtr(val) ; val.thisown = 1
553 return val
554 def AddGrowableRow(self, *_args, **_kwargs):
555 val = apply(sizersc.wxFlexGridSizer_AddGrowableRow,(self,) + _args, _kwargs)
556 return val
557 def RemoveGrowableRow(self, *_args, **_kwargs):
558 val = apply(sizersc.wxFlexGridSizer_RemoveGrowableRow,(self,) + _args, _kwargs)
559 return val
560 def AddGrowableCol(self, *_args, **_kwargs):
561 val = apply(sizersc.wxFlexGridSizer_AddGrowableCol,(self,) + _args, _kwargs)
562 return val
563 def RemoveGrowableCol(self, *_args, **_kwargs):
564 val = apply(sizersc.wxFlexGridSizer_RemoveGrowableCol,(self,) + _args, _kwargs)
565 return val
7e50db3f
RD
566 def SetFlexibleDirection(self, *_args, **_kwargs):
567 val = apply(sizersc.wxFlexGridSizer_SetFlexibleDirection,(self,) + _args, _kwargs)
568 return val
569 def GetFlexibleDirection(self, *_args, **_kwargs):
570 val = apply(sizersc.wxFlexGridSizer_GetFlexibleDirection,(self,) + _args, _kwargs)
571 return val
572 def SetNonFlexibleGrowMode(self, *_args, **_kwargs):
573 val = apply(sizersc.wxFlexGridSizer_SetNonFlexibleGrowMode,(self,) + _args, _kwargs)
574 return val
575 def GetNonFlexibleGrowMode(self, *_args, **_kwargs):
576 val = apply(sizersc.wxFlexGridSizer_GetNonFlexibleGrowMode,(self,) + _args, _kwargs)
577 return val
f6bcfd97
BP
578 def __repr__(self):
579 return "<C wxFlexGridSizer instance at %s>" % (self.this,)
580class wxFlexGridSizer(wxFlexGridSizerPtr):
581 def __init__(self,*_args,**_kwargs):
582 self.this = apply(sizersc.new_wxFlexGridSizer,_args,_kwargs)
583 self.thisown = 1
2aab8f16 584 self._setOORInfo(self)
f6bcfd97
BP
585
586
587
588
2f90df85
RD
589
590
591#-------------- FUNCTION WRAPPERS ------------------
592
593
594
595#-------------- VARIABLE WRAPPERS ------------------
596
7e50db3f
RD
597wxFLEX_GROWMODE_NONE = sizersc.wxFLEX_GROWMODE_NONE
598wxFLEX_GROWMODE_SPECIFIED = sizersc.wxFLEX_GROWMODE_SPECIFIED
599wxFLEX_GROWMODE_ALL = sizersc.wxFLEX_GROWMODE_ALL