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