]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/controls.py
Calling a virtual function from a destructor is not good:
[wxWidgets.git] / wxPython / src / gtk / controls.py
CommitLineData
70551f47
RD
1# This file was created automatically by SWIG.
2import controlsc
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
a323d3bd
RD
10from fonts import *
11
4120ef2b
RD
12from clip_dnd import *
13
70551f47 14from events import *
105e45b9 15import wx
70551f47
RD
16class wxControlPtr(wxWindowPtr):
17 def __init__(self,this):
18 self.this = this
19 self.thisown = 0
aa2a5b86
RD
20 def Create(self, *_args, **_kwargs):
21 val = apply(controlsc.wxControl_Create,(self,) + _args, _kwargs)
22 return val
56f5d962
RD
23 def Command(self, *_args, **_kwargs):
24 val = apply(controlsc.wxControl_Command,(self,) + _args, _kwargs)
25 return val
2d091820
RD
26 def GetLabel(self, *_args, **_kwargs):
27 val = apply(controlsc.wxControl_GetLabel,(self,) + _args, _kwargs)
70551f47 28 return val
2d091820
RD
29 def SetLabel(self, *_args, **_kwargs):
30 val = apply(controlsc.wxControl_SetLabel,(self,) + _args, _kwargs)
70551f47
RD
31 return val
32 def __repr__(self):
2d091820 33 return "<C wxControl instance at %s>" % (self.this,)
70551f47 34class wxControl(wxControlPtr):
56f5d962
RD
35 def __init__(self,*_args,**_kwargs):
36 self.this = apply(controlsc.new_wxControl,_args,_kwargs)
37 self.thisown = 1
0220cbc1 38 self._setOORInfo(self)
70551f47
RD
39
40
41
aa2a5b86
RD
42def wxPreControl(*_args,**_kwargs):
43 val = wxControlPtr(apply(controlsc.new_wxPreControl,_args,_kwargs))
44 val.thisown = 1
17c0e08c 45 val._setOORInfo(val)
aa2a5b86
RD
46 return val
47
70551f47 48
65191ae8
RD
49class wxControlWithItemsPtr(wxControlPtr):
50 def __init__(self,this):
51 self.this = this
52 self.thisown = 0
53 def Delete(self, *_args, **_kwargs):
54 val = apply(controlsc.wxControlWithItems_Delete,(self,) + _args, _kwargs)
55 return val
56 def GetCount(self, *_args, **_kwargs):
57 val = apply(controlsc.wxControlWithItems_GetCount,(self,) + _args, _kwargs)
58 return val
59 def GetString(self, *_args, **_kwargs):
60 val = apply(controlsc.wxControlWithItems_GetString,(self,) + _args, _kwargs)
61 return val
62 def SetString(self, *_args, **_kwargs):
63 val = apply(controlsc.wxControlWithItems_SetString,(self,) + _args, _kwargs)
64 return val
65 def FindString(self, *_args, **_kwargs):
66 val = apply(controlsc.wxControlWithItems_FindString,(self,) + _args, _kwargs)
67 return val
68 def Select(self, *_args, **_kwargs):
69 val = apply(controlsc.wxControlWithItems_Select,(self,) + _args, _kwargs)
70 return val
71 def GetSelection(self, *_args, **_kwargs):
72 val = apply(controlsc.wxControlWithItems_GetSelection,(self,) + _args, _kwargs)
73 return val
74 def GetStringSelection(self, *_args, **_kwargs):
75 val = apply(controlsc.wxControlWithItems_GetStringSelection,(self,) + _args, _kwargs)
76 return val
77 def Append(self, *_args, **_kwargs):
78 val = apply(controlsc.wxControlWithItems_Append,(self,) + _args, _kwargs)
79 return val
80 def GetClientData(self, *_args, **_kwargs):
81 val = apply(controlsc.wxControlWithItems_GetClientData,(self,) + _args, _kwargs)
82 return val
83 def SetClientData(self, *_args, **_kwargs):
84 val = apply(controlsc.wxControlWithItems_SetClientData,(self,) + _args, _kwargs)
85 return val
85247b36
RD
86 def AppendItems(self, *_args, **_kwargs):
87 val = apply(controlsc.wxControlWithItems_AppendItems,(self,) + _args, _kwargs)
88 return val
65191ae8
RD
89 def __repr__(self):
90 return "<C wxControlWithItems instance at %s>" % (self.this,)
91 Number = GetCount
92class wxControlWithItems(wxControlWithItemsPtr):
93 def __init__(self,this):
94 self.this = this
95
96
97
98
70551f47
RD
99class wxButtonPtr(wxControlPtr):
100 def __init__(self,this):
101 self.this = this
102 self.thisown = 0
aa2a5b86
RD
103 def Create(self, *_args, **_kwargs):
104 val = apply(controlsc.wxButton_Create,(self,) + _args, _kwargs)
105 return val
2d091820
RD
106 def SetDefault(self, *_args, **_kwargs):
107 val = apply(controlsc.wxButton_SetDefault,(self,) + _args, _kwargs)
70551f47 108 return val
ab2208b5
RD
109 def SetBackgroundColour(self, *_args, **_kwargs):
110 val = apply(controlsc.wxButton_SetBackgroundColour,(self,) + _args, _kwargs)
111 return val
112 def SetForegroundColour(self, *_args, **_kwargs):
113 val = apply(controlsc.wxButton_SetForegroundColour,(self,) + _args, _kwargs)
114 return val
70551f47 115 def __repr__(self):
2d091820 116 return "<C wxButton instance at %s>" % (self.this,)
70551f47 117class wxButton(wxButtonPtr):
2d091820
RD
118 def __init__(self,*_args,**_kwargs):
119 self.this = apply(controlsc.new_wxButton,_args,_kwargs)
70551f47 120 self.thisown = 1
0220cbc1 121 self._setOORInfo(self)
70551f47
RD
122
123
124
aa2a5b86
RD
125def wxPreButton(*_args,**_kwargs):
126 val = wxButtonPtr(apply(controlsc.new_wxPreButton,_args,_kwargs))
127 val.thisown = 1
17c0e08c 128 val._setOORInfo(val)
aa2a5b86
RD
129 return val
130
70551f47
RD
131
132class wxBitmapButtonPtr(wxButtonPtr):
133 def __init__(self,this):
134 self.this = this
135 self.thisown = 0
aa2a5b86
RD
136 def Create(self, *_args, **_kwargs):
137 val = apply(controlsc.wxBitmapButton_Create,(self,) + _args, _kwargs)
138 return val
2d091820
RD
139 def GetBitmapLabel(self, *_args, **_kwargs):
140 val = apply(controlsc.wxBitmapButton_GetBitmapLabel,(self,) + _args, _kwargs)
3e212503 141 if val: val = wxBitmapPtr(val) ; val.thisown = 1
70551f47 142 return val
2d091820
RD
143 def GetBitmapDisabled(self, *_args, **_kwargs):
144 val = apply(controlsc.wxBitmapButton_GetBitmapDisabled,(self,) + _args, _kwargs)
3e212503 145 if val: val = wxBitmapPtr(val) ; val.thisown = 1
c95e68d8 146 return val
2d091820
RD
147 def GetBitmapFocus(self, *_args, **_kwargs):
148 val = apply(controlsc.wxBitmapButton_GetBitmapFocus,(self,) + _args, _kwargs)
3e212503 149 if val: val = wxBitmapPtr(val) ; val.thisown = 1
c95e68d8 150 return val
2d091820
RD
151 def GetBitmapSelected(self, *_args, **_kwargs):
152 val = apply(controlsc.wxBitmapButton_GetBitmapSelected,(self,) + _args, _kwargs)
3e212503 153 if val: val = wxBitmapPtr(val) ; val.thisown = 1
c95e68d8 154 return val
2d091820
RD
155 def SetBitmapDisabled(self, *_args, **_kwargs):
156 val = apply(controlsc.wxBitmapButton_SetBitmapDisabled,(self,) + _args, _kwargs)
c95e68d8 157 return val
2d091820
RD
158 def SetBitmapFocus(self, *_args, **_kwargs):
159 val = apply(controlsc.wxBitmapButton_SetBitmapFocus,(self,) + _args, _kwargs)
c95e68d8 160 return val
2d091820
RD
161 def SetBitmapSelected(self, *_args, **_kwargs):
162 val = apply(controlsc.wxBitmapButton_SetBitmapSelected,(self,) + _args, _kwargs)
c95e68d8 163 return val
2d091820
RD
164 def SetBitmapLabel(self, *_args, **_kwargs):
165 val = apply(controlsc.wxBitmapButton_SetBitmapLabel,(self,) + _args, _kwargs)
70551f47 166 return val
f6bcfd97
BP
167 def SetMargins(self, *_args, **_kwargs):
168 val = apply(controlsc.wxBitmapButton_SetMargins,(self,) + _args, _kwargs)
169 return val
170 def GetMarginX(self, *_args, **_kwargs):
171 val = apply(controlsc.wxBitmapButton_GetMarginX,(self,) + _args, _kwargs)
172 return val
173 def GetMarginY(self, *_args, **_kwargs):
174 val = apply(controlsc.wxBitmapButton_GetMarginY,(self,) + _args, _kwargs)
175 return val
70551f47 176 def __repr__(self):
2d091820 177 return "<C wxBitmapButton instance at %s>" % (self.this,)
70551f47 178class wxBitmapButton(wxBitmapButtonPtr):
2d091820
RD
179 def __init__(self,*_args,**_kwargs):
180 self.this = apply(controlsc.new_wxBitmapButton,_args,_kwargs)
70551f47 181 self.thisown = 1
0220cbc1 182 self._setOORInfo(self)
70551f47
RD
183
184
185
aa2a5b86
RD
186def wxPreBitmapButton(*_args,**_kwargs):
187 val = wxBitmapButtonPtr(apply(controlsc.new_wxPreBitmapButton,_args,_kwargs))
188 val.thisown = 1
17c0e08c 189 val._setOORInfo(val)
aa2a5b86
RD
190 return val
191
70551f47
RD
192
193class wxCheckBoxPtr(wxControlPtr):
194 def __init__(self,this):
195 self.this = this
196 self.thisown = 0
aa2a5b86
RD
197 def Create(self, *_args, **_kwargs):
198 val = apply(controlsc.wxCheckBox_Create,(self,) + _args, _kwargs)
199 return val
2d091820
RD
200 def GetValue(self, *_args, **_kwargs):
201 val = apply(controlsc.wxCheckBox_GetValue,(self,) + _args, _kwargs)
70551f47 202 return val
b67a9327
RD
203 def IsChecked(self, *_args, **_kwargs):
204 val = apply(controlsc.wxCheckBox_IsChecked,(self,) + _args, _kwargs)
205 return val
2d091820
RD
206 def SetValue(self, *_args, **_kwargs):
207 val = apply(controlsc.wxCheckBox_SetValue,(self,) + _args, _kwargs)
70551f47
RD
208 return val
209 def __repr__(self):
2d091820 210 return "<C wxCheckBox instance at %s>" % (self.this,)
70551f47 211class wxCheckBox(wxCheckBoxPtr):
2d091820
RD
212 def __init__(self,*_args,**_kwargs):
213 self.this = apply(controlsc.new_wxCheckBox,_args,_kwargs)
70551f47 214 self.thisown = 1
0220cbc1 215 self._setOORInfo(self)
70551f47
RD
216
217
218
aa2a5b86
RD
219def wxPreCheckBox(*_args,**_kwargs):
220 val = wxCheckBoxPtr(apply(controlsc.new_wxPreCheckBox,_args,_kwargs))
221 val.thisown = 1
17c0e08c 222 val._setOORInfo(val)
aa2a5b86
RD
223 return val
224
70551f47 225
65191ae8 226class wxChoicePtr(wxControlWithItemsPtr):
70551f47
RD
227 def __init__(self,this):
228 self.this = this
229 self.thisown = 0
aa2a5b86
RD
230 def Create(self, *_args, **_kwargs):
231 val = apply(controlsc.wxChoice_Create,(self,) + _args, _kwargs)
232 return val
2d091820
RD
233 def Clear(self, *_args, **_kwargs):
234 val = apply(controlsc.wxChoice_Clear,(self,) + _args, _kwargs)
70551f47 235 return val
2d091820
RD
236 def GetColumns(self, *_args, **_kwargs):
237 val = apply(controlsc.wxChoice_GetColumns,(self,) + _args, _kwargs)
70551f47 238 return val
2d091820
RD
239 def SetColumns(self, *_args, **_kwargs):
240 val = apply(controlsc.wxChoice_SetColumns,(self,) + _args, _kwargs)
70551f47 241 return val
2d091820
RD
242 def SetSelection(self, *_args, **_kwargs):
243 val = apply(controlsc.wxChoice_SetSelection,(self,) + _args, _kwargs)
70551f47 244 return val
2d091820
RD
245 def SetStringSelection(self, *_args, **_kwargs):
246 val = apply(controlsc.wxChoice_SetStringSelection,(self,) + _args, _kwargs)
70551f47 247 return val
2c8a649d
RD
248 def SetString(self, *_args, **_kwargs):
249 val = apply(controlsc.wxChoice_SetString,(self,) + _args, _kwargs)
250 return val
70551f47 251 def __repr__(self):
2d091820 252 return "<C wxChoice instance at %s>" % (self.this,)
2c8a649d 253
2c8a649d
RD
254 Select = SetSelection
255
70551f47 256class wxChoice(wxChoicePtr):
2d091820
RD
257 def __init__(self,*_args,**_kwargs):
258 self.this = apply(controlsc.new_wxChoice,_args,_kwargs)
70551f47 259 self.thisown = 1
0220cbc1 260 self._setOORInfo(self)
70551f47
RD
261
262
263
aa2a5b86
RD
264def wxPreChoice(*_args,**_kwargs):
265 val = wxChoicePtr(apply(controlsc.new_wxPreChoice,_args,_kwargs))
266 val.thisown = 1
17c0e08c 267 val._setOORInfo(val)
aa2a5b86
RD
268 return val
269
70551f47 270
c70fd24f 271class wxComboBoxPtr(wxControlPtr):
70551f47
RD
272 def __init__(self,this):
273 self.this = this
274 self.thisown = 0
aa2a5b86
RD
275 def Create(self, *_args, **_kwargs):
276 val = apply(controlsc.wxComboBox_Create,(self,) + _args, _kwargs)
277 return val
2d091820
RD
278 def Copy(self, *_args, **_kwargs):
279 val = apply(controlsc.wxComboBox_Copy,(self,) + _args, _kwargs)
70551f47 280 return val
2d091820
RD
281 def Cut(self, *_args, **_kwargs):
282 val = apply(controlsc.wxComboBox_Cut,(self,) + _args, _kwargs)
70551f47 283 return val
2d091820
RD
284 def GetInsertionPoint(self, *_args, **_kwargs):
285 val = apply(controlsc.wxComboBox_GetInsertionPoint,(self,) + _args, _kwargs)
70551f47 286 return val
2d091820
RD
287 def GetLastPosition(self, *_args, **_kwargs):
288 val = apply(controlsc.wxComboBox_GetLastPosition,(self,) + _args, _kwargs)
70551f47 289 return val
2d091820
RD
290 def GetValue(self, *_args, **_kwargs):
291 val = apply(controlsc.wxComboBox_GetValue,(self,) + _args, _kwargs)
70551f47 292 return val
2d091820
RD
293 def Paste(self, *_args, **_kwargs):
294 val = apply(controlsc.wxComboBox_Paste,(self,) + _args, _kwargs)
70551f47 295 return val
2d091820
RD
296 def Replace(self, *_args, **_kwargs):
297 val = apply(controlsc.wxComboBox_Replace,(self,) + _args, _kwargs)
70551f47 298 return val
2d091820
RD
299 def Remove(self, *_args, **_kwargs):
300 val = apply(controlsc.wxComboBox_Remove,(self,) + _args, _kwargs)
70551f47 301 return val
2d091820
RD
302 def SetInsertionPoint(self, *_args, **_kwargs):
303 val = apply(controlsc.wxComboBox_SetInsertionPoint,(self,) + _args, _kwargs)
70551f47 304 return val
2d091820
RD
305 def SetInsertionPointEnd(self, *_args, **_kwargs):
306 val = apply(controlsc.wxComboBox_SetInsertionPointEnd,(self,) + _args, _kwargs)
70551f47 307 return val
2d091820
RD
308 def SetSelection(self, *_args, **_kwargs):
309 val = apply(controlsc.wxComboBox_SetSelection,(self,) + _args, _kwargs)
70551f47 310 return val
2d091820
RD
311 def SetMark(self, *_args, **_kwargs):
312 val = apply(controlsc.wxComboBox_SetMark,(self,) + _args, _kwargs)
313 return val
314 def SetValue(self, *_args, **_kwargs):
315 val = apply(controlsc.wxComboBox_SetValue,(self,) + _args, _kwargs)
70551f47 316 return val
2c8a649d
RD
317 def SetEditable(self, *_args, **_kwargs):
318 val = apply(controlsc.wxComboBox_SetEditable,(self,) + _args, _kwargs)
319 return val
c70fd24f
RD
320 def Clear(self, *_args, **_kwargs):
321 val = apply(controlsc.wxComboBox_Clear,(self,) + _args, _kwargs)
322 return val
323 def Delete(self, *_args, **_kwargs):
324 val = apply(controlsc.wxComboBox_Delete,(self,) + _args, _kwargs)
325 return val
326 def GetCount(self, *_args, **_kwargs):
327 val = apply(controlsc.wxComboBox_GetCount,(self,) + _args, _kwargs)
328 return val
329 def GetString(self, *_args, **_kwargs):
330 val = apply(controlsc.wxComboBox_GetString,(self,) + _args, _kwargs)
331 return val
332 def FindString(self, *_args, **_kwargs):
333 val = apply(controlsc.wxComboBox_FindString,(self,) + _args, _kwargs)
334 return val
335 def GetSelection(self, *_args, **_kwargs):
336 val = apply(controlsc.wxComboBox_GetSelection,(self,) + _args, _kwargs)
337 return val
338 def GetStringSelection(self, *_args, **_kwargs):
339 val = apply(controlsc.wxComboBox_GetStringSelection,(self,) + _args, _kwargs)
340 return val
341 def Append(self, *_args, **_kwargs):
342 val = apply(controlsc.wxComboBox_Append,(self,) + _args, _kwargs)
343 return val
344 def GetClientData(self, *_args, **_kwargs):
345 val = apply(controlsc.wxComboBox_GetClientData,(self,) + _args, _kwargs)
346 return val
347 def SetClientData(self, *_args, **_kwargs):
348 val = apply(controlsc.wxComboBox_SetClientData,(self,) + _args, _kwargs)
349 return val
70551f47 350 def __repr__(self):
2d091820 351 return "<C wxComboBox instance at %s>" % (self.this,)
c70fd24f
RD
352 Number = GetCount
353 Select = SetSelection
70551f47 354class wxComboBox(wxComboBoxPtr):
2d091820
RD
355 def __init__(self,*_args,**_kwargs):
356 self.this = apply(controlsc.new_wxComboBox,_args,_kwargs)
70551f47 357 self.thisown = 1
0220cbc1 358 self._setOORInfo(self)
70551f47
RD
359
360
361
aa2a5b86
RD
362def wxPreComboBox(*_args,**_kwargs):
363 val = wxComboBoxPtr(apply(controlsc.new_wxPreComboBox,_args,_kwargs))
364 val.thisown = 1
17c0e08c 365 val._setOORInfo(val)
aa2a5b86
RD
366 return val
367
70551f47
RD
368
369class wxGaugePtr(wxControlPtr):
370 def __init__(self,this):
371 self.this = this
372 self.thisown = 0
aa2a5b86
RD
373 def Create(self, *_args, **_kwargs):
374 val = apply(controlsc.wxGauge_Create,(self,) + _args, _kwargs)
375 return val
2d091820
RD
376 def GetBezelFace(self, *_args, **_kwargs):
377 val = apply(controlsc.wxGauge_GetBezelFace,(self,) + _args, _kwargs)
70551f47 378 return val
2d091820
RD
379 def GetRange(self, *_args, **_kwargs):
380 val = apply(controlsc.wxGauge_GetRange,(self,) + _args, _kwargs)
70551f47 381 return val
2d091820
RD
382 def GetShadowWidth(self, *_args, **_kwargs):
383 val = apply(controlsc.wxGauge_GetShadowWidth,(self,) + _args, _kwargs)
70551f47 384 return val
2d091820
RD
385 def GetValue(self, *_args, **_kwargs):
386 val = apply(controlsc.wxGauge_GetValue,(self,) + _args, _kwargs)
70551f47 387 return val
2d091820
RD
388 def SetBezelFace(self, *_args, **_kwargs):
389 val = apply(controlsc.wxGauge_SetBezelFace,(self,) + _args, _kwargs)
70551f47 390 return val
2d091820
RD
391 def SetRange(self, *_args, **_kwargs):
392 val = apply(controlsc.wxGauge_SetRange,(self,) + _args, _kwargs)
70551f47 393 return val
2d091820
RD
394 def SetShadowWidth(self, *_args, **_kwargs):
395 val = apply(controlsc.wxGauge_SetShadowWidth,(self,) + _args, _kwargs)
70551f47 396 return val
2d091820
RD
397 def SetValue(self, *_args, **_kwargs):
398 val = apply(controlsc.wxGauge_SetValue,(self,) + _args, _kwargs)
70551f47
RD
399 return val
400 def __repr__(self):
2d091820 401 return "<C wxGauge instance at %s>" % (self.this,)
70551f47 402class wxGauge(wxGaugePtr):
2d091820
RD
403 def __init__(self,*_args,**_kwargs):
404 self.this = apply(controlsc.new_wxGauge,_args,_kwargs)
70551f47 405 self.thisown = 1
0220cbc1 406 self._setOORInfo(self)
70551f47
RD
407
408
409
aa2a5b86
RD
410def wxPreGauge(*_args,**_kwargs):
411 val = wxGaugePtr(apply(controlsc.new_wxPreGauge,_args,_kwargs))
412 val.thisown = 1
17c0e08c 413 val._setOORInfo(val)
aa2a5b86
RD
414 return val
415
70551f47
RD
416
417class wxStaticBoxPtr(wxControlPtr):
418 def __init__(self,this):
419 self.this = this
420 self.thisown = 0
aa2a5b86
RD
421 def Create(self, *_args, **_kwargs):
422 val = apply(controlsc.wxStaticBox_Create,(self,) + _args, _kwargs)
423 return val
70551f47 424 def __repr__(self):
2d091820 425 return "<C wxStaticBox instance at %s>" % (self.this,)
70551f47 426class wxStaticBox(wxStaticBoxPtr):
2d091820
RD
427 def __init__(self,*_args,**_kwargs):
428 self.this = apply(controlsc.new_wxStaticBox,_args,_kwargs)
70551f47 429 self.thisown = 1
0220cbc1 430 self._setOORInfo(self)
70551f47
RD
431
432
433
aa2a5b86
RD
434def wxPreStaticBox(*_args,**_kwargs):
435 val = wxStaticBoxPtr(apply(controlsc.new_wxPreStaticBox,_args,_kwargs))
436 val.thisown = 1
17c0e08c 437 val._setOORInfo(val)
aa2a5b86
RD
438 return val
439
70551f47 440
d24a34bb
RD
441class wxStaticLinePtr(wxControlPtr):
442 def __init__(self,this):
443 self.this = this
444 self.thisown = 0
aa2a5b86
RD
445 def Create(self, *_args, **_kwargs):
446 val = apply(controlsc.wxStaticLine_Create,(self,) + _args, _kwargs)
447 return val
d24a34bb 448 def __repr__(self):
2d091820 449 return "<C wxStaticLine instance at %s>" % (self.this,)
d24a34bb 450class wxStaticLine(wxStaticLinePtr):
2d091820
RD
451 def __init__(self,*_args,**_kwargs):
452 self.this = apply(controlsc.new_wxStaticLine,_args,_kwargs)
d24a34bb 453 self.thisown = 1
0220cbc1 454 self._setOORInfo(self)
d24a34bb
RD
455
456
457
aa2a5b86
RD
458def wxPreStaticLine(*_args,**_kwargs):
459 val = wxStaticLinePtr(apply(controlsc.new_wxPreStaticLine,_args,_kwargs))
460 val.thisown = 1
17c0e08c 461 val._setOORInfo(val)
aa2a5b86
RD
462 return val
463
d24a34bb 464
70551f47
RD
465class wxStaticTextPtr(wxControlPtr):
466 def __init__(self,this):
467 self.this = this
468 self.thisown = 0
aa2a5b86
RD
469 def Create(self, *_args, **_kwargs):
470 val = apply(controlsc.wxStaticText_Create,(self,) + _args, _kwargs)
471 return val
2d091820
RD
472 def GetLabel(self, *_args, **_kwargs):
473 val = apply(controlsc.wxStaticText_GetLabel,(self,) + _args, _kwargs)
70551f47 474 return val
2d091820
RD
475 def SetLabel(self, *_args, **_kwargs):
476 val = apply(controlsc.wxStaticText_SetLabel,(self,) + _args, _kwargs)
70551f47
RD
477 return val
478 def __repr__(self):
2d091820 479 return "<C wxStaticText instance at %s>" % (self.this,)
70551f47 480class wxStaticText(wxStaticTextPtr):
2d091820
RD
481 def __init__(self,*_args,**_kwargs):
482 self.this = apply(controlsc.new_wxStaticText,_args,_kwargs)
70551f47 483 self.thisown = 1
0220cbc1 484 self._setOORInfo(self)
70551f47
RD
485
486
487
aa2a5b86
RD
488def wxPreStaticText(*_args,**_kwargs):
489 val = wxStaticTextPtr(apply(controlsc.new_wxPreStaticText,_args,_kwargs))
490 val.thisown = 1
17c0e08c 491 val._setOORInfo(val)
aa2a5b86
RD
492 return val
493
70551f47 494
65191ae8 495class wxListBoxPtr(wxControlWithItemsPtr):
70551f47
RD
496 def __init__(self,this):
497 self.this = this
498 self.thisown = 0
aa2a5b86
RD
499 def Create(self, *_args, **_kwargs):
500 val = apply(controlsc.wxListBox_Create,(self,) + _args, _kwargs)
501 return val
2d091820
RD
502 def Clear(self, *_args, **_kwargs):
503 val = apply(controlsc.wxListBox_Clear,(self,) + _args, _kwargs)
70551f47 504 return val
2d091820
RD
505 def Deselect(self, *_args, **_kwargs):
506 val = apply(controlsc.wxListBox_Deselect,(self,) + _args, _kwargs)
70551f47 507 return val
2d091820
RD
508 def GetSelections(self, *_args, **_kwargs):
509 val = apply(controlsc.wxListBox_GetSelections,(self,) + _args, _kwargs)
ab9bc19b 510 return val
37f6a977
RD
511 def InsertItems(self, *_args, **_kwargs):
512 val = apply(controlsc.wxListBox_InsertItems,(self,) + _args, _kwargs)
513 return val
2c8a649d
RD
514 def IsSelected(self, *_args, **_kwargs):
515 val = apply(controlsc.wxListBox_IsSelected,(self,) + _args, _kwargs)
70551f47 516 return val
2d091820
RD
517 def Selected(self, *_args, **_kwargs):
518 val = apply(controlsc.wxListBox_Selected,(self,) + _args, _kwargs)
70551f47 519 return val
2d091820
RD
520 def Set(self, *_args, **_kwargs):
521 val = apply(controlsc.wxListBox_Set,(self,) + _args, _kwargs)
70551f47 522 return val
2d091820
RD
523 def SetFirstItem(self, *_args, **_kwargs):
524 val = apply(controlsc.wxListBox_SetFirstItem,(self,) + _args, _kwargs)
70551f47 525 return val
2d091820
RD
526 def SetFirstItemStr(self, *_args, **_kwargs):
527 val = apply(controlsc.wxListBox_SetFirstItemStr,(self,) + _args, _kwargs)
70551f47 528 return val
2d091820
RD
529 def SetSelection(self, *_args, **_kwargs):
530 val = apply(controlsc.wxListBox_SetSelection,(self,) + _args, _kwargs)
70551f47 531 return val
2d091820
RD
532 def SetString(self, *_args, **_kwargs):
533 val = apply(controlsc.wxListBox_SetString,(self,) + _args, _kwargs)
70551f47 534 return val
2d091820
RD
535 def SetStringSelection(self, *_args, **_kwargs):
536 val = apply(controlsc.wxListBox_SetStringSelection,(self,) + _args, _kwargs)
70551f47
RD
537 return val
538 def __repr__(self):
2d091820 539 return "<C wxListBox instance at %s>" % (self.this,)
70551f47 540class wxListBox(wxListBoxPtr):
2d091820
RD
541 def __init__(self,*_args,**_kwargs):
542 self.this = apply(controlsc.new_wxListBox,_args,_kwargs)
70551f47 543 self.thisown = 1
0220cbc1 544 self._setOORInfo(self)
70551f47
RD
545
546
547
aa2a5b86
RD
548def wxPreListBox(*_args,**_kwargs):
549 val = wxListBoxPtr(apply(controlsc.new_wxPreListBox,_args,_kwargs))
550 val.thisown = 1
17c0e08c 551 val._setOORInfo(val)
aa2a5b86
RD
552 return val
553
70551f47 554
c95e68d8
RD
555class wxCheckListBoxPtr(wxListBoxPtr):
556 def __init__(self,this):
557 self.this = this
558 self.thisown = 0
aa2a5b86
RD
559 def Create(self, *_args, **_kwargs):
560 val = apply(controlsc.wxCheckListBox_Create,(self,) + _args, _kwargs)
561 return val
2d091820
RD
562 def IsChecked(self, *_args, **_kwargs):
563 val = apply(controlsc.wxCheckListBox_IsChecked,(self,) + _args, _kwargs)
c95e68d8 564 return val
2d091820
RD
565 def Check(self, *_args, **_kwargs):
566 val = apply(controlsc.wxCheckListBox_Check,(self,) + _args, _kwargs)
c95e68d8 567 return val
d29aba2f
RD
568 def InsertItems(self, *_args, **_kwargs):
569 val = apply(controlsc.wxCheckListBox_InsertItems,(self,) + _args, _kwargs)
570 return val
2d091820
RD
571 def GetItemHeight(self, *_args, **_kwargs):
572 val = apply(controlsc.wxCheckListBox_GetItemHeight,(self,) + _args, _kwargs)
c95e68d8 573 return val
c81fd4b9
RD
574 def HitTest(self, *_args, **_kwargs):
575 val = apply(controlsc.wxCheckListBox_HitTest,(self,) + _args, _kwargs)
576 return val
577 def HitTestXY(self, *_args, **_kwargs):
578 val = apply(controlsc.wxCheckListBox_HitTestXY,(self,) + _args, _kwargs)
579 return val
c95e68d8 580 def __repr__(self):
2d091820 581 return "<C wxCheckListBox instance at %s>" % (self.this,)
c95e68d8 582class wxCheckListBox(wxCheckListBoxPtr):
2d091820
RD
583 def __init__(self,*_args,**_kwargs):
584 self.this = apply(controlsc.new_wxCheckListBox,_args,_kwargs)
c95e68d8 585 self.thisown = 1
0220cbc1 586 self._setOORInfo(self)
c95e68d8
RD
587
588
589
aa2a5b86
RD
590def wxPreCheckListBox(*_args,**_kwargs):
591 val = wxCheckListBoxPtr(apply(controlsc.new_wxPreCheckListBox,_args,_kwargs))
592 val.thisown = 1
17c0e08c 593 val._setOORInfo(val)
aa2a5b86
RD
594 return val
595
c95e68d8 596
9d6da64a
RD
597class wxTextAttrPtr :
598 def __init__(self,this):
599 self.this = this
600 self.thisown = 0
b67a9327
RD
601 def __del__(self, delfunc=controlsc.delete_wxTextAttr):
602 if self.thisown == 1:
603 try:
604 delfunc(self)
605 except:
606 pass
9d6da64a
RD
607 def SetTextColour(self, *_args, **_kwargs):
608 val = apply(controlsc.wxTextAttr_SetTextColour,(self,) + _args, _kwargs)
609 return val
610 def SetBackgroundColour(self, *_args, **_kwargs):
611 val = apply(controlsc.wxTextAttr_SetBackgroundColour,(self,) + _args, _kwargs)
612 return val
613 def SetFont(self, *_args, **_kwargs):
614 val = apply(controlsc.wxTextAttr_SetFont,(self,) + _args, _kwargs)
615 return val
616 def HasTextColour(self, *_args, **_kwargs):
617 val = apply(controlsc.wxTextAttr_HasTextColour,(self,) + _args, _kwargs)
618 return val
619 def HasBackgroundColour(self, *_args, **_kwargs):
620 val = apply(controlsc.wxTextAttr_HasBackgroundColour,(self,) + _args, _kwargs)
621 return val
622 def HasFont(self, *_args, **_kwargs):
623 val = apply(controlsc.wxTextAttr_HasFont,(self,) + _args, _kwargs)
624 return val
625 def GetTextColour(self, *_args, **_kwargs):
626 val = apply(controlsc.wxTextAttr_GetTextColour,(self,) + _args, _kwargs)
3e212503 627 if val: val = wxColourPtr(val) ; val.thisown = 1
9d6da64a
RD
628 return val
629 def GetBackgroundColour(self, *_args, **_kwargs):
630 val = apply(controlsc.wxTextAttr_GetBackgroundColour,(self,) + _args, _kwargs)
3e212503 631 if val: val = wxColourPtr(val) ; val.thisown = 1
9d6da64a
RD
632 return val
633 def GetFont(self, *_args, **_kwargs):
634 val = apply(controlsc.wxTextAttr_GetFont,(self,) + _args, _kwargs)
3e212503 635 if val: val = wxFontPtr(val) ; val.thisown = 1
9d6da64a 636 return val
a57d56d6
RD
637 def IsDefault(self, *_args, **_kwargs):
638 val = apply(controlsc.wxTextAttr_IsDefault,(self,) + _args, _kwargs)
639 return val
9d6da64a
RD
640 def __repr__(self):
641 return "<C wxTextAttr instance at %s>" % (self.this,)
642class wxTextAttr(wxTextAttrPtr):
643 def __init__(self,*_args,**_kwargs):
644 self.this = apply(controlsc.new_wxTextAttr,_args,_kwargs)
645 self.thisown = 1
646
647
648
649
70551f47
RD
650class wxTextCtrlPtr(wxControlPtr):
651 def __init__(self,this):
652 self.this = this
653 self.thisown = 0
aa2a5b86
RD
654 def Create(self, *_args, **_kwargs):
655 val = apply(controlsc.wxTextCtrl_Create,(self,) + _args, _kwargs)
656 return val
a57d56d6
RD
657 def GetValue(self, *_args, **_kwargs):
658 val = apply(controlsc.wxTextCtrl_GetValue,(self,) + _args, _kwargs)
70551f47 659 return val
a57d56d6
RD
660 def SetValue(self, *_args, **_kwargs):
661 val = apply(controlsc.wxTextCtrl_SetValue,(self,) + _args, _kwargs)
70551f47 662 return val
db34b2d4
RD
663 def GetRange(self, *_args, **_kwargs):
664 val = apply(controlsc.wxTextCtrl_GetRange,(self,) + _args, _kwargs)
665 return val
2d091820
RD
666 def GetLineLength(self, *_args, **_kwargs):
667 val = apply(controlsc.wxTextCtrl_GetLineLength,(self,) + _args, _kwargs)
faf3cb35 668 return val
2d091820
RD
669 def GetLineText(self, *_args, **_kwargs):
670 val = apply(controlsc.wxTextCtrl_GetLineText,(self,) + _args, _kwargs)
faf3cb35 671 return val
2d091820
RD
672 def GetNumberOfLines(self, *_args, **_kwargs):
673 val = apply(controlsc.wxTextCtrl_GetNumberOfLines,(self,) + _args, _kwargs)
faf3cb35 674 return val
2d091820
RD
675 def IsModified(self, *_args, **_kwargs):
676 val = apply(controlsc.wxTextCtrl_IsModified,(self,) + _args, _kwargs)
70551f47 677 return val
a57d56d6
RD
678 def IsEditable(self, *_args, **_kwargs):
679 val = apply(controlsc.wxTextCtrl_IsEditable,(self,) + _args, _kwargs)
70551f47 680 return val
a57d56d6
RD
681 def GetSelection(self, *_args, **_kwargs):
682 val = apply(controlsc.wxTextCtrl_GetSelection,(self,) + _args, _kwargs)
70551f47 683 return val
93283355
RD
684 def GetStringSelection(self, *_args, **_kwargs):
685 val = apply(controlsc.wxTextCtrl_GetStringSelection,(self,) + _args, _kwargs)
686 return val
a57d56d6
RD
687 def Clear(self, *_args, **_kwargs):
688 val = apply(controlsc.wxTextCtrl_Clear,(self,) + _args, _kwargs)
689 return val
690 def Replace(self, *_args, **_kwargs):
691 val = apply(controlsc.wxTextCtrl_Replace,(self,) + _args, _kwargs)
faf3cb35 692 return val
2d091820
RD
693 def Remove(self, *_args, **_kwargs):
694 val = apply(controlsc.wxTextCtrl_Remove,(self,) + _args, _kwargs)
70551f47 695 return val
a57d56d6
RD
696 def LoadFile(self, *_args, **_kwargs):
697 val = apply(controlsc.wxTextCtrl_LoadFile,(self,) + _args, _kwargs)
70551f47 698 return val
2d091820
RD
699 def SaveFile(self, *_args, **_kwargs):
700 val = apply(controlsc.wxTextCtrl_SaveFile,(self,) + _args, _kwargs)
70551f47 701 return val
a57d56d6
RD
702 def DiscardEdits(self, *_args, **_kwargs):
703 val = apply(controlsc.wxTextCtrl_DiscardEdits,(self,) + _args, _kwargs)
70551f47 704 return val
a57d56d6
RD
705 def SetMaxLength(self, *_args, **_kwargs):
706 val = apply(controlsc.wxTextCtrl_SetMaxLength,(self,) + _args, _kwargs)
70551f47 707 return val
2d091820
RD
708 def WriteText(self, *_args, **_kwargs):
709 val = apply(controlsc.wxTextCtrl_WriteText,(self,) + _args, _kwargs)
70551f47 710 return val
2d091820
RD
711 def AppendText(self, *_args, **_kwargs):
712 val = apply(controlsc.wxTextCtrl_AppendText,(self,) + _args, _kwargs)
ab9bc19b 713 return val
87439dd8
RD
714 def EmulateKeyPress(self, *_args, **_kwargs):
715 val = apply(controlsc.wxTextCtrl_EmulateKeyPress,(self,) + _args, _kwargs)
716 return val
a57d56d6
RD
717 def SetStyle(self, *_args, **_kwargs):
718 val = apply(controlsc.wxTextCtrl_SetStyle,(self,) + _args, _kwargs)
719 return val
720 def SetDefaultStyle(self, *_args, **_kwargs):
721 val = apply(controlsc.wxTextCtrl_SetDefaultStyle,(self,) + _args, _kwargs)
722 return val
723 def GetDefaultStyle(self, *_args, **_kwargs):
724 val = apply(controlsc.wxTextCtrl_GetDefaultStyle,(self,) + _args, _kwargs)
725 if val: val = wxTextAttrPtr(val)
726 return val
2d091820
RD
727 def XYToPosition(self, *_args, **_kwargs):
728 val = apply(controlsc.wxTextCtrl_XYToPosition,(self,) + _args, _kwargs)
faf3cb35 729 return val
a57d56d6
RD
730 def PositionToXY(self, *_args, **_kwargs):
731 val = apply(controlsc.wxTextCtrl_PositionToXY,(self,) + _args, _kwargs)
732 return val
733 def ShowPosition(self, *_args, **_kwargs):
734 val = apply(controlsc.wxTextCtrl_ShowPosition,(self,) + _args, _kwargs)
735 return val
736 def Copy(self, *_args, **_kwargs):
737 val = apply(controlsc.wxTextCtrl_Copy,(self,) + _args, _kwargs)
738 return val
739 def Cut(self, *_args, **_kwargs):
740 val = apply(controlsc.wxTextCtrl_Cut,(self,) + _args, _kwargs)
741 return val
742 def Paste(self, *_args, **_kwargs):
743 val = apply(controlsc.wxTextCtrl_Paste,(self,) + _args, _kwargs)
744 return val
2d091820
RD
745 def CanCopy(self, *_args, **_kwargs):
746 val = apply(controlsc.wxTextCtrl_CanCopy,(self,) + _args, _kwargs)
53920141 747 return val
2d091820
RD
748 def CanCut(self, *_args, **_kwargs):
749 val = apply(controlsc.wxTextCtrl_CanCut,(self,) + _args, _kwargs)
53920141 750 return val
2d091820
RD
751 def CanPaste(self, *_args, **_kwargs):
752 val = apply(controlsc.wxTextCtrl_CanPaste,(self,) + _args, _kwargs)
53920141 753 return val
a57d56d6
RD
754 def Undo(self, *_args, **_kwargs):
755 val = apply(controlsc.wxTextCtrl_Undo,(self,) + _args, _kwargs)
756 return val
757 def Redo(self, *_args, **_kwargs):
758 val = apply(controlsc.wxTextCtrl_Redo,(self,) + _args, _kwargs)
53920141 759 return val
2d091820
RD
760 def CanUndo(self, *_args, **_kwargs):
761 val = apply(controlsc.wxTextCtrl_CanUndo,(self,) + _args, _kwargs)
53920141 762 return val
a57d56d6
RD
763 def CanRedo(self, *_args, **_kwargs):
764 val = apply(controlsc.wxTextCtrl_CanRedo,(self,) + _args, _kwargs)
53920141 765 return val
a57d56d6
RD
766 def SetInsertionPoint(self, *_args, **_kwargs):
767 val = apply(controlsc.wxTextCtrl_SetInsertionPoint,(self,) + _args, _kwargs)
53920141 768 return val
a57d56d6
RD
769 def SetInsertionPointEnd(self, *_args, **_kwargs):
770 val = apply(controlsc.wxTextCtrl_SetInsertionPointEnd,(self,) + _args, _kwargs)
4120ef2b 771 return val
a57d56d6
RD
772 def GetInsertionPoint(self, *_args, **_kwargs):
773 val = apply(controlsc.wxTextCtrl_GetInsertionPoint,(self,) + _args, _kwargs)
4120ef2b 774 return val
a57d56d6
RD
775 def GetLastPosition(self, *_args, **_kwargs):
776 val = apply(controlsc.wxTextCtrl_GetLastPosition,(self,) + _args, _kwargs)
9d6da64a 777 return val
a57d56d6
RD
778 def SetSelection(self, *_args, **_kwargs):
779 val = apply(controlsc.wxTextCtrl_SetSelection,(self,) + _args, _kwargs)
9d6da64a 780 return val
a57d56d6
RD
781 def SelectAll(self, *_args, **_kwargs):
782 val = apply(controlsc.wxTextCtrl_SelectAll,(self,) + _args, _kwargs)
9d6da64a 783 return val
a57d56d6
RD
784 def SetEditable(self, *_args, **_kwargs):
785 val = apply(controlsc.wxTextCtrl_SetEditable,(self,) + _args, _kwargs)
aa2a5b86 786 return val
d99400b2
RD
787 def IsSingleLine(self, *_args, **_kwargs):
788 val = apply(controlsc.wxTextCtrl_IsSingleLine,(self,) + _args, _kwargs)
789 return val
790 def IsMultiLine(self, *_args, **_kwargs):
791 val = apply(controlsc.wxTextCtrl_IsMultiLine,(self,) + _args, _kwargs)
792 return val
4120ef2b
RD
793 def write(self, *_args, **_kwargs):
794 val = apply(controlsc.wxTextCtrl_write,(self,) + _args, _kwargs)
795 return val
7a9b33db
RD
796 def GetString(self, *_args, **_kwargs):
797 val = apply(controlsc.wxTextCtrl_GetString,(self,) + _args, _kwargs)
798 return val
70551f47 799 def __repr__(self):
2d091820 800 return "<C wxTextCtrl instance at %s>" % (self.this,)
70551f47 801class wxTextCtrl(wxTextCtrlPtr):
2d091820
RD
802 def __init__(self,*_args,**_kwargs):
803 self.this = apply(controlsc.new_wxTextCtrl,_args,_kwargs)
70551f47 804 self.thisown = 1
0220cbc1 805 self._setOORInfo(self)
70551f47
RD
806
807
808
aa2a5b86
RD
809def wxPreTextCtrl(*_args,**_kwargs):
810 val = wxTextCtrlPtr(apply(controlsc.new_wxPreTextCtrl,_args,_kwargs))
811 val.thisown = 1
17c0e08c 812 val._setOORInfo(val)
aa2a5b86
RD
813 return val
814
70551f47
RD
815
816class wxScrollBarPtr(wxControlPtr):
817 def __init__(self,this):
818 self.this = this
819 self.thisown = 0
aa2a5b86
RD
820 def Create(self, *_args, **_kwargs):
821 val = apply(controlsc.wxScrollBar_Create,(self,) + _args, _kwargs)
822 return val
2d091820
RD
823 def GetRange(self, *_args, **_kwargs):
824 val = apply(controlsc.wxScrollBar_GetRange,(self,) + _args, _kwargs)
70551f47 825 return val
2d091820
RD
826 def GetPageSize(self, *_args, **_kwargs):
827 val = apply(controlsc.wxScrollBar_GetPageSize,(self,) + _args, _kwargs)
70551f47 828 return val
2d091820
RD
829 def GetThumbPosition(self, *_args, **_kwargs):
830 val = apply(controlsc.wxScrollBar_GetThumbPosition,(self,) + _args, _kwargs)
70551f47 831 return val
2d091820
RD
832 def GetThumbSize(self, *_args, **_kwargs):
833 val = apply(controlsc.wxScrollBar_GetThumbSize,(self,) + _args, _kwargs)
70551f47 834 return val
2fc99549
RD
835 def GetThumbLength(self, *_args, **_kwargs):
836 val = apply(controlsc.wxScrollBar_GetThumbLength,(self,) + _args, _kwargs)
837 return val
6e8a778a
RD
838 def IsVertical(self, *_args, **_kwargs):
839 val = apply(controlsc.wxScrollBar_IsVertical,(self,) + _args, _kwargs)
840 return val
2d091820
RD
841 def SetThumbPosition(self, *_args, **_kwargs):
842 val = apply(controlsc.wxScrollBar_SetThumbPosition,(self,) + _args, _kwargs)
70551f47 843 return val
2d091820
RD
844 def SetScrollbar(self, *_args, **_kwargs):
845 val = apply(controlsc.wxScrollBar_SetScrollbar,(self,) + _args, _kwargs)
70551f47
RD
846 return val
847 def __repr__(self):
2d091820 848 return "<C wxScrollBar instance at %s>" % (self.this,)
70551f47 849class wxScrollBar(wxScrollBarPtr):
2d091820
RD
850 def __init__(self,*_args,**_kwargs):
851 self.this = apply(controlsc.new_wxScrollBar,_args,_kwargs)
70551f47 852 self.thisown = 1
0220cbc1 853 self._setOORInfo(self)
70551f47
RD
854
855
856
aa2a5b86
RD
857def wxPreScrollBar(*_args,**_kwargs):
858 val = wxScrollBarPtr(apply(controlsc.new_wxPreScrollBar,_args,_kwargs))
859 val.thisown = 1
17c0e08c 860 val._setOORInfo(val)
aa2a5b86
RD
861 return val
862
70551f47 863
62bd0874
RD
864class wxSpinButtonPtr(wxControlPtr):
865 def __init__(self,this):
866 self.this = this
867 self.thisown = 0
aa2a5b86
RD
868 def Create(self, *_args, **_kwargs):
869 val = apply(controlsc.wxSpinButton_Create,(self,) + _args, _kwargs)
870 return val
2d091820
RD
871 def GetMax(self, *_args, **_kwargs):
872 val = apply(controlsc.wxSpinButton_GetMax,(self,) + _args, _kwargs)
62bd0874 873 return val
2d091820
RD
874 def GetMin(self, *_args, **_kwargs):
875 val = apply(controlsc.wxSpinButton_GetMin,(self,) + _args, _kwargs)
62bd0874 876 return val
2d091820
RD
877 def GetValue(self, *_args, **_kwargs):
878 val = apply(controlsc.wxSpinButton_GetValue,(self,) + _args, _kwargs)
62bd0874 879 return val
2d091820
RD
880 def SetRange(self, *_args, **_kwargs):
881 val = apply(controlsc.wxSpinButton_SetRange,(self,) + _args, _kwargs)
62bd0874 882 return val
2d091820
RD
883 def SetValue(self, *_args, **_kwargs):
884 val = apply(controlsc.wxSpinButton_SetValue,(self,) + _args, _kwargs)
62bd0874
RD
885 return val
886 def __repr__(self):
2d091820 887 return "<C wxSpinButton instance at %s>" % (self.this,)
62bd0874 888class wxSpinButton(wxSpinButtonPtr):
2d091820
RD
889 def __init__(self,*_args,**_kwargs):
890 self.this = apply(controlsc.new_wxSpinButton,_args,_kwargs)
62bd0874 891 self.thisown = 1
0220cbc1 892 self._setOORInfo(self)
62bd0874
RD
893
894
895
aa2a5b86
RD
896def wxPreSpinButton(*_args,**_kwargs):
897 val = wxSpinButtonPtr(apply(controlsc.new_wxPreSpinButton,_args,_kwargs))
898 val.thisown = 1
17c0e08c 899 val._setOORInfo(val)
aa2a5b86
RD
900 return val
901
62bd0874 902
70551f47
RD
903class wxStaticBitmapPtr(wxControlPtr):
904 def __init__(self,this):
905 self.this = this
906 self.thisown = 0
aa2a5b86
RD
907 def Create(self, *_args, **_kwargs):
908 val = apply(controlsc.wxStaticBitmap_Create,(self,) + _args, _kwargs)
909 return val
2d091820
RD
910 def GetBitmap(self, *_args, **_kwargs):
911 val = apply(controlsc.wxStaticBitmap_GetBitmap,(self,) + _args, _kwargs)
3e212503 912 if val: val = wxBitmapPtr(val) ; val.thisown = 1
70551f47 913 return val
2d091820
RD
914 def SetBitmap(self, *_args, **_kwargs):
915 val = apply(controlsc.wxStaticBitmap_SetBitmap,(self,) + _args, _kwargs)
70551f47 916 return val
2d091820
RD
917 def SetIcon(self, *_args, **_kwargs):
918 val = apply(controlsc.wxStaticBitmap_SetIcon,(self,) + _args, _kwargs)
8bf5d46e 919 return val
70551f47 920 def __repr__(self):
2d091820 921 return "<C wxStaticBitmap instance at %s>" % (self.this,)
70551f47 922class wxStaticBitmap(wxStaticBitmapPtr):
2d091820
RD
923 def __init__(self,*_args,**_kwargs):
924 self.this = apply(controlsc.new_wxStaticBitmap,_args,_kwargs)
70551f47 925 self.thisown = 1
0220cbc1 926 self._setOORInfo(self)
70551f47
RD
927
928
929
aa2a5b86
RD
930def wxPreStaticBitmap(*_args,**_kwargs):
931 val = wxStaticBitmapPtr(apply(controlsc.new_wxPreStaticBitmap,_args,_kwargs))
932 val.thisown = 1
17c0e08c 933 val._setOORInfo(val)
aa2a5b86
RD
934 return val
935
70551f47
RD
936
937class wxRadioBoxPtr(wxControlPtr):
938 def __init__(self,this):
939 self.this = this
940 self.thisown = 0
aa2a5b86
RD
941 def Create(self, *_args, **_kwargs):
942 val = apply(controlsc.wxRadioBox_Create,(self,) + _args, _kwargs)
943 return val
2d091820
RD
944 def Enable(self, *_args, **_kwargs):
945 val = apply(controlsc.wxRadioBox_Enable,(self,) + _args, _kwargs)
70551f47 946 return val
2d091820
RD
947 def EnableItem(self, *_args, **_kwargs):
948 val = apply(controlsc.wxRadioBox_EnableItem,(self,) + _args, _kwargs)
70551f47 949 return val
2d091820
RD
950 def FindString(self, *_args, **_kwargs):
951 val = apply(controlsc.wxRadioBox_FindString,(self,) + _args, _kwargs)
70551f47 952 return val
2c8a649d
RD
953 def GetString(self, *_args, **_kwargs):
954 val = apply(controlsc.wxRadioBox_GetString,(self,) + _args, _kwargs)
955 return val
b67a9327
RD
956 def SetString(self, *_args, **_kwargs):
957 val = apply(controlsc.wxRadioBox_SetString,(self,) + _args, _kwargs)
2c8a649d 958 return val
2d091820
RD
959 def GetSelection(self, *_args, **_kwargs):
960 val = apply(controlsc.wxRadioBox_GetSelection,(self,) + _args, _kwargs)
70551f47 961 return val
2d091820
RD
962 def GetStringSelection(self, *_args, **_kwargs):
963 val = apply(controlsc.wxRadioBox_GetStringSelection,(self,) + _args, _kwargs)
70551f47 964 return val
2c8a649d
RD
965 def GetCount(self, *_args, **_kwargs):
966 val = apply(controlsc.wxRadioBox_GetCount,(self,) + _args, _kwargs)
70551f47 967 return val
2d091820
RD
968 def SetSelection(self, *_args, **_kwargs):
969 val = apply(controlsc.wxRadioBox_SetSelection,(self,) + _args, _kwargs)
70551f47 970 return val
2d091820
RD
971 def SetStringSelection(self, *_args, **_kwargs):
972 val = apply(controlsc.wxRadioBox_SetStringSelection,(self,) + _args, _kwargs)
70551f47 973 return val
2d091820
RD
974 def Show(self, *_args, **_kwargs):
975 val = apply(controlsc.wxRadioBox_Show,(self,) + _args, _kwargs)
70551f47 976 return val
2d091820
RD
977 def ShowItem(self, *_args, **_kwargs):
978 val = apply(controlsc.wxRadioBox_ShowItem,(self,) + _args, _kwargs)
70551f47
RD
979 return val
980 def __repr__(self):
2d091820 981 return "<C wxRadioBox instance at %s>" % (self.this,)
b67a9327
RD
982
983 GetItemLabel = GetString
984 SetItemLabel = SetString
985
2c8a649d 986 Number = GetCount
70551f47 987class wxRadioBox(wxRadioBoxPtr):
2d091820
RD
988 def __init__(self,*_args,**_kwargs):
989 self.this = apply(controlsc.new_wxRadioBox,_args,_kwargs)
70551f47 990 self.thisown = 1
0220cbc1 991 self._setOORInfo(self)
70551f47
RD
992
993
994
aa2a5b86
RD
995def wxPreRadioBox(*_args,**_kwargs):
996 val = wxRadioBoxPtr(apply(controlsc.new_wxPreRadioBox,_args,_kwargs))
997 val.thisown = 1
17c0e08c 998 val._setOORInfo(val)
aa2a5b86
RD
999 return val
1000
70551f47
RD
1001
1002class wxRadioButtonPtr(wxControlPtr):
1003 def __init__(self,this):
1004 self.this = this
1005 self.thisown = 0
aa2a5b86
RD
1006 def Create(self, *_args, **_kwargs):
1007 val = apply(controlsc.wxRadioButton_Create,(self,) + _args, _kwargs)
1008 return val
2d091820
RD
1009 def GetValue(self, *_args, **_kwargs):
1010 val = apply(controlsc.wxRadioButton_GetValue,(self,) + _args, _kwargs)
70551f47 1011 return val
2d091820
RD
1012 def SetValue(self, *_args, **_kwargs):
1013 val = apply(controlsc.wxRadioButton_SetValue,(self,) + _args, _kwargs)
70551f47
RD
1014 return val
1015 def __repr__(self):
2d091820 1016 return "<C wxRadioButton instance at %s>" % (self.this,)
70551f47 1017class wxRadioButton(wxRadioButtonPtr):
2d091820
RD
1018 def __init__(self,*_args,**_kwargs):
1019 self.this = apply(controlsc.new_wxRadioButton,_args,_kwargs)
70551f47 1020 self.thisown = 1
0220cbc1 1021 self._setOORInfo(self)
70551f47
RD
1022
1023
1024
aa2a5b86
RD
1025def wxPreRadioButton(*_args,**_kwargs):
1026 val = wxRadioButtonPtr(apply(controlsc.new_wxPreRadioButton,_args,_kwargs))
1027 val.thisown = 1
17c0e08c 1028 val._setOORInfo(val)
aa2a5b86
RD
1029 return val
1030
70551f47
RD
1031
1032class wxSliderPtr(wxControlPtr):
1033 def __init__(self,this):
1034 self.this = this
1035 self.thisown = 0
aa2a5b86
RD
1036 def Create(self, *_args, **_kwargs):
1037 val = apply(controlsc.wxSlider_Create,(self,) + _args, _kwargs)
1038 return val
2d091820
RD
1039 def ClearSel(self, *_args, **_kwargs):
1040 val = apply(controlsc.wxSlider_ClearSel,(self,) + _args, _kwargs)
70551f47 1041 return val
2d091820
RD
1042 def ClearTicks(self, *_args, **_kwargs):
1043 val = apply(controlsc.wxSlider_ClearTicks,(self,) + _args, _kwargs)
70551f47 1044 return val
2d091820
RD
1045 def GetLineSize(self, *_args, **_kwargs):
1046 val = apply(controlsc.wxSlider_GetLineSize,(self,) + _args, _kwargs)
70551f47 1047 return val
2d091820
RD
1048 def GetMax(self, *_args, **_kwargs):
1049 val = apply(controlsc.wxSlider_GetMax,(self,) + _args, _kwargs)
70551f47 1050 return val
2d091820
RD
1051 def GetMin(self, *_args, **_kwargs):
1052 val = apply(controlsc.wxSlider_GetMin,(self,) + _args, _kwargs)
70551f47 1053 return val
2d091820
RD
1054 def GetPageSize(self, *_args, **_kwargs):
1055 val = apply(controlsc.wxSlider_GetPageSize,(self,) + _args, _kwargs)
70551f47 1056 return val
2d091820
RD
1057 def GetSelEnd(self, *_args, **_kwargs):
1058 val = apply(controlsc.wxSlider_GetSelEnd,(self,) + _args, _kwargs)
70551f47 1059 return val
2d091820
RD
1060 def GetSelStart(self, *_args, **_kwargs):
1061 val = apply(controlsc.wxSlider_GetSelStart,(self,) + _args, _kwargs)
70551f47 1062 return val
2d091820
RD
1063 def GetThumbLength(self, *_args, **_kwargs):
1064 val = apply(controlsc.wxSlider_GetThumbLength,(self,) + _args, _kwargs)
70551f47 1065 return val
2d091820
RD
1066 def GetTickFreq(self, *_args, **_kwargs):
1067 val = apply(controlsc.wxSlider_GetTickFreq,(self,) + _args, _kwargs)
70551f47 1068 return val
2d091820
RD
1069 def GetValue(self, *_args, **_kwargs):
1070 val = apply(controlsc.wxSlider_GetValue,(self,) + _args, _kwargs)
70551f47 1071 return val
2d091820
RD
1072 def SetRange(self, *_args, **_kwargs):
1073 val = apply(controlsc.wxSlider_SetRange,(self,) + _args, _kwargs)
70551f47 1074 return val
2d091820
RD
1075 def SetTickFreq(self, *_args, **_kwargs):
1076 val = apply(controlsc.wxSlider_SetTickFreq,(self,) + _args, _kwargs)
70551f47 1077 return val
2d091820
RD
1078 def SetLineSize(self, *_args, **_kwargs):
1079 val = apply(controlsc.wxSlider_SetLineSize,(self,) + _args, _kwargs)
70551f47 1080 return val
2d091820
RD
1081 def SetPageSize(self, *_args, **_kwargs):
1082 val = apply(controlsc.wxSlider_SetPageSize,(self,) + _args, _kwargs)
70551f47 1083 return val
2d091820
RD
1084 def SetSelection(self, *_args, **_kwargs):
1085 val = apply(controlsc.wxSlider_SetSelection,(self,) + _args, _kwargs)
70551f47 1086 return val
2d091820
RD
1087 def SetThumbLength(self, *_args, **_kwargs):
1088 val = apply(controlsc.wxSlider_SetThumbLength,(self,) + _args, _kwargs)
70551f47 1089 return val
2d091820
RD
1090 def SetTick(self, *_args, **_kwargs):
1091 val = apply(controlsc.wxSlider_SetTick,(self,) + _args, _kwargs)
70551f47 1092 return val
2d091820
RD
1093 def SetValue(self, *_args, **_kwargs):
1094 val = apply(controlsc.wxSlider_SetValue,(self,) + _args, _kwargs)
70551f47
RD
1095 return val
1096 def __repr__(self):
2d091820 1097 return "<C wxSlider instance at %s>" % (self.this,)
70551f47 1098class wxSlider(wxSliderPtr):
2d091820
RD
1099 def __init__(self,*_args,**_kwargs):
1100 self.this = apply(controlsc.new_wxSlider,_args,_kwargs)
70551f47 1101 self.thisown = 1
0220cbc1 1102 self._setOORInfo(self)
f6bcfd97
BP
1103
1104
1105
aa2a5b86
RD
1106def wxPreSlider(*_args,**_kwargs):
1107 val = wxSliderPtr(apply(controlsc.new_wxPreSlider,_args,_kwargs))
1108 val.thisown = 1
17c0e08c 1109 val._setOORInfo(val)
aa2a5b86
RD
1110 return val
1111
f6bcfd97
BP
1112
1113class wxSpinCtrlPtr(wxSpinButtonPtr):
1114 def __init__(self,this):
1115 self.this = this
1116 self.thisown = 0
aa2a5b86
RD
1117 def Create(self, *_args, **_kwargs):
1118 val = apply(controlsc.wxSpinCtrl_Create,(self,) + _args, _kwargs)
1119 return val
c368d904
RD
1120 def GetMax(self, *_args, **_kwargs):
1121 val = apply(controlsc.wxSpinCtrl_GetMax,(self,) + _args, _kwargs)
1122 return val
1123 def GetMin(self, *_args, **_kwargs):
1124 val = apply(controlsc.wxSpinCtrl_GetMin,(self,) + _args, _kwargs)
1125 return val
1126 def GetValue(self, *_args, **_kwargs):
1127 val = apply(controlsc.wxSpinCtrl_GetValue,(self,) + _args, _kwargs)
1128 return val
1129 def SetRange(self, *_args, **_kwargs):
1130 val = apply(controlsc.wxSpinCtrl_SetRange,(self,) + _args, _kwargs)
1131 return val
1132 def SetValue(self, *_args, **_kwargs):
1133 val = apply(controlsc.wxSpinCtrl_SetValue,(self,) + _args, _kwargs)
1134 return val
f6bcfd97
BP
1135 def __repr__(self):
1136 return "<C wxSpinCtrl instance at %s>" % (self.this,)
1137class wxSpinCtrl(wxSpinCtrlPtr):
1138 def __init__(self,*_args,**_kwargs):
1139 self.this = apply(controlsc.new_wxSpinCtrl,_args,_kwargs)
1140 self.thisown = 1
0220cbc1 1141 self._setOORInfo(self)
70551f47
RD
1142
1143
1144
aa2a5b86
RD
1145def wxPreSpinCtrl(*_args,**_kwargs):
1146 val = wxSpinCtrlPtr(apply(controlsc.new_wxPreSpinCtrl,_args,_kwargs))
1147 val.thisown = 1
17c0e08c 1148 val._setOORInfo(val)
aa2a5b86
RD
1149 return val
1150
70551f47 1151
7a446686
RD
1152class wxToggleButtonPtr(wxControlPtr):
1153 def __init__(self,this):
1154 self.this = this
1155 self.thisown = 0
aa2a5b86
RD
1156 def Create(self, *_args, **_kwargs):
1157 val = apply(controlsc.wxToggleButton_Create,(self,) + _args, _kwargs)
1158 return val
7a446686
RD
1159 def SetValue(self, *_args, **_kwargs):
1160 val = apply(controlsc.wxToggleButton_SetValue,(self,) + _args, _kwargs)
1161 return val
1162 def GetValue(self, *_args, **_kwargs):
1163 val = apply(controlsc.wxToggleButton_GetValue,(self,) + _args, _kwargs)
1164 return val
1165 def SetLabel(self, *_args, **_kwargs):
1166 val = apply(controlsc.wxToggleButton_SetLabel,(self,) + _args, _kwargs)
1167 return val
1168 def __repr__(self):
1169 return "<C wxToggleButton instance at %s>" % (self.this,)
1170class wxToggleButton(wxToggleButtonPtr):
1171 def __init__(self,*_args,**_kwargs):
1172 self.this = apply(controlsc.new_wxToggleButton,_args,_kwargs)
1173 self.thisown = 1
0220cbc1 1174 self._setOORInfo(self)
7a446686
RD
1175
1176
1177
aa2a5b86
RD
1178def wxPreToggleButton(*_args,**_kwargs):
1179 val = wxToggleButtonPtr(apply(controlsc.new_wxPreToggleButton,_args,_kwargs))
1180 val.thisown = 1
17c0e08c 1181 val._setOORInfo(val)
aa2a5b86
RD
1182 return val
1183
7a446686 1184
70551f47
RD
1185
1186
1187#-------------- FUNCTION WRAPPERS ------------------
1188
56f5d962
RD
1189def wxButton_GetDefaultSize(*_args, **_kwargs):
1190 val = apply(controlsc.wxButton_GetDefaultSize,_args,_kwargs)
1191 if val: val = wxSizePtr(val); val.thisown = 1
1192 return val
1193
7a9b33db
RD
1194def wxTextAttr_Combine(*_args, **_kwargs):
1195 val = apply(controlsc.wxTextAttr_Combine,_args,_kwargs)
1196 if val: val = wxTextAttrPtr(val); val.thisown = 1
1197 return val
1198
70551f47
RD
1199
1200
1201#-------------- VARIABLE WRAPPERS ------------------
1202
37f6a977
RD
1203cvar = controlsc.cvar
1204wxDefaultValidator = wxValidatorPtr(controlsc.cvar.wxDefaultValidator)
7a446686 1205wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = controlsc.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED