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