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