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