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