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