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