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