]>
Commit | Line | Data |
---|---|---|
2f90df85 RD |
1 | # This file was created automatically by SWIG. |
2 | import sizersc | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from windows import * | |
7 | ||
8 | from gdi import * | |
9 | ||
68bc8549 RD |
10 | from fonts import * |
11 | ||
b1462dfa RD |
12 | from clip_dnd import * |
13 | ||
2f90df85 RD |
14 | from controls import * |
15 | ||
16 | from events import * | |
17 | import wx | |
9416aa89 | 18 | class wxSizerItemPtr(wxObjectPtr): |
2f90df85 RD |
19 | def __init__(self,this): |
20 | self.this = this | |
21 | self.thisown = 0 | |
101dd79a | 22 | def DeleteWindows(self, *_args, **_kwargs): |
5a2a9da2 | 23 | val = sizersc.wxSizerItem_DeleteWindows(self, *_args, **_kwargs) |
101dd79a | 24 | return val |
7e50db3f | 25 | def DetachSizer(self, *_args, **_kwargs): |
5a2a9da2 | 26 | val = sizersc.wxSizerItem_DetachSizer(self, *_args, **_kwargs) |
09f3d4e6 | 27 | return val |
2f90df85 | 28 | def GetSize(self, *_args, **_kwargs): |
5a2a9da2 | 29 | val = sizersc.wxSizerItem_GetSize(self, *_args, **_kwargs) |
2f90df85 RD |
30 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
31 | return val | |
32 | def CalcMin(self, *_args, **_kwargs): | |
5a2a9da2 | 33 | val = sizersc.wxSizerItem_CalcMin(self, *_args, **_kwargs) |
2f90df85 RD |
34 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
35 | return val | |
36 | def SetDimension(self, *_args, **_kwargs): | |
5a2a9da2 | 37 | val = sizersc.wxSizerItem_SetDimension(self, *_args, **_kwargs) |
2f90df85 | 38 | return val |
7e50db3f | 39 | def GetMinSize(self, *_args, **_kwargs): |
5a2a9da2 | 40 | val = sizersc.wxSizerItem_GetMinSize(self, *_args, **_kwargs) |
7e50db3f RD |
41 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
42 | return val | |
43 | def SetInitSize(self, *_args, **_kwargs): | |
5a2a9da2 | 44 | val = sizersc.wxSizerItem_SetInitSize(self, *_args, **_kwargs) |
7e50db3f | 45 | return val |
f6bcfd97 | 46 | def SetRatioWH(self, *_args, **_kwargs): |
5a2a9da2 | 47 | val = sizersc.wxSizerItem_SetRatioWH(self, *_args, **_kwargs) |
f6bcfd97 BP |
48 | return val |
49 | def SetRatioSize(self, *_args, **_kwargs): | |
5a2a9da2 | 50 | val = sizersc.wxSizerItem_SetRatioSize(self, *_args, **_kwargs) |
f6bcfd97 BP |
51 | return val |
52 | def SetRatio(self, *_args, **_kwargs): | |
5a2a9da2 | 53 | val = sizersc.wxSizerItem_SetRatio(self, *_args, **_kwargs) |
f6bcfd97 BP |
54 | return val |
55 | def GetRatio(self, *_args, **_kwargs): | |
5a2a9da2 | 56 | val = sizersc.wxSizerItem_GetRatio(self, *_args, **_kwargs) |
f6bcfd97 | 57 | return val |
2f90df85 | 58 | def IsWindow(self, *_args, **_kwargs): |
5a2a9da2 | 59 | val = sizersc.wxSizerItem_IsWindow(self, *_args, **_kwargs) |
2f90df85 RD |
60 | return val |
61 | def IsSizer(self, *_args, **_kwargs): | |
5a2a9da2 | 62 | val = sizersc.wxSizerItem_IsSizer(self, *_args, **_kwargs) |
2f90df85 RD |
63 | return val |
64 | def IsSpacer(self, *_args, **_kwargs): | |
5a2a9da2 | 65 | val = sizersc.wxSizerItem_IsSpacer(self, *_args, **_kwargs) |
2f90df85 | 66 | return val |
7e50db3f | 67 | def SetProportion(self, *_args, **_kwargs): |
5a2a9da2 | 68 | val = sizersc.wxSizerItem_SetProportion(self, *_args, **_kwargs) |
7e50db3f RD |
69 | return val |
70 | def GetProportion(self, *_args, **_kwargs): | |
5a2a9da2 | 71 | val = sizersc.wxSizerItem_GetProportion(self, *_args, **_kwargs) |
7e50db3f RD |
72 | return val |
73 | def SetFlag(self, *_args, **_kwargs): | |
5a2a9da2 | 74 | val = sizersc.wxSizerItem_SetFlag(self, *_args, **_kwargs) |
7e50db3f RD |
75 | return val |
76 | def GetFlag(self, *_args, **_kwargs): | |
5a2a9da2 | 77 | val = sizersc.wxSizerItem_GetFlag(self, *_args, **_kwargs) |
7e50db3f RD |
78 | return val |
79 | def SetBorder(self, *_args, **_kwargs): | |
5a2a9da2 | 80 | val = sizersc.wxSizerItem_SetBorder(self, *_args, **_kwargs) |
7e50db3f RD |
81 | return val |
82 | def GetBorder(self, *_args, **_kwargs): | |
5a2a9da2 | 83 | val = sizersc.wxSizerItem_GetBorder(self, *_args, **_kwargs) |
7e50db3f | 84 | return val |
2f90df85 | 85 | def GetWindow(self, *_args, **_kwargs): |
5a2a9da2 | 86 | val = sizersc.wxSizerItem_GetWindow(self, *_args, **_kwargs) |
2f90df85 | 87 | return val |
f6bcfd97 | 88 | def SetWindow(self, *_args, **_kwargs): |
5a2a9da2 | 89 | val = sizersc.wxSizerItem_SetWindow(self, *_args, **_kwargs) |
f6bcfd97 | 90 | return val |
2f90df85 | 91 | def GetSizer(self, *_args, **_kwargs): |
5a2a9da2 | 92 | val = sizersc.wxSizerItem_GetSizer(self, *_args, **_kwargs) |
2f90df85 | 93 | return val |
f6bcfd97 | 94 | def SetSizer(self, *_args, **_kwargs): |
5a2a9da2 | 95 | val = sizersc.wxSizerItem_SetSizer(self, *_args, **_kwargs) |
f6bcfd97 | 96 | return val |
7e50db3f | 97 | def GetSpacer(self, *_args, **_kwargs): |
5a2a9da2 | 98 | val = sizersc.wxSizerItem_GetSpacer(self, *_args, **_kwargs) |
7e50db3f | 99 | if val: val = wxSizePtr(val) |
2f90df85 | 100 | return val |
7e50db3f | 101 | def SetSpacer(self, *_args, **_kwargs): |
5a2a9da2 | 102 | val = sizersc.wxSizerItem_SetSpacer(self, *_args, **_kwargs) |
9b3d3bc4 | 103 | return val |
7e50db3f | 104 | def Show(self, *_args, **_kwargs): |
5a2a9da2 | 105 | val = sizersc.wxSizerItem_Show(self, *_args, **_kwargs) |
9b3d3bc4 | 106 | return val |
7e50db3f | 107 | def IsShown(self, *_args, **_kwargs): |
5a2a9da2 | 108 | val = sizersc.wxSizerItem_IsShown(self, *_args, **_kwargs) |
9b3d3bc4 | 109 | return val |
7e50db3f | 110 | def GetPosition(self, *_args, **_kwargs): |
5a2a9da2 | 111 | val = sizersc.wxSizerItem_GetPosition(self, *_args, **_kwargs) |
7e50db3f | 112 | if val: val = wxPointPtr(val) ; val.thisown = 1 |
9b3d3bc4 | 113 | return val |
2f90df85 | 114 | def GetUserData(self, *_args, **_kwargs): |
5a2a9da2 | 115 | val = sizersc.wxSizerItem_GetUserData(self, *_args, **_kwargs) |
2f90df85 RD |
116 | return val |
117 | def __repr__(self): | |
5a2a9da2 | 118 | return "<%s.%s instance; proxy of C++ wxSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
7e50db3f RD |
119 | SetOption = SetProportion |
120 | GetOption = GetProportion | |
2f90df85 RD |
121 | class wxSizerItem(wxSizerItemPtr): |
122 | def __init__(self,this): | |
123 | self.this = this | |
124 | ||
125 | ||
126 | ||
127 | ||
9416aa89 | 128 | class wxSizerPtr(wxObjectPtr): |
2f90df85 RD |
129 | def __init__(self,this): |
130 | self.this = this | |
131 | self.thisown = 0 | |
2aab8f16 | 132 | def _setOORInfo(self, *_args, **_kwargs): |
5a2a9da2 | 133 | val = sizersc.wxSizer__setOORInfo(self, *_args, **_kwargs) |
2aab8f16 | 134 | return val |
2f90df85 | 135 | def Destroy(self, *_args, **_kwargs): |
5a2a9da2 | 136 | val = sizersc.wxSizer_Destroy(self, *_args, **_kwargs) |
2f90df85 | 137 | return val |
5a2a9da2 RD |
138 | def _Add(self, *_args, **_kwargs): |
139 | val = sizersc.wxSizer__Add(self, *_args, **_kwargs) | |
2f90df85 | 140 | return val |
5a2a9da2 RD |
141 | def _Insert(self, *_args, **_kwargs): |
142 | val = sizersc.wxSizer__Insert(self, *_args, **_kwargs) | |
2f90df85 | 143 | return val |
5a2a9da2 RD |
144 | def _Prepend(self, *_args, **_kwargs): |
145 | val = sizersc.wxSizer__Prepend(self, *_args, **_kwargs) | |
2f90df85 | 146 | return val |
5a2a9da2 RD |
147 | def Remove(self, *_args, **_kwargs): |
148 | val = sizersc.wxSizer_Remove(self, *_args, **_kwargs) | |
f6bcfd97 | 149 | return val |
5a2a9da2 RD |
150 | def _SetItemMinSize(self, *_args, **_kwargs): |
151 | val = sizersc.wxSizer__SetItemMinSize(self, *_args, **_kwargs) | |
f6bcfd97 | 152 | return val |
5a2a9da2 RD |
153 | def SetDimension(self, *_args, **_kwargs): |
154 | val = sizersc.wxSizer_SetDimension(self, *_args, **_kwargs) | |
2f90df85 | 155 | return val |
f6bcfd97 | 156 | def SetMinSize(self, *_args, **_kwargs): |
5a2a9da2 | 157 | val = sizersc.wxSizer_SetMinSize(self, *_args, **_kwargs) |
7e50db3f | 158 | return val |
2f90df85 | 159 | def GetSize(self, *_args, **_kwargs): |
5a2a9da2 | 160 | val = sizersc.wxSizer_GetSize(self, *_args, **_kwargs) |
2f90df85 RD |
161 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
162 | return val | |
163 | def GetPosition(self, *_args, **_kwargs): | |
5a2a9da2 | 164 | val = sizersc.wxSizer_GetPosition(self, *_args, **_kwargs) |
2f90df85 RD |
165 | if val: val = wxPointPtr(val) ; val.thisown = 1 |
166 | return val | |
167 | def GetMinSize(self, *_args, **_kwargs): | |
5a2a9da2 | 168 | val = sizersc.wxSizer_GetMinSize(self, *_args, **_kwargs) |
2f90df85 RD |
169 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
170 | return val | |
171 | def Layout(self, *_args, **_kwargs): | |
5a2a9da2 | 172 | val = sizersc.wxSizer_Layout(self, *_args, **_kwargs) |
2f90df85 RD |
173 | return val |
174 | def Fit(self, *_args, **_kwargs): | |
5a2a9da2 | 175 | val = sizersc.wxSizer_Fit(self, *_args, **_kwargs) |
72797a7d | 176 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
2f90df85 | 177 | return val |
2a74d141 | 178 | def FitInside(self, *_args, **_kwargs): |
5a2a9da2 | 179 | val = sizersc.wxSizer_FitInside(self, *_args, **_kwargs) |
2a74d141 | 180 | return val |
2f90df85 | 181 | def SetSizeHints(self, *_args, **_kwargs): |
5a2a9da2 | 182 | val = sizersc.wxSizer_SetSizeHints(self, *_args, **_kwargs) |
2f90df85 | 183 | return val |
2a74d141 | 184 | def SetVirtualSizeHints(self, *_args, **_kwargs): |
5a2a9da2 | 185 | val = sizersc.wxSizer_SetVirtualSizeHints(self, *_args, **_kwargs) |
7e50db3f | 186 | return val |
5a2a9da2 RD |
187 | def Clear(self, *_args, **_kwargs): |
188 | val = sizersc.wxSizer_Clear(self, *_args, **_kwargs) | |
7e50db3f | 189 | return val |
5a2a9da2 RD |
190 | def DeleteWindows(self, *_args, **_kwargs): |
191 | val = sizersc.wxSizer_DeleteWindows(self, *_args, **_kwargs) | |
7e50db3f | 192 | return val |
5a2a9da2 RD |
193 | def GetChildren(self, *_args, **_kwargs): |
194 | val = sizersc.wxSizer_GetChildren(self, *_args, **_kwargs) | |
7e50db3f | 195 | return val |
5a2a9da2 RD |
196 | def Show(self, *_args, **_kwargs): |
197 | val = sizersc.wxSizer_Show(self, *_args, **_kwargs) | |
7e50db3f | 198 | return val |
5a2a9da2 RD |
199 | def Hide(self, *_args, **_kwargs): |
200 | val = sizersc.wxSizer_Hide(self, *_args, **_kwargs) | |
7e50db3f | 201 | return val |
5a2a9da2 RD |
202 | def IsShown(self, *_args, **_kwargs): |
203 | val = sizersc.wxSizer_IsShown(self, *_args, **_kwargs) | |
7e50db3f RD |
204 | return val |
205 | def ShowItems(self, *_args, **_kwargs): | |
5a2a9da2 | 206 | val = sizersc.wxSizer_ShowItems(self, *_args, **_kwargs) |
7e50db3f | 207 | return val |
2f90df85 | 208 | def __repr__(self): |
5a2a9da2 | 209 | return "<%s.%s instance; proxy of C++ wxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
2f90df85 | 210 | |
5a2a9da2 RD |
211 | def Add(self, item, *args, **kw): |
212 | if type(item) == type(1): | |
213 | item = (item, args[0]) # backwards compatibility, args are width, height | |
214 | args = args[1:] | |
215 | self._Add(item, *args, **kw) | |
2f90df85 RD |
216 | |
217 | def AddMany(self, widgets): | |
218 | for childinfo in widgets: | |
219 | if type(childinfo) != type(()): | |
220 | childinfo = (childinfo, ) | |
5a2a9da2 | 221 | self.Add(*childinfo) |
2f90df85 | 222 | |
5a2a9da2 RD |
223 | def Prepend(self, item, *args, **kw): |
224 | if type(item) == type(1): | |
225 | item = (item, args[0]) # backwards compatibility, args are width, height | |
226 | args = args[1:] | |
227 | self._Prepend(item, *args, **kw) | |
228 | ||
229 | def Insert(self, before, item, *args, **kw): | |
230 | if type(item) == type(1): | |
231 | item = (item, args[0]) # backwards compatibility, args are width, height | |
232 | args = args[1:] | |
233 | self._Insert(before, item, *args, **kw) | |
234 | ||
235 | ||
236 | # for backwards compatibility only | |
237 | AddWindow = AddSizer = AddSpacer = Add | |
238 | PrependWindow = PrependSizer = PrependSpacer = Prepend | |
239 | InsertWindow = InsertSizer = InsertSpacer = Insert | |
240 | RemoveWindow = RemoveSizer = RemovePos = Remove | |
241 | ||
242 | ||
243 | def SetItemMinSize(self, item, *args): | |
244 | if len(args) == 2: | |
245 | return self._SetItemMinSize(item, args) | |
7e50db3f | 246 | else: |
5a2a9da2 RD |
247 | return self._SetItemMinSize(item, args[0]) |
248 | ||
249 | ||
82550f23 RD |
250 | |
251 | def GetSizeTuple(self): | |
252 | return self.GetSize().asTuple() | |
253 | def GetPositionTuple(self): | |
254 | return self.GetPosition().asTuple() | |
255 | def GetMinSizeTuple(self): | |
256 | return self.GetMinSize().asTuple() | |
257 | ||
2f90df85 RD |
258 | class wxSizer(wxSizerPtr): |
259 | def __init__(self,this): | |
260 | self.this = this | |
261 | ||
262 | ||
263 | ||
264 | ||
265 | class wxPySizerPtr(wxSizerPtr): | |
266 | def __init__(self,this): | |
267 | self.this = this | |
268 | self.thisown = 0 | |
0122b7e3 | 269 | def _setCallbackInfo(self, *_args, **_kwargs): |
5a2a9da2 | 270 | val = sizersc.wxPySizer__setCallbackInfo(self, *_args, **_kwargs) |
2f90df85 RD |
271 | return val |
272 | def __repr__(self): | |
5a2a9da2 | 273 | return "<%s.%s instance; proxy of C++ wxPySizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
2f90df85 RD |
274 | class wxPySizer(wxPySizerPtr): |
275 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 276 | self.this = sizersc.new_wxPySizer(*_args,**_kwargs) |
2f90df85 | 277 | self.thisown = 1 |
0122b7e3 | 278 | self._setCallbackInfo(self, wxPySizer) |
2aab8f16 | 279 | self._setOORInfo(self) |
2f90df85 RD |
280 | |
281 | ||
282 | ||
283 | ||
284 | class wxBoxSizerPtr(wxSizerPtr): | |
285 | def __init__(self,this): | |
286 | self.this = this | |
287 | self.thisown = 0 | |
288 | def GetOrientation(self, *_args, **_kwargs): | |
5a2a9da2 | 289 | val = sizersc.wxBoxSizer_GetOrientation(self, *_args, **_kwargs) |
2f90df85 | 290 | return val |
7e50db3f | 291 | def SetOrientation(self, *_args, **_kwargs): |
5a2a9da2 | 292 | val = sizersc.wxBoxSizer_SetOrientation(self, *_args, **_kwargs) |
7e50db3f | 293 | return val |
f6bcfd97 | 294 | def RecalcSizes(self, *_args, **_kwargs): |
5a2a9da2 | 295 | val = sizersc.wxBoxSizer_RecalcSizes(self, *_args, **_kwargs) |
f6bcfd97 BP |
296 | return val |
297 | def CalcMin(self, *_args, **_kwargs): | |
5a2a9da2 | 298 | val = sizersc.wxBoxSizer_CalcMin(self, *_args, **_kwargs) |
f6bcfd97 BP |
299 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
300 | return val | |
2f90df85 | 301 | def __repr__(self): |
5a2a9da2 | 302 | return "<%s.%s instance; proxy of C++ wxBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
2f90df85 RD |
303 | class wxBoxSizer(wxBoxSizerPtr): |
304 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 305 | self.this = sizersc.new_wxBoxSizer(*_args,**_kwargs) |
2f90df85 | 306 | self.thisown = 1 |
2aab8f16 | 307 | self._setOORInfo(self) |
2f90df85 RD |
308 | |
309 | ||
310 | ||
311 | ||
312 | class wxStaticBoxSizerPtr(wxBoxSizerPtr): | |
313 | def __init__(self,this): | |
314 | self.this = this | |
315 | self.thisown = 0 | |
316 | def GetStaticBox(self, *_args, **_kwargs): | |
5a2a9da2 | 317 | val = sizersc.wxStaticBoxSizer_GetStaticBox(self, *_args, **_kwargs) |
2f90df85 | 318 | return val |
f6bcfd97 | 319 | def RecalcSizes(self, *_args, **_kwargs): |
5a2a9da2 | 320 | val = sizersc.wxStaticBoxSizer_RecalcSizes(self, *_args, **_kwargs) |
f6bcfd97 BP |
321 | return val |
322 | def CalcMin(self, *_args, **_kwargs): | |
5a2a9da2 | 323 | val = sizersc.wxStaticBoxSizer_CalcMin(self, *_args, **_kwargs) |
f6bcfd97 BP |
324 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
325 | return val | |
2f90df85 | 326 | def __repr__(self): |
5a2a9da2 | 327 | return "<%s.%s instance; proxy of C++ wxStaticBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
2f90df85 RD |
328 | class wxStaticBoxSizer(wxStaticBoxSizerPtr): |
329 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 330 | self.this = sizersc.new_wxStaticBoxSizer(*_args,**_kwargs) |
2f90df85 | 331 | self.thisown = 1 |
2aab8f16 | 332 | self._setOORInfo(self) |
2f90df85 RD |
333 | |
334 | ||
335 | ||
336 | ||
f6bcfd97 BP |
337 | class wxNotebookSizerPtr(wxSizerPtr): |
338 | def __init__(self,this): | |
339 | self.this = this | |
340 | self.thisown = 0 | |
341 | def RecalcSizes(self, *_args, **_kwargs): | |
5a2a9da2 | 342 | val = sizersc.wxNotebookSizer_RecalcSizes(self, *_args, **_kwargs) |
f6bcfd97 BP |
343 | return val |
344 | def CalcMin(self, *_args, **_kwargs): | |
5a2a9da2 | 345 | val = sizersc.wxNotebookSizer_CalcMin(self, *_args, **_kwargs) |
f6bcfd97 BP |
346 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
347 | return val | |
348 | def GetNotebook(self, *_args, **_kwargs): | |
5a2a9da2 | 349 | val = sizersc.wxNotebookSizer_GetNotebook(self, *_args, **_kwargs) |
f6bcfd97 BP |
350 | return val |
351 | def __repr__(self): | |
5a2a9da2 | 352 | return "<%s.%s instance; proxy of C++ wxNotebookSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
f6bcfd97 BP |
353 | class wxNotebookSizer(wxNotebookSizerPtr): |
354 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 355 | self.this = sizersc.new_wxNotebookSizer(*_args,**_kwargs) |
f6bcfd97 | 356 | self.thisown = 1 |
2aab8f16 | 357 | self._setOORInfo(self) |
f6bcfd97 BP |
358 | |
359 | ||
360 | ||
361 | ||
362 | class wxGridSizerPtr(wxSizerPtr): | |
363 | def __init__(self,this): | |
364 | self.this = this | |
365 | self.thisown = 0 | |
366 | def RecalcSizes(self, *_args, **_kwargs): | |
5a2a9da2 | 367 | val = sizersc.wxGridSizer_RecalcSizes(self, *_args, **_kwargs) |
f6bcfd97 BP |
368 | return val |
369 | def CalcMin(self, *_args, **_kwargs): | |
5a2a9da2 | 370 | val = sizersc.wxGridSizer_CalcMin(self, *_args, **_kwargs) |
f6bcfd97 BP |
371 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
372 | return val | |
373 | def SetCols(self, *_args, **_kwargs): | |
5a2a9da2 | 374 | val = sizersc.wxGridSizer_SetCols(self, *_args, **_kwargs) |
f6bcfd97 BP |
375 | return val |
376 | def SetRows(self, *_args, **_kwargs): | |
5a2a9da2 | 377 | val = sizersc.wxGridSizer_SetRows(self, *_args, **_kwargs) |
f6bcfd97 BP |
378 | return val |
379 | def SetVGap(self, *_args, **_kwargs): | |
5a2a9da2 | 380 | val = sizersc.wxGridSizer_SetVGap(self, *_args, **_kwargs) |
f6bcfd97 BP |
381 | return val |
382 | def SetHGap(self, *_args, **_kwargs): | |
5a2a9da2 | 383 | val = sizersc.wxGridSizer_SetHGap(self, *_args, **_kwargs) |
f6bcfd97 BP |
384 | return val |
385 | def GetCols(self, *_args, **_kwargs): | |
5a2a9da2 | 386 | val = sizersc.wxGridSizer_GetCols(self, *_args, **_kwargs) |
f6bcfd97 BP |
387 | return val |
388 | def GetRows(self, *_args, **_kwargs): | |
5a2a9da2 | 389 | val = sizersc.wxGridSizer_GetRows(self, *_args, **_kwargs) |
f6bcfd97 BP |
390 | return val |
391 | def GetVGap(self, *_args, **_kwargs): | |
5a2a9da2 | 392 | val = sizersc.wxGridSizer_GetVGap(self, *_args, **_kwargs) |
f6bcfd97 BP |
393 | return val |
394 | def GetHGap(self, *_args, **_kwargs): | |
5a2a9da2 | 395 | val = sizersc.wxGridSizer_GetHGap(self, *_args, **_kwargs) |
f6bcfd97 BP |
396 | return val |
397 | def __repr__(self): | |
5a2a9da2 | 398 | return "<%s.%s instance; proxy of C++ wxGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
f6bcfd97 BP |
399 | class wxGridSizer(wxGridSizerPtr): |
400 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 401 | self.this = sizersc.new_wxGridSizer(*_args,**_kwargs) |
f6bcfd97 | 402 | self.thisown = 1 |
2aab8f16 | 403 | self._setOORInfo(self) |
f6bcfd97 BP |
404 | |
405 | ||
406 | ||
407 | ||
408 | class wxFlexGridSizerPtr(wxGridSizerPtr): | |
409 | def __init__(self,this): | |
410 | self.this = this | |
411 | self.thisown = 0 | |
412 | def RecalcSizes(self, *_args, **_kwargs): | |
5a2a9da2 | 413 | val = sizersc.wxFlexGridSizer_RecalcSizes(self, *_args, **_kwargs) |
f6bcfd97 BP |
414 | return val |
415 | def CalcMin(self, *_args, **_kwargs): | |
5a2a9da2 | 416 | val = sizersc.wxFlexGridSizer_CalcMin(self, *_args, **_kwargs) |
f6bcfd97 BP |
417 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
418 | return val | |
419 | def AddGrowableRow(self, *_args, **_kwargs): | |
5a2a9da2 | 420 | val = sizersc.wxFlexGridSizer_AddGrowableRow(self, *_args, **_kwargs) |
f6bcfd97 BP |
421 | return val |
422 | def RemoveGrowableRow(self, *_args, **_kwargs): | |
5a2a9da2 | 423 | val = sizersc.wxFlexGridSizer_RemoveGrowableRow(self, *_args, **_kwargs) |
f6bcfd97 BP |
424 | return val |
425 | def AddGrowableCol(self, *_args, **_kwargs): | |
5a2a9da2 | 426 | val = sizersc.wxFlexGridSizer_AddGrowableCol(self, *_args, **_kwargs) |
f6bcfd97 BP |
427 | return val |
428 | def RemoveGrowableCol(self, *_args, **_kwargs): | |
5a2a9da2 | 429 | val = sizersc.wxFlexGridSizer_RemoveGrowableCol(self, *_args, **_kwargs) |
f6bcfd97 | 430 | return val |
7e50db3f | 431 | def SetFlexibleDirection(self, *_args, **_kwargs): |
5a2a9da2 | 432 | val = sizersc.wxFlexGridSizer_SetFlexibleDirection(self, *_args, **_kwargs) |
7e50db3f RD |
433 | return val |
434 | def GetFlexibleDirection(self, *_args, **_kwargs): | |
5a2a9da2 | 435 | val = sizersc.wxFlexGridSizer_GetFlexibleDirection(self, *_args, **_kwargs) |
7e50db3f RD |
436 | return val |
437 | def SetNonFlexibleGrowMode(self, *_args, **_kwargs): | |
5a2a9da2 | 438 | val = sizersc.wxFlexGridSizer_SetNonFlexibleGrowMode(self, *_args, **_kwargs) |
7e50db3f RD |
439 | return val |
440 | def GetNonFlexibleGrowMode(self, *_args, **_kwargs): | |
5a2a9da2 | 441 | val = sizersc.wxFlexGridSizer_GetNonFlexibleGrowMode(self, *_args, **_kwargs) |
7e50db3f | 442 | return val |
f6bcfd97 | 443 | def __repr__(self): |
5a2a9da2 | 444 | return "<%s.%s instance; proxy of C++ wxFlexGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
f6bcfd97 BP |
445 | class wxFlexGridSizer(wxFlexGridSizerPtr): |
446 | def __init__(self,*_args,**_kwargs): | |
5a2a9da2 | 447 | self.this = sizersc.new_wxFlexGridSizer(*_args,**_kwargs) |
f6bcfd97 | 448 | self.thisown = 1 |
2aab8f16 | 449 | self._setOORInfo(self) |
f6bcfd97 BP |
450 | |
451 | ||
452 | ||
453 | ||
2f90df85 RD |
454 | |
455 | ||
456 | #-------------- FUNCTION WRAPPERS ------------------ | |
457 | ||
458 | ||
459 | ||
460 | #-------------- VARIABLE WRAPPERS ------------------ | |
461 | ||
7e50db3f RD |
462 | wxFLEX_GROWMODE_NONE = sizersc.wxFLEX_GROWMODE_NONE |
463 | wxFLEX_GROWMODE_SPECIFIED = sizersc.wxFLEX_GROWMODE_SPECIFIED | |
464 | wxFLEX_GROWMODE_ALL = sizersc.wxFLEX_GROWMODE_ALL |