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