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