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