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