]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/msw/controls.py
Compilation fixes
[wxWidgets.git] / utils / wxPython / src / msw / controls.py
CommitLineData
8ab979d7
RD
1# This file was created automatically by SWIG.
2import controlsc
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
b1462dfa
RD
10from clip_dnd import *
11
8ab979d7 12from events import *
b8b8dda7 13import wx
8ab979d7
RD
14class wxControlPtr(wxWindowPtr):
15 def __init__(self,this):
16 self.this = this
17 self.thisown = 0
1d99702e
RD
18 def Command(self, *_args, **_kwargs):
19 val = apply(controlsc.wxControl_Command,(self,) + _args, _kwargs)
8ab979d7 20 return val
1d99702e
RD
21 def GetLabel(self, *_args, **_kwargs):
22 val = apply(controlsc.wxControl_GetLabel,(self,) + _args, _kwargs)
8ab979d7 23 return val
1d99702e
RD
24 def SetLabel(self, *_args, **_kwargs):
25 val = apply(controlsc.wxControl_SetLabel,(self,) + _args, _kwargs)
8ab979d7
RD
26 return val
27 def __repr__(self):
1d99702e 28 return "<C wxControl instance at %s>" % (self.this,)
8ab979d7 29class wxControl(wxControlPtr):
6999b0d8
RD
30 def __init__(self,*_args,**_kwargs):
31 self.this = apply(controlsc.new_wxControl,_args,_kwargs)
32 self.thisown = 1
9b3d3bc4 33 wx._StdWindowCallbacks(self)
8ab979d7
RD
34
35
36
37
38class wxButtonPtr(wxControlPtr):
39 def __init__(self,this):
40 self.this = this
41 self.thisown = 0
1d99702e
RD
42 def SetDefault(self, *_args, **_kwargs):
43 val = apply(controlsc.wxButton_SetDefault,(self,) + _args, _kwargs)
8ab979d7 44 return val
9b3d3bc4
RD
45 def SetBackgroundColour(self, *_args, **_kwargs):
46 val = apply(controlsc.wxButton_SetBackgroundColour,(self,) + _args, _kwargs)
47 return val
48 def SetForegroundColour(self, *_args, **_kwargs):
49 val = apply(controlsc.wxButton_SetForegroundColour,(self,) + _args, _kwargs)
50 return val
8ab979d7 51 def __repr__(self):
1d99702e 52 return "<C wxButton instance at %s>" % (self.this,)
8ab979d7 53class wxButton(wxButtonPtr):
1d99702e
RD
54 def __init__(self,*_args,**_kwargs):
55 self.this = apply(controlsc.new_wxButton,_args,_kwargs)
8ab979d7 56 self.thisown = 1
b8b8dda7 57 wx._StdWindowCallbacks(self)
8ab979d7
RD
58
59
60
61
62class wxBitmapButtonPtr(wxButtonPtr):
63 def __init__(self,this):
64 self.this = this
65 self.thisown = 0
1d99702e
RD
66 def GetBitmapLabel(self, *_args, **_kwargs):
67 val = apply(controlsc.wxBitmapButton_GetBitmapLabel,(self,) + _args, _kwargs)
68 if val: val = wxBitmapPtr(val)
8ab979d7 69 return val
1d99702e
RD
70 def GetBitmapDisabled(self, *_args, **_kwargs):
71 val = apply(controlsc.wxBitmapButton_GetBitmapDisabled,(self,) + _args, _kwargs)
72 if val: val = wxBitmapPtr(val)
8ab979d7 73 return val
1d99702e
RD
74 def GetBitmapFocus(self, *_args, **_kwargs):
75 val = apply(controlsc.wxBitmapButton_GetBitmapFocus,(self,) + _args, _kwargs)
76 if val: val = wxBitmapPtr(val)
8ab979d7 77 return val
1d99702e
RD
78 def GetBitmapSelected(self, *_args, **_kwargs):
79 val = apply(controlsc.wxBitmapButton_GetBitmapSelected,(self,) + _args, _kwargs)
80 if val: val = wxBitmapPtr(val)
8ab979d7 81 return val
1d99702e
RD
82 def SetBitmapDisabled(self, *_args, **_kwargs):
83 val = apply(controlsc.wxBitmapButton_SetBitmapDisabled,(self,) + _args, _kwargs)
8ab979d7 84 return val
1d99702e
RD
85 def SetBitmapFocus(self, *_args, **_kwargs):
86 val = apply(controlsc.wxBitmapButton_SetBitmapFocus,(self,) + _args, _kwargs)
8ab979d7 87 return val
1d99702e
RD
88 def SetBitmapSelected(self, *_args, **_kwargs):
89 val = apply(controlsc.wxBitmapButton_SetBitmapSelected,(self,) + _args, _kwargs)
8ab979d7 90 return val
1d99702e
RD
91 def SetBitmapLabel(self, *_args, **_kwargs):
92 val = apply(controlsc.wxBitmapButton_SetBitmapLabel,(self,) + _args, _kwargs)
8ab979d7
RD
93 return val
94 def __repr__(self):
1d99702e 95 return "<C wxBitmapButton instance at %s>" % (self.this,)
8ab979d7 96class wxBitmapButton(wxBitmapButtonPtr):
1d99702e
RD
97 def __init__(self,*_args,**_kwargs):
98 self.this = apply(controlsc.new_wxBitmapButton,_args,_kwargs)
8ab979d7 99 self.thisown = 1
b8b8dda7 100 wx._StdWindowCallbacks(self)
8ab979d7
RD
101
102
103
104
105class wxCheckBoxPtr(wxControlPtr):
106 def __init__(self,this):
107 self.this = this
108 self.thisown = 0
1d99702e
RD
109 def GetValue(self, *_args, **_kwargs):
110 val = apply(controlsc.wxCheckBox_GetValue,(self,) + _args, _kwargs)
8ab979d7 111 return val
1d99702e
RD
112 def SetValue(self, *_args, **_kwargs):
113 val = apply(controlsc.wxCheckBox_SetValue,(self,) + _args, _kwargs)
8ab979d7
RD
114 return val
115 def __repr__(self):
1d99702e 116 return "<C wxCheckBox instance at %s>" % (self.this,)
8ab979d7 117class wxCheckBox(wxCheckBoxPtr):
1d99702e
RD
118 def __init__(self,*_args,**_kwargs):
119 self.this = apply(controlsc.new_wxCheckBox,_args,_kwargs)
8ab979d7 120 self.thisown = 1
b8b8dda7 121 wx._StdWindowCallbacks(self)
8ab979d7
RD
122
123
124
125
126class wxChoicePtr(wxControlPtr):
127 def __init__(self,this):
128 self.this = this
129 self.thisown = 0
1d99702e
RD
130 def Append(self, *_args, **_kwargs):
131 val = apply(controlsc.wxChoice_Append,(self,) + _args, _kwargs)
8ab979d7 132 return val
1d99702e
RD
133 def Clear(self, *_args, **_kwargs):
134 val = apply(controlsc.wxChoice_Clear,(self,) + _args, _kwargs)
8ab979d7 135 return val
1d99702e
RD
136 def FindString(self, *_args, **_kwargs):
137 val = apply(controlsc.wxChoice_FindString,(self,) + _args, _kwargs)
8ab979d7 138 return val
1d99702e
RD
139 def GetColumns(self, *_args, **_kwargs):
140 val = apply(controlsc.wxChoice_GetColumns,(self,) + _args, _kwargs)
8ab979d7 141 return val
1d99702e
RD
142 def GetSelection(self, *_args, **_kwargs):
143 val = apply(controlsc.wxChoice_GetSelection,(self,) + _args, _kwargs)
8ab979d7 144 return val
1d99702e
RD
145 def GetString(self, *_args, **_kwargs):
146 val = apply(controlsc.wxChoice_GetString,(self,) + _args, _kwargs)
8ab979d7 147 return val
1d99702e
RD
148 def GetStringSelection(self, *_args, **_kwargs):
149 val = apply(controlsc.wxChoice_GetStringSelection,(self,) + _args, _kwargs)
8ab979d7 150 return val
1d99702e
RD
151 def Number(self, *_args, **_kwargs):
152 val = apply(controlsc.wxChoice_Number,(self,) + _args, _kwargs)
8ab979d7 153 return val
1d99702e
RD
154 def SetColumns(self, *_args, **_kwargs):
155 val = apply(controlsc.wxChoice_SetColumns,(self,) + _args, _kwargs)
8ab979d7 156 return val
1d99702e
RD
157 def SetSelection(self, *_args, **_kwargs):
158 val = apply(controlsc.wxChoice_SetSelection,(self,) + _args, _kwargs)
8ab979d7 159 return val
1d99702e
RD
160 def SetStringSelection(self, *_args, **_kwargs):
161 val = apply(controlsc.wxChoice_SetStringSelection,(self,) + _args, _kwargs)
8ab979d7
RD
162 return val
163 def __repr__(self):
1d99702e 164 return "<C wxChoice instance at %s>" % (self.this,)
8ab979d7 165class wxChoice(wxChoicePtr):
1d99702e
RD
166 def __init__(self,*_args,**_kwargs):
167 self.this = apply(controlsc.new_wxChoice,_args,_kwargs)
8ab979d7 168 self.thisown = 1
b8b8dda7 169 wx._StdWindowCallbacks(self)
8ab979d7
RD
170
171
172
173
bb0054cd 174class wxComboBoxPtr(wxChoicePtr):
8ab979d7
RD
175 def __init__(self,this):
176 self.this = this
177 self.thisown = 0
1d99702e
RD
178 def Append(self, *_args, **_kwargs):
179 val = apply(controlsc.wxComboBox_Append,(self,) + _args, _kwargs)
8ab979d7 180 return val
1d99702e
RD
181 def Clear(self, *_args, **_kwargs):
182 val = apply(controlsc.wxComboBox_Clear,(self,) + _args, _kwargs)
8ab979d7 183 return val
1d99702e
RD
184 def Copy(self, *_args, **_kwargs):
185 val = apply(controlsc.wxComboBox_Copy,(self,) + _args, _kwargs)
8ab979d7 186 return val
1d99702e
RD
187 def Cut(self, *_args, **_kwargs):
188 val = apply(controlsc.wxComboBox_Cut,(self,) + _args, _kwargs)
8ab979d7 189 return val
1d99702e
RD
190 def Delete(self, *_args, **_kwargs):
191 val = apply(controlsc.wxComboBox_Delete,(self,) + _args, _kwargs)
8ab979d7 192 return val
1d99702e
RD
193 def FindString(self, *_args, **_kwargs):
194 val = apply(controlsc.wxComboBox_FindString,(self,) + _args, _kwargs)
8ab979d7 195 return val
1d99702e
RD
196 def GetInsertionPoint(self, *_args, **_kwargs):
197 val = apply(controlsc.wxComboBox_GetInsertionPoint,(self,) + _args, _kwargs)
8ab979d7 198 return val
1d99702e
RD
199 def GetLastPosition(self, *_args, **_kwargs):
200 val = apply(controlsc.wxComboBox_GetLastPosition,(self,) + _args, _kwargs)
8ab979d7 201 return val
1d99702e
RD
202 def GetSelection(self, *_args, **_kwargs):
203 val = apply(controlsc.wxComboBox_GetSelection,(self,) + _args, _kwargs)
8ab979d7 204 return val
1d99702e
RD
205 def GetString(self, *_args, **_kwargs):
206 val = apply(controlsc.wxComboBox_GetString,(self,) + _args, _kwargs)
8ab979d7 207 return val
1d99702e
RD
208 def GetStringSelection(self, *_args, **_kwargs):
209 val = apply(controlsc.wxComboBox_GetStringSelection,(self,) + _args, _kwargs)
8ab979d7 210 return val
1d99702e
RD
211 def GetValue(self, *_args, **_kwargs):
212 val = apply(controlsc.wxComboBox_GetValue,(self,) + _args, _kwargs)
8ab979d7 213 return val
1d99702e
RD
214 def Number(self, *_args, **_kwargs):
215 val = apply(controlsc.wxComboBox_Number,(self,) + _args, _kwargs)
8ab979d7 216 return val
1d99702e
RD
217 def Paste(self, *_args, **_kwargs):
218 val = apply(controlsc.wxComboBox_Paste,(self,) + _args, _kwargs)
8ab979d7 219 return val
1d99702e
RD
220 def Replace(self, *_args, **_kwargs):
221 val = apply(controlsc.wxComboBox_Replace,(self,) + _args, _kwargs)
8ab979d7 222 return val
1d99702e
RD
223 def Remove(self, *_args, **_kwargs):
224 val = apply(controlsc.wxComboBox_Remove,(self,) + _args, _kwargs)
8ab979d7 225 return val
1d99702e
RD
226 def SetInsertionPoint(self, *_args, **_kwargs):
227 val = apply(controlsc.wxComboBox_SetInsertionPoint,(self,) + _args, _kwargs)
8ab979d7 228 return val
1d99702e
RD
229 def SetInsertionPointEnd(self, *_args, **_kwargs):
230 val = apply(controlsc.wxComboBox_SetInsertionPointEnd,(self,) + _args, _kwargs)
8ab979d7 231 return val
1d99702e
RD
232 def SetSelection(self, *_args, **_kwargs):
233 val = apply(controlsc.wxComboBox_SetSelection,(self,) + _args, _kwargs)
8ab979d7 234 return val
1d99702e
RD
235 def SetMark(self, *_args, **_kwargs):
236 val = apply(controlsc.wxComboBox_SetMark,(self,) + _args, _kwargs)
237 return val
238 def SetValue(self, *_args, **_kwargs):
239 val = apply(controlsc.wxComboBox_SetValue,(self,) + _args, _kwargs)
8ab979d7
RD
240 return val
241 def __repr__(self):
1d99702e 242 return "<C wxComboBox instance at %s>" % (self.this,)
8ab979d7 243class wxComboBox(wxComboBoxPtr):
1d99702e
RD
244 def __init__(self,*_args,**_kwargs):
245 self.this = apply(controlsc.new_wxComboBox,_args,_kwargs)
8ab979d7 246 self.thisown = 1
b8b8dda7 247 wx._StdWindowCallbacks(self)
8ab979d7
RD
248
249
250
251
252class wxGaugePtr(wxControlPtr):
253 def __init__(self,this):
254 self.this = this
255 self.thisown = 0
1d99702e
RD
256 def GetBezelFace(self, *_args, **_kwargs):
257 val = apply(controlsc.wxGauge_GetBezelFace,(self,) + _args, _kwargs)
8ab979d7 258 return val
1d99702e
RD
259 def GetRange(self, *_args, **_kwargs):
260 val = apply(controlsc.wxGauge_GetRange,(self,) + _args, _kwargs)
8ab979d7 261 return val
1d99702e
RD
262 def GetShadowWidth(self, *_args, **_kwargs):
263 val = apply(controlsc.wxGauge_GetShadowWidth,(self,) + _args, _kwargs)
8ab979d7 264 return val
1d99702e
RD
265 def GetValue(self, *_args, **_kwargs):
266 val = apply(controlsc.wxGauge_GetValue,(self,) + _args, _kwargs)
8ab979d7 267 return val
1d99702e
RD
268 def SetBezelFace(self, *_args, **_kwargs):
269 val = apply(controlsc.wxGauge_SetBezelFace,(self,) + _args, _kwargs)
8ab979d7 270 return val
1d99702e
RD
271 def SetRange(self, *_args, **_kwargs):
272 val = apply(controlsc.wxGauge_SetRange,(self,) + _args, _kwargs)
8ab979d7 273 return val
1d99702e
RD
274 def SetShadowWidth(self, *_args, **_kwargs):
275 val = apply(controlsc.wxGauge_SetShadowWidth,(self,) + _args, _kwargs)
8ab979d7 276 return val
1d99702e
RD
277 def SetValue(self, *_args, **_kwargs):
278 val = apply(controlsc.wxGauge_SetValue,(self,) + _args, _kwargs)
8ab979d7
RD
279 return val
280 def __repr__(self):
1d99702e 281 return "<C wxGauge instance at %s>" % (self.this,)
8ab979d7 282class wxGauge(wxGaugePtr):
1d99702e
RD
283 def __init__(self,*_args,**_kwargs):
284 self.this = apply(controlsc.new_wxGauge,_args,_kwargs)
8ab979d7 285 self.thisown = 1
b8b8dda7 286 wx._StdWindowCallbacks(self)
8ab979d7
RD
287
288
289
290
291class wxStaticBoxPtr(wxControlPtr):
292 def __init__(self,this):
293 self.this = this
294 self.thisown = 0
295 def __repr__(self):
1d99702e 296 return "<C wxStaticBox instance at %s>" % (self.this,)
8ab979d7 297class wxStaticBox(wxStaticBoxPtr):
1d99702e
RD
298 def __init__(self,*_args,**_kwargs):
299 self.this = apply(controlsc.new_wxStaticBox,_args,_kwargs)
8ab979d7
RD
300 self.thisown = 1
301
302
303
304
8bf5d46e
RD
305class wxStaticLinePtr(wxControlPtr):
306 def __init__(self,this):
307 self.this = this
308 self.thisown = 0
309 def __repr__(self):
1d99702e 310 return "<C wxStaticLine instance at %s>" % (self.this,)
8bf5d46e 311class wxStaticLine(wxStaticLinePtr):
1d99702e
RD
312 def __init__(self,*_args,**_kwargs):
313 self.this = apply(controlsc.new_wxStaticLine,_args,_kwargs)
8bf5d46e
RD
314 self.thisown = 1
315
316
317
318
8ab979d7
RD
319class wxStaticTextPtr(wxControlPtr):
320 def __init__(self,this):
321 self.this = this
322 self.thisown = 0
1d99702e
RD
323 def GetLabel(self, *_args, **_kwargs):
324 val = apply(controlsc.wxStaticText_GetLabel,(self,) + _args, _kwargs)
8ab979d7 325 return val
1d99702e
RD
326 def SetLabel(self, *_args, **_kwargs):
327 val = apply(controlsc.wxStaticText_SetLabel,(self,) + _args, _kwargs)
8ab979d7
RD
328 return val
329 def __repr__(self):
1d99702e 330 return "<C wxStaticText instance at %s>" % (self.this,)
8ab979d7 331class wxStaticText(wxStaticTextPtr):
1d99702e
RD
332 def __init__(self,*_args,**_kwargs):
333 self.this = apply(controlsc.new_wxStaticText,_args,_kwargs)
8ab979d7 334 self.thisown = 1
b8b8dda7 335 wx._StdWindowCallbacks(self)
8ab979d7
RD
336
337
338
339
340class wxListBoxPtr(wxControlPtr):
341 def __init__(self,this):
342 self.this = this
343 self.thisown = 0
1d99702e
RD
344 def Append(self, *_args, **_kwargs):
345 val = apply(controlsc.wxListBox_Append,(self,) + _args, _kwargs)
8ab979d7 346 return val
1d99702e
RD
347 def Clear(self, *_args, **_kwargs):
348 val = apply(controlsc.wxListBox_Clear,(self,) + _args, _kwargs)
8ab979d7 349 return val
1d99702e
RD
350 def Delete(self, *_args, **_kwargs):
351 val = apply(controlsc.wxListBox_Delete,(self,) + _args, _kwargs)
8ab979d7 352 return val
1d99702e
RD
353 def Deselect(self, *_args, **_kwargs):
354 val = apply(controlsc.wxListBox_Deselect,(self,) + _args, _kwargs)
8ab979d7 355 return val
1d99702e
RD
356 def FindString(self, *_args, **_kwargs):
357 val = apply(controlsc.wxListBox_FindString,(self,) + _args, _kwargs)
8ab979d7 358 return val
1d99702e
RD
359 def GetSelection(self, *_args, **_kwargs):
360 val = apply(controlsc.wxListBox_GetSelection,(self,) + _args, _kwargs)
8ab979d7 361 return val
1d99702e
RD
362 def GetSelections(self, *_args, **_kwargs):
363 val = apply(controlsc.wxListBox_GetSelections,(self,) + _args, _kwargs)
cf694132 364 return val
2f90df85
RD
365 def InsertItems(self, *_args, **_kwargs):
366 val = apply(controlsc.wxListBox_InsertItems,(self,) + _args, _kwargs)
367 return val
1d99702e
RD
368 def GetString(self, *_args, **_kwargs):
369 val = apply(controlsc.wxListBox_GetString,(self,) + _args, _kwargs)
8ab979d7 370 return val
1d99702e
RD
371 def GetStringSelection(self, *_args, **_kwargs):
372 val = apply(controlsc.wxListBox_GetStringSelection,(self,) + _args, _kwargs)
8ab979d7 373 return val
1d99702e
RD
374 def Number(self, *_args, **_kwargs):
375 val = apply(controlsc.wxListBox_Number,(self,) + _args, _kwargs)
8ab979d7 376 return val
1d99702e
RD
377 def Selected(self, *_args, **_kwargs):
378 val = apply(controlsc.wxListBox_Selected,(self,) + _args, _kwargs)
8ab979d7 379 return val
1d99702e
RD
380 def Set(self, *_args, **_kwargs):
381 val = apply(controlsc.wxListBox_Set,(self,) + _args, _kwargs)
8ab979d7 382 return val
1d99702e
RD
383 def SetFirstItem(self, *_args, **_kwargs):
384 val = apply(controlsc.wxListBox_SetFirstItem,(self,) + _args, _kwargs)
8ab979d7 385 return val
1d99702e
RD
386 def SetFirstItemStr(self, *_args, **_kwargs):
387 val = apply(controlsc.wxListBox_SetFirstItemStr,(self,) + _args, _kwargs)
8ab979d7 388 return val
1d99702e
RD
389 def SetSelection(self, *_args, **_kwargs):
390 val = apply(controlsc.wxListBox_SetSelection,(self,) + _args, _kwargs)
8ab979d7 391 return val
1d99702e
RD
392 def SetString(self, *_args, **_kwargs):
393 val = apply(controlsc.wxListBox_SetString,(self,) + _args, _kwargs)
8ab979d7 394 return val
1d99702e
RD
395 def SetStringSelection(self, *_args, **_kwargs):
396 val = apply(controlsc.wxListBox_SetStringSelection,(self,) + _args, _kwargs)
8ab979d7
RD
397 return val
398 def __repr__(self):
1d99702e 399 return "<C wxListBox instance at %s>" % (self.this,)
8ab979d7 400class wxListBox(wxListBoxPtr):
1d99702e
RD
401 def __init__(self,*_args,**_kwargs):
402 self.this = apply(controlsc.new_wxListBox,_args,_kwargs)
8ab979d7 403 self.thisown = 1
b8b8dda7 404 wx._StdWindowCallbacks(self)
9c039d08
RD
405
406
407
408
409class wxCheckListBoxPtr(wxListBoxPtr):
410 def __init__(self,this):
411 self.this = this
412 self.thisown = 0
1d99702e
RD
413 def IsChecked(self, *_args, **_kwargs):
414 val = apply(controlsc.wxCheckListBox_IsChecked,(self,) + _args, _kwargs)
9c039d08 415 return val
1d99702e
RD
416 def Check(self, *_args, **_kwargs):
417 val = apply(controlsc.wxCheckListBox_Check,(self,) + _args, _kwargs)
9c039d08 418 return val
694759cf
RD
419 def InsertItems(self, *_args, **_kwargs):
420 val = apply(controlsc.wxCheckListBox_InsertItems,(self,) + _args, _kwargs)
421 return val
1d99702e
RD
422 def GetItemHeight(self, *_args, **_kwargs):
423 val = apply(controlsc.wxCheckListBox_GetItemHeight,(self,) + _args, _kwargs)
9c039d08
RD
424 return val
425 def __repr__(self):
1d99702e 426 return "<C wxCheckListBox instance at %s>" % (self.this,)
9c039d08 427class wxCheckListBox(wxCheckListBoxPtr):
1d99702e
RD
428 def __init__(self,*_args,**_kwargs):
429 self.this = apply(controlsc.new_wxCheckListBox,_args,_kwargs)
9c039d08 430 self.thisown = 1
b8b8dda7 431 wx._StdWindowCallbacks(self)
8ab979d7
RD
432
433
434
435
436class wxTextCtrlPtr(wxControlPtr):
437 def __init__(self,this):
438 self.this = this
439 self.thisown = 0
1d99702e
RD
440 def Clear(self, *_args, **_kwargs):
441 val = apply(controlsc.wxTextCtrl_Clear,(self,) + _args, _kwargs)
8ab979d7 442 return val
1d99702e
RD
443 def Copy(self, *_args, **_kwargs):
444 val = apply(controlsc.wxTextCtrl_Copy,(self,) + _args, _kwargs)
8ab979d7 445 return val
1d99702e
RD
446 def Cut(self, *_args, **_kwargs):
447 val = apply(controlsc.wxTextCtrl_Cut,(self,) + _args, _kwargs)
8ab979d7 448 return val
1d99702e
RD
449 def DiscardEdits(self, *_args, **_kwargs):
450 val = apply(controlsc.wxTextCtrl_DiscardEdits,(self,) + _args, _kwargs)
8ab979d7 451 return val
1d99702e
RD
452 def GetInsertionPoint(self, *_args, **_kwargs):
453 val = apply(controlsc.wxTextCtrl_GetInsertionPoint,(self,) + _args, _kwargs)
8ab979d7 454 return val
1d99702e
RD
455 def GetLastPosition(self, *_args, **_kwargs):
456 val = apply(controlsc.wxTextCtrl_GetLastPosition,(self,) + _args, _kwargs)
8ab979d7 457 return val
1d99702e
RD
458 def GetLineLength(self, *_args, **_kwargs):
459 val = apply(controlsc.wxTextCtrl_GetLineLength,(self,) + _args, _kwargs)
8ab979d7 460 return val
1d99702e
RD
461 def GetLineText(self, *_args, **_kwargs):
462 val = apply(controlsc.wxTextCtrl_GetLineText,(self,) + _args, _kwargs)
8ab979d7 463 return val
1d99702e
RD
464 def GetNumberOfLines(self, *_args, **_kwargs):
465 val = apply(controlsc.wxTextCtrl_GetNumberOfLines,(self,) + _args, _kwargs)
8ab979d7 466 return val
1d99702e
RD
467 def GetValue(self, *_args, **_kwargs):
468 val = apply(controlsc.wxTextCtrl_GetValue,(self,) + _args, _kwargs)
8ab979d7 469 return val
1d99702e
RD
470 def IsModified(self, *_args, **_kwargs):
471 val = apply(controlsc.wxTextCtrl_IsModified,(self,) + _args, _kwargs)
8ab979d7 472 return val
1d99702e
RD
473 def LoadFile(self, *_args, **_kwargs):
474 val = apply(controlsc.wxTextCtrl_LoadFile,(self,) + _args, _kwargs)
8ab979d7 475 return val
1d99702e
RD
476 def Paste(self, *_args, **_kwargs):
477 val = apply(controlsc.wxTextCtrl_Paste,(self,) + _args, _kwargs)
8ab979d7 478 return val
1d99702e
RD
479 def PositionToXY(self, *_args, **_kwargs):
480 val = apply(controlsc.wxTextCtrl_PositionToXY,(self,) + _args, _kwargs)
8ab979d7 481 return val
1d99702e
RD
482 def Remove(self, *_args, **_kwargs):
483 val = apply(controlsc.wxTextCtrl_Remove,(self,) + _args, _kwargs)
8ab979d7 484 return val
1d99702e
RD
485 def Replace(self, *_args, **_kwargs):
486 val = apply(controlsc.wxTextCtrl_Replace,(self,) + _args, _kwargs)
8ab979d7 487 return val
1d99702e
RD
488 def SaveFile(self, *_args, **_kwargs):
489 val = apply(controlsc.wxTextCtrl_SaveFile,(self,) + _args, _kwargs)
8ab979d7 490 return val
1d99702e
RD
491 def SetEditable(self, *_args, **_kwargs):
492 val = apply(controlsc.wxTextCtrl_SetEditable,(self,) + _args, _kwargs)
8ab979d7 493 return val
1d99702e
RD
494 def SetInsertionPoint(self, *_args, **_kwargs):
495 val = apply(controlsc.wxTextCtrl_SetInsertionPoint,(self,) + _args, _kwargs)
8ab979d7 496 return val
1d99702e
RD
497 def SetInsertionPointEnd(self, *_args, **_kwargs):
498 val = apply(controlsc.wxTextCtrl_SetInsertionPointEnd,(self,) + _args, _kwargs)
8ab979d7 499 return val
1d99702e
RD
500 def SetSelection(self, *_args, **_kwargs):
501 val = apply(controlsc.wxTextCtrl_SetSelection,(self,) + _args, _kwargs)
8ab979d7 502 return val
1d99702e
RD
503 def SetValue(self, *_args, **_kwargs):
504 val = apply(controlsc.wxTextCtrl_SetValue,(self,) + _args, _kwargs)
8ab979d7 505 return val
1d99702e
RD
506 def ShowPosition(self, *_args, **_kwargs):
507 val = apply(controlsc.wxTextCtrl_ShowPosition,(self,) + _args, _kwargs)
8ab979d7 508 return val
1d99702e
RD
509 def WriteText(self, *_args, **_kwargs):
510 val = apply(controlsc.wxTextCtrl_WriteText,(self,) + _args, _kwargs)
8ab979d7 511 return val
1d99702e
RD
512 def AppendText(self, *_args, **_kwargs):
513 val = apply(controlsc.wxTextCtrl_AppendText,(self,) + _args, _kwargs)
cf694132 514 return val
1d99702e
RD
515 def XYToPosition(self, *_args, **_kwargs):
516 val = apply(controlsc.wxTextCtrl_XYToPosition,(self,) + _args, _kwargs)
8ab979d7 517 return val
1d99702e
RD
518 def CanCopy(self, *_args, **_kwargs):
519 val = apply(controlsc.wxTextCtrl_CanCopy,(self,) + _args, _kwargs)
c127177f 520 return val
1d99702e
RD
521 def CanCut(self, *_args, **_kwargs):
522 val = apply(controlsc.wxTextCtrl_CanCut,(self,) + _args, _kwargs)
c127177f 523 return val
1d99702e
RD
524 def CanPaste(self, *_args, **_kwargs):
525 val = apply(controlsc.wxTextCtrl_CanPaste,(self,) + _args, _kwargs)
c127177f 526 return val
1d99702e
RD
527 def CanRedo(self, *_args, **_kwargs):
528 val = apply(controlsc.wxTextCtrl_CanRedo,(self,) + _args, _kwargs)
c127177f 529 return val
1d99702e
RD
530 def CanUndo(self, *_args, **_kwargs):
531 val = apply(controlsc.wxTextCtrl_CanUndo,(self,) + _args, _kwargs)
c127177f 532 return val
1d99702e
RD
533 def GetSelection(self, *_args, **_kwargs):
534 val = apply(controlsc.wxTextCtrl_GetSelection,(self,) + _args, _kwargs)
c127177f 535 return val
1d99702e
RD
536 def IsEditable(self, *_args, **_kwargs):
537 val = apply(controlsc.wxTextCtrl_IsEditable,(self,) + _args, _kwargs)
c127177f 538 return val
b1462dfa
RD
539 def Undo(self, *_args, **_kwargs):
540 val = apply(controlsc.wxTextCtrl_Undo,(self,) + _args, _kwargs)
541 return val
542 def Redo(self, *_args, **_kwargs):
543 val = apply(controlsc.wxTextCtrl_Redo,(self,) + _args, _kwargs)
544 return val
545 def write(self, *_args, **_kwargs):
546 val = apply(controlsc.wxTextCtrl_write,(self,) + _args, _kwargs)
547 return val
8ab979d7 548 def __repr__(self):
1d99702e 549 return "<C wxTextCtrl instance at %s>" % (self.this,)
8ab979d7 550class wxTextCtrl(wxTextCtrlPtr):
1d99702e
RD
551 def __init__(self,*_args,**_kwargs):
552 self.this = apply(controlsc.new_wxTextCtrl,_args,_kwargs)
8ab979d7 553 self.thisown = 1
b8b8dda7 554 wx._StdWindowCallbacks(self)
8ab979d7
RD
555
556
557
558
559class wxScrollBarPtr(wxControlPtr):
560 def __init__(self,this):
561 self.this = this
562 self.thisown = 0
1d99702e
RD
563 def GetRange(self, *_args, **_kwargs):
564 val = apply(controlsc.wxScrollBar_GetRange,(self,) + _args, _kwargs)
8ab979d7 565 return val
1d99702e
RD
566 def GetPageSize(self, *_args, **_kwargs):
567 val = apply(controlsc.wxScrollBar_GetPageSize,(self,) + _args, _kwargs)
8ab979d7 568 return val
1d99702e
RD
569 def GetThumbPosition(self, *_args, **_kwargs):
570 val = apply(controlsc.wxScrollBar_GetThumbPosition,(self,) + _args, _kwargs)
8ab979d7 571 return val
1d99702e
RD
572 def GetThumbSize(self, *_args, **_kwargs):
573 val = apply(controlsc.wxScrollBar_GetThumbSize,(self,) + _args, _kwargs)
8ab979d7 574 return val
26b9cf27
RD
575 def GetThumbLength(self, *_args, **_kwargs):
576 val = apply(controlsc.wxScrollBar_GetThumbLength,(self,) + _args, _kwargs)
577 return val
1d99702e
RD
578 def SetThumbPosition(self, *_args, **_kwargs):
579 val = apply(controlsc.wxScrollBar_SetThumbPosition,(self,) + _args, _kwargs)
8ab979d7 580 return val
1d99702e
RD
581 def SetScrollbar(self, *_args, **_kwargs):
582 val = apply(controlsc.wxScrollBar_SetScrollbar,(self,) + _args, _kwargs)
8ab979d7
RD
583 return val
584 def __repr__(self):
1d99702e 585 return "<C wxScrollBar instance at %s>" % (self.this,)
8ab979d7 586class wxScrollBar(wxScrollBarPtr):
1d99702e
RD
587 def __init__(self,*_args,**_kwargs):
588 self.this = apply(controlsc.new_wxScrollBar,_args,_kwargs)
8ab979d7 589 self.thisown = 1
b8b8dda7 590 wx._StdWindowCallbacks(self)
8ab979d7
RD
591
592
593
594
595class wxSpinButtonPtr(wxControlPtr):
596 def __init__(self,this):
597 self.this = this
598 self.thisown = 0
1d99702e
RD
599 def GetMax(self, *_args, **_kwargs):
600 val = apply(controlsc.wxSpinButton_GetMax,(self,) + _args, _kwargs)
8ab979d7 601 return val
1d99702e
RD
602 def GetMin(self, *_args, **_kwargs):
603 val = apply(controlsc.wxSpinButton_GetMin,(self,) + _args, _kwargs)
8ab979d7 604 return val
1d99702e
RD
605 def GetValue(self, *_args, **_kwargs):
606 val = apply(controlsc.wxSpinButton_GetValue,(self,) + _args, _kwargs)
8ab979d7 607 return val
1d99702e
RD
608 def SetRange(self, *_args, **_kwargs):
609 val = apply(controlsc.wxSpinButton_SetRange,(self,) + _args, _kwargs)
8ab979d7 610 return val
1d99702e
RD
611 def SetValue(self, *_args, **_kwargs):
612 val = apply(controlsc.wxSpinButton_SetValue,(self,) + _args, _kwargs)
8ab979d7
RD
613 return val
614 def __repr__(self):
1d99702e 615 return "<C wxSpinButton instance at %s>" % (self.this,)
8ab979d7 616class wxSpinButton(wxSpinButtonPtr):
1d99702e
RD
617 def __init__(self,*_args,**_kwargs):
618 self.this = apply(controlsc.new_wxSpinButton,_args,_kwargs)
8ab979d7
RD
619 self.thisown = 1
620
621
622
623
624class wxStaticBitmapPtr(wxControlPtr):
625 def __init__(self,this):
626 self.this = this
627 self.thisown = 0
1d99702e
RD
628 def GetBitmap(self, *_args, **_kwargs):
629 val = apply(controlsc.wxStaticBitmap_GetBitmap,(self,) + _args, _kwargs)
630 if val: val = wxBitmapPtr(val)
8ab979d7 631 return val
1d99702e
RD
632 def SetBitmap(self, *_args, **_kwargs):
633 val = apply(controlsc.wxStaticBitmap_SetBitmap,(self,) + _args, _kwargs)
8ab979d7 634 return val
1d99702e
RD
635 def SetIcon(self, *_args, **_kwargs):
636 val = apply(controlsc.wxStaticBitmap_SetIcon,(self,) + _args, _kwargs)
8bf5d46e 637 return val
8ab979d7 638 def __repr__(self):
1d99702e 639 return "<C wxStaticBitmap instance at %s>" % (self.this,)
8ab979d7 640class wxStaticBitmap(wxStaticBitmapPtr):
1d99702e
RD
641 def __init__(self,*_args,**_kwargs):
642 self.this = apply(controlsc.new_wxStaticBitmap,_args,_kwargs)
8ab979d7 643 self.thisown = 1
b8b8dda7 644 wx._StdWindowCallbacks(self)
8ab979d7
RD
645
646
647
648
649class wxRadioBoxPtr(wxControlPtr):
650 def __init__(self,this):
651 self.this = this
652 self.thisown = 0
1d99702e
RD
653 def Enable(self, *_args, **_kwargs):
654 val = apply(controlsc.wxRadioBox_Enable,(self,) + _args, _kwargs)
8ab979d7 655 return val
1d99702e
RD
656 def EnableItem(self, *_args, **_kwargs):
657 val = apply(controlsc.wxRadioBox_EnableItem,(self,) + _args, _kwargs)
8ab979d7 658 return val
1d99702e
RD
659 def FindString(self, *_args, **_kwargs):
660 val = apply(controlsc.wxRadioBox_FindString,(self,) + _args, _kwargs)
8ab979d7 661 return val
1d99702e
RD
662 def GetItemLabel(self, *_args, **_kwargs):
663 val = apply(controlsc.wxRadioBox_GetItemLabel,(self,) + _args, _kwargs)
8ab979d7 664 return val
1d99702e
RD
665 def GetSelection(self, *_args, **_kwargs):
666 val = apply(controlsc.wxRadioBox_GetSelection,(self,) + _args, _kwargs)
8ab979d7 667 return val
1d99702e
RD
668 def GetString(self, *_args, **_kwargs):
669 val = apply(controlsc.wxRadioBox_GetString,(self,) + _args, _kwargs)
8ab979d7 670 return val
1d99702e
RD
671 def GetStringSelection(self, *_args, **_kwargs):
672 val = apply(controlsc.wxRadioBox_GetStringSelection,(self,) + _args, _kwargs)
8ab979d7 673 return val
1d99702e
RD
674 def Number(self, *_args, **_kwargs):
675 val = apply(controlsc.wxRadioBox_Number,(self,) + _args, _kwargs)
8ab979d7 676 return val
1d99702e
RD
677 def SetItemLabel(self, *_args, **_kwargs):
678 val = apply(controlsc.wxRadioBox_SetItemLabel,(self,) + _args, _kwargs)
8ab979d7 679 return val
1d99702e
RD
680 def SetSelection(self, *_args, **_kwargs):
681 val = apply(controlsc.wxRadioBox_SetSelection,(self,) + _args, _kwargs)
8ab979d7 682 return val
1d99702e
RD
683 def SetStringSelection(self, *_args, **_kwargs):
684 val = apply(controlsc.wxRadioBox_SetStringSelection,(self,) + _args, _kwargs)
8ab979d7 685 return val
1d99702e
RD
686 def Show(self, *_args, **_kwargs):
687 val = apply(controlsc.wxRadioBox_Show,(self,) + _args, _kwargs)
8ab979d7 688 return val
1d99702e
RD
689 def ShowItem(self, *_args, **_kwargs):
690 val = apply(controlsc.wxRadioBox_ShowItem,(self,) + _args, _kwargs)
8ab979d7
RD
691 return val
692 def __repr__(self):
1d99702e 693 return "<C wxRadioBox instance at %s>" % (self.this,)
8ab979d7 694class wxRadioBox(wxRadioBoxPtr):
1d99702e
RD
695 def __init__(self,*_args,**_kwargs):
696 self.this = apply(controlsc.new_wxRadioBox,_args,_kwargs)
8ab979d7 697 self.thisown = 1
b8b8dda7 698 wx._StdWindowCallbacks(self)
8ab979d7
RD
699
700
701
702
703class wxRadioButtonPtr(wxControlPtr):
704 def __init__(self,this):
705 self.this = this
706 self.thisown = 0
1d99702e
RD
707 def GetValue(self, *_args, **_kwargs):
708 val = apply(controlsc.wxRadioButton_GetValue,(self,) + _args, _kwargs)
8ab979d7 709 return val
1d99702e
RD
710 def SetValue(self, *_args, **_kwargs):
711 val = apply(controlsc.wxRadioButton_SetValue,(self,) + _args, _kwargs)
8ab979d7
RD
712 return val
713 def __repr__(self):
1d99702e 714 return "<C wxRadioButton instance at %s>" % (self.this,)
8ab979d7 715class wxRadioButton(wxRadioButtonPtr):
1d99702e
RD
716 def __init__(self,*_args,**_kwargs):
717 self.this = apply(controlsc.new_wxRadioButton,_args,_kwargs)
8ab979d7 718 self.thisown = 1
b8b8dda7 719 wx._StdWindowCallbacks(self)
8ab979d7
RD
720
721
722
723
724class wxSliderPtr(wxControlPtr):
725 def __init__(self,this):
726 self.this = this
727 self.thisown = 0
1d99702e
RD
728 def ClearSel(self, *_args, **_kwargs):
729 val = apply(controlsc.wxSlider_ClearSel,(self,) + _args, _kwargs)
8ab979d7 730 return val
1d99702e
RD
731 def ClearTicks(self, *_args, **_kwargs):
732 val = apply(controlsc.wxSlider_ClearTicks,(self,) + _args, _kwargs)
8ab979d7 733 return val
1d99702e
RD
734 def GetLineSize(self, *_args, **_kwargs):
735 val = apply(controlsc.wxSlider_GetLineSize,(self,) + _args, _kwargs)
8ab979d7 736 return val
1d99702e
RD
737 def GetMax(self, *_args, **_kwargs):
738 val = apply(controlsc.wxSlider_GetMax,(self,) + _args, _kwargs)
8ab979d7 739 return val
1d99702e
RD
740 def GetMin(self, *_args, **_kwargs):
741 val = apply(controlsc.wxSlider_GetMin,(self,) + _args, _kwargs)
8ab979d7 742 return val
1d99702e
RD
743 def GetPageSize(self, *_args, **_kwargs):
744 val = apply(controlsc.wxSlider_GetPageSize,(self,) + _args, _kwargs)
8ab979d7 745 return val
1d99702e
RD
746 def GetSelEnd(self, *_args, **_kwargs):
747 val = apply(controlsc.wxSlider_GetSelEnd,(self,) + _args, _kwargs)
8ab979d7 748 return val
1d99702e
RD
749 def GetSelStart(self, *_args, **_kwargs):
750 val = apply(controlsc.wxSlider_GetSelStart,(self,) + _args, _kwargs)
8ab979d7 751 return val
1d99702e
RD
752 def GetThumbLength(self, *_args, **_kwargs):
753 val = apply(controlsc.wxSlider_GetThumbLength,(self,) + _args, _kwargs)
8ab979d7 754 return val
1d99702e
RD
755 def GetTickFreq(self, *_args, **_kwargs):
756 val = apply(controlsc.wxSlider_GetTickFreq,(self,) + _args, _kwargs)
8ab979d7 757 return val
1d99702e
RD
758 def GetValue(self, *_args, **_kwargs):
759 val = apply(controlsc.wxSlider_GetValue,(self,) + _args, _kwargs)
8ab979d7 760 return val
1d99702e
RD
761 def SetRange(self, *_args, **_kwargs):
762 val = apply(controlsc.wxSlider_SetRange,(self,) + _args, _kwargs)
8ab979d7 763 return val
1d99702e
RD
764 def SetTickFreq(self, *_args, **_kwargs):
765 val = apply(controlsc.wxSlider_SetTickFreq,(self,) + _args, _kwargs)
8ab979d7 766 return val
1d99702e
RD
767 def SetLineSize(self, *_args, **_kwargs):
768 val = apply(controlsc.wxSlider_SetLineSize,(self,) + _args, _kwargs)
8ab979d7 769 return val
1d99702e
RD
770 def SetPageSize(self, *_args, **_kwargs):
771 val = apply(controlsc.wxSlider_SetPageSize,(self,) + _args, _kwargs)
8ab979d7 772 return val
1d99702e
RD
773 def SetSelection(self, *_args, **_kwargs):
774 val = apply(controlsc.wxSlider_SetSelection,(self,) + _args, _kwargs)
8ab979d7 775 return val
1d99702e
RD
776 def SetThumbLength(self, *_args, **_kwargs):
777 val = apply(controlsc.wxSlider_SetThumbLength,(self,) + _args, _kwargs)
8ab979d7 778 return val
1d99702e
RD
779 def SetTick(self, *_args, **_kwargs):
780 val = apply(controlsc.wxSlider_SetTick,(self,) + _args, _kwargs)
8ab979d7 781 return val
1d99702e
RD
782 def SetValue(self, *_args, **_kwargs):
783 val = apply(controlsc.wxSlider_SetValue,(self,) + _args, _kwargs)
8ab979d7
RD
784 return val
785 def __repr__(self):
1d99702e 786 return "<C wxSlider instance at %s>" % (self.this,)
8ab979d7 787class wxSlider(wxSliderPtr):
1d99702e
RD
788 def __init__(self,*_args,**_kwargs):
789 self.this = apply(controlsc.new_wxSlider,_args,_kwargs)
8ab979d7 790 self.thisown = 1
b8b8dda7 791 wx._StdWindowCallbacks(self)
8ab979d7
RD
792
793
794
795
796
797
798#-------------- FUNCTION WRAPPERS ------------------
799
6999b0d8
RD
800def wxButton_GetDefaultSize(*_args, **_kwargs):
801 val = apply(controlsc.wxButton_GetDefaultSize,_args,_kwargs)
802 if val: val = wxSizePtr(val); val.thisown = 1
803 return val
804
8ab979d7
RD
805
806
807#-------------- VARIABLE WRAPPERS ------------------
808
2f90df85
RD
809cvar = controlsc.cvar
810wxDefaultValidator = wxValidatorPtr(controlsc.cvar.wxDefaultValidator)