]>
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 | ||
b1462dfa RD |
10 | from clip_dnd import * |
11 | ||
2f90df85 RD |
12 | from controls import * |
13 | ||
14 | from events import * | |
15 | import wx | |
16 | import string | |
9df61a29 | 17 | class wxSizerItemPtr(wxObjectPtr): |
2f90df85 RD |
18 | def __init__(self,this): |
19 | self.this = this | |
20 | self.thisown = 0 | |
aa2a5b86 RD |
21 | def GetPosition(self, *_args, **_kwargs): |
22 | val = apply(sizersc.wxSizerItem_GetPosition,(self,) + _args, _kwargs) | |
23 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
24 | return val | |
2f90df85 RD |
25 | def GetSize(self, *_args, **_kwargs): |
26 | val = apply(sizersc.wxSizerItem_GetSize,(self,) + _args, _kwargs) | |
27 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
28 | return val | |
29 | def CalcMin(self, *_args, **_kwargs): | |
30 | val = apply(sizersc.wxSizerItem_CalcMin,(self,) + _args, _kwargs) | |
31 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
32 | return val | |
33 | def SetDimension(self, *_args, **_kwargs): | |
34 | val = apply(sizersc.wxSizerItem_SetDimension,(self,) + _args, _kwargs) | |
35 | return val | |
f6bcfd97 BP |
36 | def SetRatioWH(self, *_args, **_kwargs): |
37 | val = apply(sizersc.wxSizerItem_SetRatioWH,(self,) + _args, _kwargs) | |
38 | return val | |
39 | def SetRatioSize(self, *_args, **_kwargs): | |
40 | val = apply(sizersc.wxSizerItem_SetRatioSize,(self,) + _args, _kwargs) | |
41 | return val | |
42 | def SetRatio(self, *_args, **_kwargs): | |
43 | val = apply(sizersc.wxSizerItem_SetRatio,(self,) + _args, _kwargs) | |
44 | return val | |
45 | def GetRatio(self, *_args, **_kwargs): | |
46 | val = apply(sizersc.wxSizerItem_GetRatio,(self,) + _args, _kwargs) | |
47 | return val | |
2f90df85 RD |
48 | def IsWindow(self, *_args, **_kwargs): |
49 | val = apply(sizersc.wxSizerItem_IsWindow,(self,) + _args, _kwargs) | |
50 | return val | |
51 | def IsSizer(self, *_args, **_kwargs): | |
52 | val = apply(sizersc.wxSizerItem_IsSizer,(self,) + _args, _kwargs) | |
53 | return val | |
54 | def IsSpacer(self, *_args, **_kwargs): | |
55 | val = apply(sizersc.wxSizerItem_IsSpacer,(self,) + _args, _kwargs) | |
56 | return val | |
57 | def GetWindow(self, *_args, **_kwargs): | |
58 | val = apply(sizersc.wxSizerItem_GetWindow,(self,) + _args, _kwargs) | |
2f90df85 | 59 | return val |
f6bcfd97 BP |
60 | def SetWindow(self, *_args, **_kwargs): |
61 | val = apply(sizersc.wxSizerItem_SetWindow,(self,) + _args, _kwargs) | |
62 | return val | |
2f90df85 RD |
63 | def GetSizer(self, *_args, **_kwargs): |
64 | val = apply(sizersc.wxSizerItem_GetSizer,(self,) + _args, _kwargs) | |
2f90df85 | 65 | return val |
f6bcfd97 BP |
66 | def SetSizer(self, *_args, **_kwargs): |
67 | val = apply(sizersc.wxSizerItem_SetSizer,(self,) + _args, _kwargs) | |
68 | return val | |
2f90df85 RD |
69 | def GetOption(self, *_args, **_kwargs): |
70 | val = apply(sizersc.wxSizerItem_GetOption,(self,) + _args, _kwargs) | |
71 | return val | |
72 | def GetFlag(self, *_args, **_kwargs): | |
73 | val = apply(sizersc.wxSizerItem_GetFlag,(self,) + _args, _kwargs) | |
74 | return val | |
75 | def GetBorder(self, *_args, **_kwargs): | |
76 | val = apply(sizersc.wxSizerItem_GetBorder,(self,) + _args, _kwargs) | |
77 | return val | |
9b3d3bc4 RD |
78 | def SetInitSize(self, *_args, **_kwargs): |
79 | val = apply(sizersc.wxSizerItem_SetInitSize,(self,) + _args, _kwargs) | |
80 | return val | |
81 | def SetOption(self, *_args, **_kwargs): | |
82 | val = apply(sizersc.wxSizerItem_SetOption,(self,) + _args, _kwargs) | |
83 | return val | |
84 | def SetFlag(self, *_args, **_kwargs): | |
85 | val = apply(sizersc.wxSizerItem_SetFlag,(self,) + _args, _kwargs) | |
86 | return val | |
87 | def SetBorder(self, *_args, **_kwargs): | |
88 | val = apply(sizersc.wxSizerItem_SetBorder,(self,) + _args, _kwargs) | |
89 | return val | |
2f90df85 RD |
90 | def GetUserData(self, *_args, **_kwargs): |
91 | val = apply(sizersc.wxSizerItem_GetUserData,(self,) + _args, _kwargs) | |
92 | return val | |
93 | def __repr__(self): | |
94 | return "<C wxSizerItem instance at %s>" % (self.this,) | |
95 | class wxSizerItem(wxSizerItemPtr): | |
96 | def __init__(self,this): | |
97 | self.this = this | |
98 | ||
99 | ||
100 | ||
101 | ||
9df61a29 | 102 | class wxSizerPtr(wxObjectPtr): |
2f90df85 RD |
103 | def __init__(self,this): |
104 | self.this = this | |
105 | self.thisown = 0 | |
17c0e08c RD |
106 | def _setOORInfo(self, *_args, **_kwargs): |
107 | val = apply(sizersc.wxSizer__setOORInfo,(self,) + _args, _kwargs) | |
108 | return val | |
2f90df85 RD |
109 | def Destroy(self, *_args, **_kwargs): |
110 | val = apply(sizersc.wxSizer_Destroy,(self,) + _args, _kwargs) | |
111 | return val | |
112 | def AddWindow(self, *_args, **_kwargs): | |
113 | val = apply(sizersc.wxSizer_AddWindow,(self,) + _args, _kwargs) | |
114 | return val | |
115 | def AddSizer(self, *_args, **_kwargs): | |
116 | val = apply(sizersc.wxSizer_AddSizer,(self,) + _args, _kwargs) | |
117 | return val | |
118 | def AddSpacer(self, *_args, **_kwargs): | |
119 | val = apply(sizersc.wxSizer_AddSpacer,(self,) + _args, _kwargs) | |
120 | return val | |
f6bcfd97 BP |
121 | def InsertWindow(self, *_args, **_kwargs): |
122 | val = apply(sizersc.wxSizer_InsertWindow,(self,) + _args, _kwargs) | |
123 | return val | |
124 | def InsertSizer(self, *_args, **_kwargs): | |
125 | val = apply(sizersc.wxSizer_InsertSizer,(self,) + _args, _kwargs) | |
126 | return val | |
127 | def InsertSpacer(self, *_args, **_kwargs): | |
128 | val = apply(sizersc.wxSizer_InsertSpacer,(self,) + _args, _kwargs) | |
129 | return val | |
2f90df85 RD |
130 | def PrependWindow(self, *_args, **_kwargs): |
131 | val = apply(sizersc.wxSizer_PrependWindow,(self,) + _args, _kwargs) | |
132 | return val | |
133 | def PrependSizer(self, *_args, **_kwargs): | |
134 | val = apply(sizersc.wxSizer_PrependSizer,(self,) + _args, _kwargs) | |
135 | return val | |
136 | def PrependSpacer(self, *_args, **_kwargs): | |
137 | val = apply(sizersc.wxSizer_PrependSpacer,(self,) + _args, _kwargs) | |
138 | return val | |
139 | def RemoveWindow(self, *_args, **_kwargs): | |
140 | val = apply(sizersc.wxSizer_RemoveWindow,(self,) + _args, _kwargs) | |
141 | return val | |
142 | def RemoveSizer(self, *_args, **_kwargs): | |
143 | val = apply(sizersc.wxSizer_RemoveSizer,(self,) + _args, _kwargs) | |
144 | return val | |
145 | def RemovePos(self, *_args, **_kwargs): | |
146 | val = apply(sizersc.wxSizer_RemovePos,(self,) + _args, _kwargs) | |
147 | return val | |
148 | def SetDimension(self, *_args, **_kwargs): | |
149 | val = apply(sizersc.wxSizer_SetDimension,(self,) + _args, _kwargs) | |
150 | return val | |
f6bcfd97 BP |
151 | def SetMinSize(self, *_args, **_kwargs): |
152 | val = apply(sizersc.wxSizer_SetMinSize,(self,) + _args, _kwargs) | |
153 | return val | |
154 | def SetItemMinSizeWindow(self, *_args, **_kwargs): | |
155 | val = apply(sizersc.wxSizer_SetItemMinSizeWindow,(self,) + _args, _kwargs) | |
156 | return val | |
157 | def SetItemMinSizeSizer(self, *_args, **_kwargs): | |
158 | val = apply(sizersc.wxSizer_SetItemMinSizeSizer,(self,) + _args, _kwargs) | |
159 | return val | |
160 | def SetItemMinSizePos(self, *_args, **_kwargs): | |
161 | val = apply(sizersc.wxSizer_SetItemMinSizePos,(self,) + _args, _kwargs) | |
162 | return val | |
2f90df85 RD |
163 | def GetSize(self, *_args, **_kwargs): |
164 | val = apply(sizersc.wxSizer_GetSize,(self,) + _args, _kwargs) | |
165 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
166 | return val | |
167 | def GetPosition(self, *_args, **_kwargs): | |
168 | val = apply(sizersc.wxSizer_GetPosition,(self,) + _args, _kwargs) | |
169 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
170 | return val | |
171 | def GetMinSize(self, *_args, **_kwargs): | |
172 | val = apply(sizersc.wxSizer_GetMinSize,(self,) + _args, _kwargs) | |
173 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
174 | return val | |
175 | def Layout(self, *_args, **_kwargs): | |
176 | val = apply(sizersc.wxSizer_Layout,(self,) + _args, _kwargs) | |
177 | return val | |
178 | def Fit(self, *_args, **_kwargs): | |
179 | val = apply(sizersc.wxSizer_Fit,(self,) + _args, _kwargs) | |
180 | return val | |
181 | def SetSizeHints(self, *_args, **_kwargs): | |
182 | val = apply(sizersc.wxSizer_SetSizeHints,(self,) + _args, _kwargs) | |
183 | return val | |
184 | def GetChildren(self, *_args, **_kwargs): | |
185 | val = apply(sizersc.wxSizer_GetChildren,(self,) + _args, _kwargs) | |
186 | return val | |
187 | def __repr__(self): | |
188 | return "<C wxSizer instance at %s>" % (self.this,) | |
189 | ||
7a446686 | 190 | def Add(self, *args, **kw): |
2f90df85 | 191 | if type(args[0]) == type(1): |
7a446686 | 192 | apply(self.AddSpacer, args, kw) |
2f90df85 | 193 | elif string.find(args[0].this, 'Sizer') != -1: |
7a446686 | 194 | apply(self.AddSizer, args, kw) |
2f90df85 | 195 | else: |
7a446686 | 196 | apply(self.AddWindow, args, kw) |
2f90df85 | 197 | |
7a446686 | 198 | def Insert(self, *args, **kw): |
c368d904 | 199 | if type(args[1]) == type(1): |
7a446686 | 200 | apply(self.InsertSpacer, args, kw) |
c368d904 | 201 | elif string.find(args[1].this, 'Sizer') != -1: |
7a446686 | 202 | apply(self.InsertSizer, args, kw) |
f6bcfd97 | 203 | else: |
7a446686 | 204 | apply(self.InsertWindow, args, kw) |
f6bcfd97 | 205 | |
7a446686 | 206 | def Prepend(self, *args, **kw): |
2f90df85 | 207 | if type(args[0]) == type(1): |
7a446686 | 208 | apply(self.PrependSpacer, args, kw) |
2f90df85 | 209 | elif string.find(args[0].this, 'Sizer') != -1: |
7a446686 | 210 | apply(self.PrependSizer, args, kw) |
2f90df85 | 211 | else: |
7a446686 | 212 | apply(self.PrependWindow, args, kw) |
2f90df85 | 213 | |
7a446686 | 214 | def Remove(self, *args, **kw): |
2f90df85 | 215 | if type(args[0]) == type(1): |
7a446686 | 216 | apply(self.RemovePos, args, kw) |
2f90df85 | 217 | elif string.find(args[0].this, 'Sizer') != -1: |
7a446686 | 218 | apply(self.RemoveSizer, args, kw) |
2f90df85 | 219 | else: |
7a446686 | 220 | apply(self.RemoveWindow, args, kw) |
2f90df85 RD |
221 | |
222 | def AddMany(self, widgets): | |
223 | for childinfo in widgets: | |
224 | if type(childinfo) != type(()): | |
225 | childinfo = (childinfo, ) | |
226 | apply(self.Add, childinfo) | |
227 | ||
f6bcfd97 BP |
228 | |
229 | def SetItemMinSize(self, *args): | |
230 | if type(args[0]) == type(1): | |
231 | apply(self.SetItemMinSizePos, args) | |
232 | elif string.find(args[0].this, 'Sizer') != -1: | |
233 | apply(self.SetItemMinSizeSizer, args) | |
234 | else: | |
235 | apply(self.SetItemMinSizeWindow, args) | |
236 | ||
2f90df85 RD |
237 | class wxSizer(wxSizerPtr): |
238 | def __init__(self,this): | |
239 | self.this = this | |
240 | ||
241 | ||
242 | ||
243 | ||
244 | class wxPySizerPtr(wxSizerPtr): | |
245 | def __init__(self,this): | |
246 | self.this = this | |
247 | self.thisown = 0 | |
0220cbc1 RD |
248 | def _setCallbackInfo(self, *_args, **_kwargs): |
249 | val = apply(sizersc.wxPySizer__setCallbackInfo,(self,) + _args, _kwargs) | |
2f90df85 RD |
250 | return val |
251 | def __repr__(self): | |
252 | return "<C wxPySizer instance at %s>" % (self.this,) | |
253 | class wxPySizer(wxPySizerPtr): | |
254 | def __init__(self,*_args,**_kwargs): | |
255 | self.this = apply(sizersc.new_wxPySizer,_args,_kwargs) | |
256 | self.thisown = 1 | |
0220cbc1 | 257 | self._setCallbackInfo(self, wxPySizer) |
17c0e08c | 258 | self._setOORInfo(self) |
2f90df85 RD |
259 | |
260 | ||
261 | ||
262 | ||
263 | class wxBoxSizerPtr(wxSizerPtr): | |
264 | def __init__(self,this): | |
265 | self.this = this | |
266 | self.thisown = 0 | |
267 | def GetOrientation(self, *_args, **_kwargs): | |
268 | val = apply(sizersc.wxBoxSizer_GetOrientation,(self,) + _args, _kwargs) | |
269 | return val | |
f6bcfd97 BP |
270 | def RecalcSizes(self, *_args, **_kwargs): |
271 | val = apply(sizersc.wxBoxSizer_RecalcSizes,(self,) + _args, _kwargs) | |
272 | return val | |
273 | def CalcMin(self, *_args, **_kwargs): | |
274 | val = apply(sizersc.wxBoxSizer_CalcMin,(self,) + _args, _kwargs) | |
275 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
276 | return val | |
2f90df85 RD |
277 | def __repr__(self): |
278 | return "<C wxBoxSizer instance at %s>" % (self.this,) | |
279 | class wxBoxSizer(wxBoxSizerPtr): | |
280 | def __init__(self,*_args,**_kwargs): | |
281 | self.this = apply(sizersc.new_wxBoxSizer,_args,_kwargs) | |
282 | self.thisown = 1 | |
17c0e08c | 283 | self._setOORInfo(self) |
2f90df85 RD |
284 | |
285 | ||
286 | ||
287 | ||
288 | class wxStaticBoxSizerPtr(wxBoxSizerPtr): | |
289 | def __init__(self,this): | |
290 | self.this = this | |
291 | self.thisown = 0 | |
292 | def GetStaticBox(self, *_args, **_kwargs): | |
293 | val = apply(sizersc.wxStaticBoxSizer_GetStaticBox,(self,) + _args, _kwargs) | |
2f90df85 | 294 | return val |
f6bcfd97 BP |
295 | def RecalcSizes(self, *_args, **_kwargs): |
296 | val = apply(sizersc.wxStaticBoxSizer_RecalcSizes,(self,) + _args, _kwargs) | |
297 | return val | |
298 | def CalcMin(self, *_args, **_kwargs): | |
299 | val = apply(sizersc.wxStaticBoxSizer_CalcMin,(self,) + _args, _kwargs) | |
300 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
301 | return val | |
2f90df85 RD |
302 | def __repr__(self): |
303 | return "<C wxStaticBoxSizer instance at %s>" % (self.this,) | |
304 | class wxStaticBoxSizer(wxStaticBoxSizerPtr): | |
305 | def __init__(self,*_args,**_kwargs): | |
306 | self.this = apply(sizersc.new_wxStaticBoxSizer,_args,_kwargs) | |
307 | self.thisown = 1 | |
17c0e08c | 308 | self._setOORInfo(self) |
2f90df85 RD |
309 | |
310 | ||
311 | ||
312 | ||
f6bcfd97 BP |
313 | class wxNotebookSizerPtr(wxSizerPtr): |
314 | def __init__(self,this): | |
315 | self.this = this | |
316 | self.thisown = 0 | |
317 | def RecalcSizes(self, *_args, **_kwargs): | |
318 | val = apply(sizersc.wxNotebookSizer_RecalcSizes,(self,) + _args, _kwargs) | |
319 | return val | |
320 | def CalcMin(self, *_args, **_kwargs): | |
321 | val = apply(sizersc.wxNotebookSizer_CalcMin,(self,) + _args, _kwargs) | |
322 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
323 | return val | |
324 | def GetNotebook(self, *_args, **_kwargs): | |
325 | val = apply(sizersc.wxNotebookSizer_GetNotebook,(self,) + _args, _kwargs) | |
f6bcfd97 BP |
326 | return val |
327 | def __repr__(self): | |
328 | return "<C wxNotebookSizer instance at %s>" % (self.this,) | |
329 | class wxNotebookSizer(wxNotebookSizerPtr): | |
330 | def __init__(self,*_args,**_kwargs): | |
331 | self.this = apply(sizersc.new_wxNotebookSizer,_args,_kwargs) | |
332 | self.thisown = 1 | |
17c0e08c | 333 | self._setOORInfo(self) |
f6bcfd97 BP |
334 | |
335 | ||
336 | ||
337 | ||
338 | class wxGridSizerPtr(wxSizerPtr): | |
339 | def __init__(self,this): | |
340 | self.this = this | |
341 | self.thisown = 0 | |
342 | def RecalcSizes(self, *_args, **_kwargs): | |
343 | val = apply(sizersc.wxGridSizer_RecalcSizes,(self,) + _args, _kwargs) | |
344 | return val | |
345 | def CalcMin(self, *_args, **_kwargs): | |
346 | val = apply(sizersc.wxGridSizer_CalcMin,(self,) + _args, _kwargs) | |
347 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
348 | return val | |
349 | def SetCols(self, *_args, **_kwargs): | |
350 | val = apply(sizersc.wxGridSizer_SetCols,(self,) + _args, _kwargs) | |
351 | return val | |
352 | def SetRows(self, *_args, **_kwargs): | |
353 | val = apply(sizersc.wxGridSizer_SetRows,(self,) + _args, _kwargs) | |
354 | return val | |
355 | def SetVGap(self, *_args, **_kwargs): | |
356 | val = apply(sizersc.wxGridSizer_SetVGap,(self,) + _args, _kwargs) | |
357 | return val | |
358 | def SetHGap(self, *_args, **_kwargs): | |
359 | val = apply(sizersc.wxGridSizer_SetHGap,(self,) + _args, _kwargs) | |
360 | return val | |
361 | def GetCols(self, *_args, **_kwargs): | |
362 | val = apply(sizersc.wxGridSizer_GetCols,(self,) + _args, _kwargs) | |
363 | return val | |
364 | def GetRows(self, *_args, **_kwargs): | |
365 | val = apply(sizersc.wxGridSizer_GetRows,(self,) + _args, _kwargs) | |
366 | return val | |
367 | def GetVGap(self, *_args, **_kwargs): | |
368 | val = apply(sizersc.wxGridSizer_GetVGap,(self,) + _args, _kwargs) | |
369 | return val | |
370 | def GetHGap(self, *_args, **_kwargs): | |
371 | val = apply(sizersc.wxGridSizer_GetHGap,(self,) + _args, _kwargs) | |
372 | return val | |
373 | def __repr__(self): | |
374 | return "<C wxGridSizer instance at %s>" % (self.this,) | |
375 | class wxGridSizer(wxGridSizerPtr): | |
376 | def __init__(self,*_args,**_kwargs): | |
377 | self.this = apply(sizersc.new_wxGridSizer,_args,_kwargs) | |
378 | self.thisown = 1 | |
17c0e08c | 379 | self._setOORInfo(self) |
f6bcfd97 BP |
380 | |
381 | ||
382 | ||
383 | ||
384 | class wxFlexGridSizerPtr(wxGridSizerPtr): | |
385 | def __init__(self,this): | |
386 | self.this = this | |
387 | self.thisown = 0 | |
388 | def RecalcSizes(self, *_args, **_kwargs): | |
389 | val = apply(sizersc.wxFlexGridSizer_RecalcSizes,(self,) + _args, _kwargs) | |
390 | return val | |
391 | def CalcMin(self, *_args, **_kwargs): | |
392 | val = apply(sizersc.wxFlexGridSizer_CalcMin,(self,) + _args, _kwargs) | |
393 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
394 | return val | |
395 | def AddGrowableRow(self, *_args, **_kwargs): | |
396 | val = apply(sizersc.wxFlexGridSizer_AddGrowableRow,(self,) + _args, _kwargs) | |
397 | return val | |
398 | def RemoveGrowableRow(self, *_args, **_kwargs): | |
399 | val = apply(sizersc.wxFlexGridSizer_RemoveGrowableRow,(self,) + _args, _kwargs) | |
400 | return val | |
401 | def AddGrowableCol(self, *_args, **_kwargs): | |
402 | val = apply(sizersc.wxFlexGridSizer_AddGrowableCol,(self,) + _args, _kwargs) | |
403 | return val | |
404 | def RemoveGrowableCol(self, *_args, **_kwargs): | |
405 | val = apply(sizersc.wxFlexGridSizer_RemoveGrowableCol,(self,) + _args, _kwargs) | |
406 | return val | |
407 | def __repr__(self): | |
408 | return "<C wxFlexGridSizer instance at %s>" % (self.this,) | |
409 | class wxFlexGridSizer(wxFlexGridSizerPtr): | |
410 | def __init__(self,*_args,**_kwargs): | |
411 | self.this = apply(sizersc.new_wxFlexGridSizer,_args,_kwargs) | |
412 | self.thisown = 1 | |
17c0e08c | 413 | self._setOORInfo(self) |
f6bcfd97 BP |
414 | |
415 | ||
416 | ||
417 | ||
2f90df85 RD |
418 | |
419 | ||
420 | #-------------- FUNCTION WRAPPERS ------------------ | |
421 | ||
422 | ||
423 | ||
424 | #-------------- VARIABLE WRAPPERS ------------------ | |
425 |