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