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